You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Lillian <li...@epiuse.com> on 2004/04/05 16:45:07 UTC

Error: source file does not contain a deployment descriptor

Hi

I am currently using maven-cactus-plugin-3.1-SNAPSHOT.

When I try to run the maven cactus:cactifywar on my project, it throws the
following error:

cactus:compile:
    [copy] Copying 1 file to
C:\pps\subprojects\util\target\test-cactus-classes

cactus:cactifywar:
    [cactifywar] Analyzing war:
C:\pps\subprojects\util\target\ppsfs-util.war

BUILD FAILED
File...... file:/E:/maven/plugins/maven-cactus-plugin-3.1-SNAPSHOT/
Element... cactifywar
Line...... 182
Column.... 68
The source file does not contain a deployment descriptor
Total time:  38 seconds
Finished at: Mon Apr 05 16:27:14 GMT+02:00 2004

I do have an empty web.xml in my /src/conf/deployment directory, as well as
application.xml.
All the test class source files are pakaged in the /src/test-cactus
directory. I have tried the newest 1.6dev version as well, and it gave me
the same error.

Can anyone help me out please?

Regards,
Lillian


RE: Error: source file does not contain a deployment descriptor

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Lillian [mailto:lillian.li@epiuse.com]
> Sent: 06 April 2004 15:34
> To: Cactus Users List
> Subject: Re: Error: source file does not contain a deployment
descriptor
> 
> Hi Vincent,
> 
> Just as you thought, the web.xml was not present in the war file. So
> that's
> the whole cause of the error. But do you know how to package the
web.xml
> file into the war? I think cactus:cactifywar goal automatically calls
the
> war goal, and before I call cactus:test, I did set the web.xml
locations
> as
>   <j:set var="maven.war.webxml"
> value="${maven.src.conf.dir}/deployment/cactus/web.xml"/>
> I have no idea why the war goal doesn't package the web.xml into the
war
> file. Is there anything which I need to set as well?

The default location for files packaged in the WAR is src/webapp. So if
you put your web.xml in src/webapp/WEB-INF/web.xml, it'll get packaged.

What you've done should also work. Try setting the property in your
project.properties or build.properties. It might be that you're not in
the right jelly context (that would happen if you're writing a maven
plugin for example).

-Vincent

> 
> Thanks a dozen,
> Lillian
> 
> ----- Original Message -----
> From: "Vincent Massol" <vm...@pivolis.com>
> To: "'Cactus Users List'" <ca...@jakarta.apache.org>
> Sent: Tuesday, April 06, 2004 3:09 PM
> Subject: RE: Error: source file does not contain a deployment
descriptor
> 
> 
> > Hi Lillian,
> >
> > The cactifywar task takes a WAR file as input. Can you check this
binary
> > WAR file has a deployment descriptor (i.e. a WEB-INF/web.xml file)?
> > Having the descriptor in src/conf/whatever will not help if this
> > descriptor does not find its way to your application WAR... :-)
> >
> > Thanks
> > -Vincent
> >
> > > -----Original Message-----
> > > From: Lillian [mailto:lillian.li@epiuse.com]
> > > Sent: 05 April 2004 16:45
> > > To: cactus-user@jakarta.apache.org
> > > Subject: Error: source file does not contain a deployment
descriptor
> > >
> > > Hi
> > >
> > > I am currently using maven-cactus-plugin-3.1-SNAPSHOT.
> > >
> > > When I try to run the maven cactus:cactifywar on my project, it
throws
> > the
> > > following error:
> > >
> > > cactus:compile:
> > >     [copy] Copying 1 file to
> > > C:\pps\subprojects\util\target\test-cactus-classes
> > >
> > > cactus:cactifywar:
> > >     [cactifywar] Analyzing war:
> > > C:\pps\subprojects\util\target\ppsfs-util.war
> > >
> > > BUILD FAILED
> > > File......
file:/E:/maven/plugins/maven-cactus-plugin-3.1-SNAPSHOT/
> > > Element... cactifywar
> > > Line...... 182
> > > Column.... 68
> > > The source file does not contain a deployment descriptor
> > > Total time:  38 seconds
> > > Finished at: Mon Apr 05 16:27:14 GMT+02:00 2004
> > >
> > > I do have an empty web.xml in my /src/conf/deployment directory,
as
> > well
> > > as
> > > application.xml.
> > > All the test class source files are pakaged in the
/src/test-cactus
> > > directory. I have tried the newest 1.6dev version as well, and it
gave
> > me
> > > the same error.
> > >
> > > Can anyone help me out please?
> > >
> > > Regards,
> > > Lillian
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
cactus-user-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Re: Error: source file does not contain a deployment descriptor

Posted by Lillian <li...@epiuse.com>.
Hi Vincent,

Just as you thought, the web.xml was not present in the war file. So that's
the whole cause of the error. But do you know how to package the web.xml
file into the war? I think cactus:cactifywar goal automatically calls the
war goal, and before I call cactus:test, I did set the web.xml locations as
  <j:set var="maven.war.webxml"
value="${maven.src.conf.dir}/deployment/cactus/web.xml"/>
I have no idea why the war goal doesn't package the web.xml into the war
file. Is there anything which I need to set as well?

Thanks a dozen,
Lillian

----- Original Message -----
From: "Vincent Massol" <vm...@pivolis.com>
To: "'Cactus Users List'" <ca...@jakarta.apache.org>
Sent: Tuesday, April 06, 2004 3:09 PM
Subject: RE: Error: source file does not contain a deployment descriptor


> Hi Lillian,
>
> The cactifywar task takes a WAR file as input. Can you check this binary
> WAR file has a deployment descriptor (i.e. a WEB-INF/web.xml file)?
> Having the descriptor in src/conf/whatever will not help if this
> descriptor does not find its way to your application WAR... :-)
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Lillian [mailto:lillian.li@epiuse.com]
> > Sent: 05 April 2004 16:45
> > To: cactus-user@jakarta.apache.org
> > Subject: Error: source file does not contain a deployment descriptor
> >
> > Hi
> >
> > I am currently using maven-cactus-plugin-3.1-SNAPSHOT.
> >
> > When I try to run the maven cactus:cactifywar on my project, it throws
> the
> > following error:
> >
> > cactus:compile:
> >     [copy] Copying 1 file to
> > C:\pps\subprojects\util\target\test-cactus-classes
> >
> > cactus:cactifywar:
> >     [cactifywar] Analyzing war:
> > C:\pps\subprojects\util\target\ppsfs-util.war
> >
> > BUILD FAILED
> > File...... file:/E:/maven/plugins/maven-cactus-plugin-3.1-SNAPSHOT/
> > Element... cactifywar
> > Line...... 182
> > Column.... 68
> > The source file does not contain a deployment descriptor
> > Total time:  38 seconds
> > Finished at: Mon Apr 05 16:27:14 GMT+02:00 2004
> >
> > I do have an empty web.xml in my /src/conf/deployment directory, as
> well
> > as
> > application.xml.
> > All the test class source files are pakaged in the /src/test-cactus
> > directory. I have tried the newest 1.6dev version as well, and it gave
> me
> > the same error.
> >
> > Can anyone help me out please?
> >
> > Regards,
> > Lillian
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>


RE: Error: source file does not contain a deployment descriptor

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Lillian,

The cactifywar task takes a WAR file as input. Can you check this binary
WAR file has a deployment descriptor (i.e. a WEB-INF/web.xml file)?
Having the descriptor in src/conf/whatever will not help if this
descriptor does not find its way to your application WAR... :-)

Thanks
-Vincent

> -----Original Message-----
> From: Lillian [mailto:lillian.li@epiuse.com]
> Sent: 05 April 2004 16:45
> To: cactus-user@jakarta.apache.org
> Subject: Error: source file does not contain a deployment descriptor
> 
> Hi
> 
> I am currently using maven-cactus-plugin-3.1-SNAPSHOT.
> 
> When I try to run the maven cactus:cactifywar on my project, it throws
the
> following error:
> 
> cactus:compile:
>     [copy] Copying 1 file to
> C:\pps\subprojects\util\target\test-cactus-classes
> 
> cactus:cactifywar:
>     [cactifywar] Analyzing war:
> C:\pps\subprojects\util\target\ppsfs-util.war
> 
> BUILD FAILED
> File...... file:/E:/maven/plugins/maven-cactus-plugin-3.1-SNAPSHOT/
> Element... cactifywar
> Line...... 182
> Column.... 68
> The source file does not contain a deployment descriptor
> Total time:  38 seconds
> Finished at: Mon Apr 05 16:27:14 GMT+02:00 2004
> 
> I do have an empty web.xml in my /src/conf/deployment directory, as
well
> as
> application.xml.
> All the test class source files are pakaged in the /src/test-cactus
> directory. I have tried the newest 1.6dev version as well, and it gave
me
> the same error.
> 
> Can anyone help me out please?
> 
> Regards,
> Lillian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org