1 Reply Latest reply on Jun 3, 2003 11:25 AM by tim kitchens

    Error when using Cactus 1.5 with JBoss 3.2.1

    tim kitchens Newbie

      I've just downloaded JBoss 3.2.1 and am receiving the following stack trace whenever I run a Cactus test:

      [] ERROR 2003-05-29 15:12:31,556 org.jboss.web.catalina.Log4jLogger.log(Log4jLogger.java:216) StandardWrapperValve[ServletRedirectorSecure]: Servlet.service() for servlet ServletRedirectorSecure threw exception
      javax.servlet.ServletException: Missing service name parameter [Cactus_Service] in HTTP request. Received query string is [null].
      at org.apache.cactus.server.AbstractWebTestController.getServiceName(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):204)
      at org.apache.cactus.server.AbstractWebTestController.handleRequest$ajcPostAround7(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):117)
      at org.apache.cactus.server.AbstractWebTestController.handleRequest$ajcPostAround7$ajcVoidWrapper(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k))
      at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1145)
      at org.apache.cactus.server.ServletTestRedirector.doPost$ajcPostAround10(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):125)
      at org.apache.cactus.server.ServletTestRedirector.doPost$ajcPostAround10$ajcVoidWrapper(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k))
      at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1145)
      at org.apache.cactus.server.ServletTestRedirector.doGet$ajcPostAround6(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
      at org.apache.cactus.server.ServletTestRedirector.doGet$ajcPostAround6$ajcVoidWrapper(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k))
      at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1145)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at com.allegis.ats.tool.filter.HttpResponseNoCacheFilter.doFilter(HttpResponseNoCacheFilter.java:62)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at com.allegis.ats.tool.filter.UserFilter.doFilter(UserFilter.java:69)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
      at java.lang.Thread.run(Thread.java:536)


      I've tried both the Jetty and Tomcat configurations and both have the same problem. My tests worked just fine with JBoss 3.0.4. I'm using form-based authentication (using the Cactus FormAuthentication class). It appears that the query string is being stripped off before Cactus tries to process it. Has anyone successfully run a Cactus test against JBoss 3.2.1? If so, was it the Jetty or Tomcat configuration and which version of Cactus?

      Thanks,
      Tim