> -----Original Message----- > From: Lillian [mailto:[EMAIL PROTECTED] > 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" <[EMAIL PROTECTED]> > To: "'Cactus Users List'" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED] > > > Sent: 05 April 2004 16:45 > > > To: [EMAIL PROTECTED] > > > 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
