jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lillian" <lillian...@epiuse.com>
Subject Re: Error: source file does not contain a deployment descriptor
Date Tue, 06 Apr 2004 13:34:25 GMT
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" <vmassol@pivolis.com>
To: "'Cactus Users List'" <cactus-user@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
>


Mime
View raw message