Re: Cactus-Ant Integration: Context startup failed due to "Error filterStart"
"Guillaume BIET" <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <0DE1F1C3A3A24FDC875BECAE6DA2AA19@jupiter> |
hi! What does your tomcat log say ? is your tomcat up ? Did you tried a "generic" container ? For example, I use jboss 4.04.AG, and I must use a generic container. And I must start server manually. regards, ----- Original Message ----- From: "Tejaswini Yardi" <[email protected]> To: <[email protected]> Sent: Monday, April 16, 2007 11:55 AM Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error filterStart" > > Hi > > This is the error I get when I try to execute the cactus tests > > Failed to start the container after more than [180000] ms. Trying to > connect > to the > [http://localhost:8080/Cactus_ver_0_7_14_0/ServletRedirector?Cactus_Service=RUN_TEST] > test URL yielded a [-1] error code. Please run in debug mode for more > details about the error. > > Any idea why this is occurring? > > Regards, > TY > > > Guillaume BIET wrote: >> >> Hi ! >> >> Try to create a new web.xml file, and cut/paste the content of your >> actual. >> >> Sometimes I've got problems with that, there are errors in XML files, but >> when you open, there are no errors !!! >> >> Regards, >> >> >> >> ----- Original Message ----- >> From: "Tejaswini Yardi" <[email protected]> >> To: <[email protected]> >> Sent: Monday, April 16, 2007 9:20 AM >> Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error >> filterStart" >> >> >>> >>> Hi >>> >>> I am trying the same to execute testcases in cactus by integrating with >>> ant. >>> I could cactify successfully but it doesnt execute the testcases - i get >>> this error "Failed to parse deployment descriptor" - could you please >>> let >>> me >>> know how i should resolve this issue? >>> >>> Regards, >>> TY >>> >>> >>> >>> yanping li wrote: >>>> >>>> Hi, >>>> >>>> I am trying to automate in-container testing using ant intgeration with >>>> Cactus. My application (sym.war) worked fine before cactifying. When I >>>> run >>>> build it cactifies and during testing it hangs to open tomcat and I get >>>> error message: >>>> http://localhost/sym-cactified/ServletRedirector?Cactus_Servic=RUN_TEST >>>> >>>> Here is a copy of the output file: >>>> >>>> Jul 12, 2006 12:10:33 AM org.apache.coyote.http11.Http11Protocol init >>>> INFO: Initializing Coyote HTTP/1.1 on http-80 >>>> Jul 12, 2006 12:10:33 AM org.apache.catalina.startup.Catalina load >>>> INFO: Initialization processed in 5157 ms >>>> Jul 12, 2006 12:10:34 AM org.apache.catalina.core.StandardService start >>>> INFO: Starting service Catalina >>>> Jul 12, 2006 12:10:34 AM org.apache.catalina.core.StandardEngine start >>>> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 >>>> Jul 12, 2006 12:10:34 AM org.apache.catalina.core.StandardHost start >>>> INFO: XML validation disabled >>>> Jul 12, 2006 12:10:34 AM org.apache.catalina.core.StandardHost >>>> getDeployer >>>> INFO: Create Host deployer for direct deployment ( non-jmx ) >>>> Jul 12, 2006 12:11:59 AM org.apache.catalina.core.StandardHostDeployer >>>> install >>>> INFO: Installing web application at context path /sym-cactified from >>>> URL >>>> file:C:/temp/cactus/webapps/sym-cactified >>>> Jul 12, 2006 12:12:05 AM org.apache.catalina.core.StandardContext start >>>> SEVERE: Error filterStart >>>> Jul 12, 2006 12:12:05 AM org.apache.catalina.core.StandardContext start >>>> SEVERE: Context startup failed due to previous errors >>>> Jul 12, 2006 12:12:05 AM org.apache.coyote.http11.Http11Protocol start >>>> INFO: Starting Coyote HTTP/1.1 on http-80 >>>> Jul 12, 2006 12:12:07 AM org.apache.jk.common.ChannelSocket init >>>> INFO: JK2: ajp13 listening on /0.0.0.0:8009 >>>> Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start >>>> INFO: Jk running ID=0 time=0/1252 config=null >>>> Jul 12, 2006 12:12:07 AM org.apache.catalina.startup.Catalina start >>>> INFO: Server startup in 93635 ms >>>> >>>> Could it caused by the "FilterRedirector", which is the only new filter >>>> added to the web.xml of cactified war file? >>>> >>>> Here is part of my build.xml file: >>>> >>>> <target name="test.prepare" depends="war, compile.cactustest"> >>>> >>>> <taskdef resource="cactus.tasks"> >>>> <classpath> >>>> <path refid="cactus.classpath" /> >>>> </classpath> >>>> </taskdef> >>>> <!-- Cactify the web-app archive --> >>>> <cactifywar srcfile="${target}/sym.war" >>>> destfile="${target}/sym-cactified.war" > >>>> <classes dir="${target.classes.cactus}"/> >>>> </cactifywar> >>>> >>>> <!-- Prepare the directories for the JUnit reports --> >>>> <mkdir dir="${target.testreports}"/> >>>> </target> >>>> >>>> <target name="test" >>>> description="Run the tests on the defined containers" > >>>> <taskdef resource="cactus.tasks"> >>>> <classpath> >>>> <path refid="cactus.classpath" /> >>>> </classpath> >>>> </taskdef> >>>> <!-- Run the tests --> >>>> <cactus warfile="${target}/sym-cactified.war" >>>> fork="yes" failureproperty="tests.failed" haltonerror="false"> >>>> >>>> <classpath> >>>> <pathelement location="${webapp.lib}/cactus-ant.jar" /> >>>> <pathelement location="${webapp.lib}/junit-3.8.jar" /> >>>> <pathelement location="${webapp.lib}/ant-junit.jar" /> >>>> <pathelement location="${webapp.lib}/cactus.jar" /> >>>> <pathelement location="${webapp.lib}/cargo-0.5.jar" /> >>>> <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" /> >>>> <pathelement location="${webapp.lib}/commons-logging.jar" /> >>>> <pathelement location="${webapp.lib}/aspectjrt.jar" /> >>>> <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" /> >>>> <pathelement location="${webapp.lib}/httpunit.jar" /> >>>> <pathelement location="${target.classes.java}" /> >>>> <pathelement location="${target.classes.cactus}" /> >>>> </classpath> >>>> >>>> <containerset> >>>> <tomcat5x dir="${tomcat.home}" port="80" >>>> output="${target.testreports}/tomcat5x.txt" >>>> todir="${target.testreports}/tomcat5x" >>>> serverxml="${tomcat.home}/conf/server.xml" >>>> tmpdir = "${container.temp}" > >>>> <conf dir="${tomcat.home}/conf" includes="sym.xml" /> >>>> </tomcat5x> >>>> </containerset> >>>> >>>> <formatter type="xml" usefile="true"/> >>>> <batchtest> >>>> <fileset dir="${src.cactus.dir}"> >>>> <include name="**/Test*.java"/> >>>> <exclude name="**/Test*All.java"/> >>>> </fileset> >>>> </batchtest> >>>> </cactus> >>>> >>>> <!-- Generate the JUnit Reports --> >>>> <mkdir dir="${target.report}/html" /> >>>> <junitreport todir="${target.testreports}"> >>>> <fileset dir="${target.testreports}" includes="TEST-*.xml"/> >>>> <report todir="${target.testreports}/html" format="frames"/> >>>> </junitreport> >>>> </target> >>>> >>>> I am using >>>> ANT: apache-ant-1.6.5 >>>> JAVA: jdk1.5.0_06 >>>> CACTUS : jakarta-cactus-13-1.7.2 >>>> TOMCAT: jakarta-tomcat 5.5 >>>> >>>> >>>> Thank you for your help! >>>> >>>> _________________________________________________________________ >>>> Express yourself instantly with MSN Messenger! Download today - it's >>>> FREE! >>>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Cactus-Ant-Integration%3A-Context-startup-failed-due-to-%22Error-filterStart%22-tf1940800.html#a10011343 >>> Sent from the Cactus - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> 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] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Cactus-Ant-Integration%3A-Context-startup-failed-due-to-%22Error-filterStart%22-tf1940800.html#a10013197 > Sent from the Cactus - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >