2 Replies Latest reply on Aug 21, 2007 8:08 AM by mblondel

    Configuration problem : ServletRedirector

    mblondel

      I try to test a4j components but I have this exeption.
      I am using Tomcat.
      i think i could be the 192.168.10.101

      Thanks

      Failed to get the test results at [http://192.168.10.101:8455/ExaProtect/ServletRedirector]
      
      org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://192.168.10.101:8455/ExaProtect/ServletRedirector]
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:92)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
      at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
      at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
      at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
      at org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:88)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.exaprotect.gui.ExaAuthenticator.doFilter(ExaAuthenticator.java:125)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      org.apache.cactus.internal.client.ParsingException: Not a valid response. First 100 characters of the reponse: [<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
      


        • 1. Re: Configuration problem : ServletRedirector
          ssilvert

          Yes, 192.168.10.101 is probably you. To start running the tests, Cactus needs to call into the ServletRedirector. So it might be a problem with your web.xml. Do you have this set up in web.xml? The servlet mapping needs to be exactly the same as below unless you also change it in cactus.properties.

          <servlet>
           <servlet-name>ServletRedirector</servlet-name>
           <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
           </servlet>
          
           <servlet-mapping>
           <servlet-name>ServletRedirector</servlet-name>
           <url-pattern>/ServletRedirector</url-pattern>
           </servlet-mapping>


          One way to check if you have this set up is to just call it from your browser like this:
          http://localhost:8080/ExaProtect/ServletRedirector

          If things are set up right, you will get an error message that says"
          javax.servlet.ServletException: Missing service name parameter [Cactus_Service] in HTTP request. Received query string is [null].


          Also, this link might be helpful in getting things set up:
          http://jakarta.apache.org/cactus/integration/manual/howto_config.html

          Let us know how it goes.

          Stan
          http://www.jsfunit.org

          • 2. Re: Configuration problem : ServletRedirector
            mblondel

            My configuration is good but I have a filter to authenticate the user. The filter does a redirect. Without the filter it works fine.
            thanks for your help