Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 28315 invoked by uid 99); 19 Apr 2007 08:54:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 01:54:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 01:54:24 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HeSOx-0000p0-EG for cactus-user@jakarta.apache.org; Thu, 19 Apr 2007 01:54:03 -0700 Message-ID: <10074172.post@talk.nabble.com> Date: Thu, 19 Apr 2007 01:54:03 -0700 (PDT) From: Tejaswini Yardi To: cactus-user@jakarta.apache.org Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error filterStart" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tejaswini.yardi@gmail.com References: X-Virus-Checked: Checked by ClamAV on apache.org Hi I am facing a weird problem now - I could resolve the previous errors I got. Now when i execute my testcase files from ant using task, it throws the NullPointerException when trying to execute the testXXX() methods. I have no clue as to why this is happening. It executes my beginXXX() and endXXX() methods successfully but fails to execute the testXXX() method. Can you please let me know why this is happening and how to resolve this issue? Is there something I am missing due to which its not being able to execute test methods on the server? This is the exact exception I get : Testcase: testUsingValidPlatformUserNamePwd(com.inteq.test.integration.testcases.TestUserAuthentication): Caused an ERROR [cactus] null [cactus] java.lang.NullPointerException [cactus] at com.inteq.test.integration.utils.XMLDataHelper.getTestMethods(XMLDataHelper.java:337) [cactus] at com.inteq.test.integration.utils.XMLDataHelper.getTestData(XMLDataHelper.java:231) [cactus] at com.inteq.test.integration.utils.IFServletTestCase.getAssertions(IFServletTestCase.java:154) [cactus] at com.inteq.test.integration.testcases.TestUserAuthentication.testUsingValidPlatformUserNamePwd(TestUserAuthentication.java:127) [cactus] at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153) [cactus] at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119) [cactus] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93) [cactus] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:217) [cactus] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) [cactus] at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101) [cactus] at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:217) [cactus] at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) [cactus] at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72) [cactus] at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:217) [cactus] at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) [cactus] at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) [cactus] at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) [cactus] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) [cactus] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) [cactus] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) [cactus] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) [cactus] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) [cactus] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) [cactus] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) [cactus] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) [cactus] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [cactus] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) [cactus] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) [cactus] at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) [cactus] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) [cactus] at java.lang.Thread.run(Thread.java:595) 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: > > > > > > > > > > destfile="${target}/sym-cactified.war" > > > > > > > > > description="Run the tests on the defined containers" > > > > > > > > fork="yes" failureproperty="tests.failed" haltonerror="false"> > > > > > > > > > > > > > > > > > > output="${target.testreports}/tomcat5x.txt" > todir="${target.testreports}/tomcat5x" > serverxml="${tomcat.home}/conf/server.xml" > tmpdir = "${container.temp}" > > > > > > > > > > > > > > > > > > > > > > > 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: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > -- View this message in context: http://www.nabble.com/Cactus-Ant-Integration%3A-Context-startup-failed-due-to-%22Error-filterStart%22-tf1940800.html#a10074172 Sent from the Cactus - User mailing list archive at Nabble.com.