jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Grimsell" <magnus.grims...@idainfront.se>
Subject RE: log not clear - 'ChainedRuntimeException: Failed to get the test results'
Date Thu, 17 Nov 2005 10:53:51 GMT
Check if you can access http://localhost:8080/cactusTest/ServletRedirector via a browser.
Maybe your web application is not deployed correctly or it is deployed under another context
than "cactusTest".

> -----Original Message-----
> From: Eric Wulff [mailto:ewulff@gmail.com]
> Sent: Thursday, November 17, 2005 3:27 AM
> To: Cactus Users List
> Subject: Re: log not clear - 'ChainedRuntimeException: Failed 
> to get the
> test results'
> 
> 
> Hi,
> 
> > It seems that /cactusTest/ServletRedirector does not exist.
> > You might examine web.xml to see if ServletRedirector has 
> been properly mapped.
> >
> > Hope this helps,
> 
> Well, I haven't solved the problem yet but perhaps took a step
> forward.  I checked my web.xml and all seems ok - even tried preceding
> with /cactusTest/ - bad sign when I'm taking blind stabs like that :( 
> .  Then I thought - perhaps ServletRedirector isn't where it should
> be.  Copied below are references to the cactus.jar and the web.xml for
> my test app.  ServletTestRedirctor should be in the cactus .jar -
> correct?  I believe I'm referencing that .jar in all the right places.
>  Can you confirm?
> 
> # ok, this is where I put the cactus binaries...
> /usr/local/jakarta-cactus-13-1.7.1/lib/cactus-1.7.1.jar
> # simlink to be picked up on CLASSPATH
> /usr/share/java/cactus-1.7.1.jar
> # available to all tomcat apps
> /usr/local/jakarta-tomcat-5.0.28/common/lib/cactus-1.7.1.jar
> # the app for testing cactus - dev env
> /home/ewulff/osshare/webdev/cactusTest/web/WEB-INF/lib/cactus-
> 1.7.1.jar
> # on server (perhaps overkill since it's also in common/lib but I
> don't think this is causing a problem)
> /usr/local/jakarta-tomcat-5.0.28/webapps/cactusTest/WEB-INF/li
> b/cactus-1.7.1.jar
> 
> web.xml...
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
> 
> <web-app>
> 
>     <filter>
>         <filter-name>FilterRedirector</filter-name>
>         
> <filter-class>org.apache.cactus.server.FilterTestRedirector</f
> ilter-class>
>     </filter>
> 
>     <filter-mapping>
>         <filter-name>FilterRedirector</filter-name>
>         <url-pattern>/FilterRedirector</url-pattern>
>     </filter-mapping>
> 
>     <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>
> 
>     <servlet>
>         <servlet-name>JspRedirector</servlet-name>
>         <jsp-file>/jspRedirector.jsp</jsp-file>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>JspRedirector</servlet-name>
>         <url-pattern>/JspRedirector</url-pattern>
>     </servlet-mapping>
> 
> </web-app>
> 
> many thx
> Eric
> 
> oh yes, btw, here's all that I have in my WEB-INF/lib - lest something
> is stepping on toes...
> aspectjrt-1.2.1.jar           dom.jar           jdbc2_0-stdext.jar 
> sax.jar             standard.jar
> cactus-1.7.1.jar              httpunit-1.6.jar  jstl.jar           
> saxpath.jar         xalan.jar
> cactus-ant-1.7.1.jar          ifxjdbc.jar       junit-3.8.1.jar    
> servletapi-2.3.jar  xercesImpl.jar
> commons-httpclient-2.0.2.jar  jaxen-full.jar    log4j-1.2.9.jar    
> servlet-api.jar
> commons-logging-1.0.4.jar     jaxp-api.jar      
> nekohtml-0.9.1.jar  sftp.jar
> 
> 
> 
> On 11/16/05, Kazuhito SUGURI <suguri.kazuhito@lab.ntt.co.jp> wrote:
> > Hi Eric,
> >
> > In article 
> <ba4c9bfa0511161715p648c7153oacdc39505ea51a0@mail.gmail.com>,
> > Wed, 16 Nov 2005 17:15:31 -0800,
> > Eric Wulff <ewulff@gmail.com> wrote:
> > ewulff> Hi, I'm getting a 'ChainedRuntimeException: Failed 
> to get the test
> > ewulff> results'.  Can someone tell me the most common 
> causes of that error?
> >
> > There are some possible causes. For your case, the log shows that.
> >
> > ewulff> 1) 
> testDoGet(MapperServletTest)org.apache.cactus.util.ChainedRunt
> imeException:
> > ewulff> Failed to get the test results at
> > ewulff> [http://localhost:8080/cactusTest/ServletRedirector]
> > [snip]
> > ewulff> org.apache.cactus.internal.client.ParsingException: 
> Not a valid
> > ewulff> response [404 /cactusTest/ServletRedirector]
> > [snip]
> > ewulff> 2) 
> testUseAllCaps(MapperServletTest)org.apache.cactus.util.Chaine
dRuntimeException:
> > ewulff> Failed to get the test results at
> > ewulff> [http://localhost:8080/cactusTest/ServletRedirector]
> > [snip]
> > ewulff> org.apache.cactus.internal.client.ParsingException: 
> Not a valid
> > ewulff> response [404 /cactusTest/ServletRedirector]
> >
> > It seems that /cactusTest/ServletRedirector does not exist.
> > You might examine web.xml to see if ServletRedirector has 
> been properly mapped.
> >
> > Hope this helps,
> > ----
> > Kazuhito SUGURI
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 

Mime
View raw message