Re: ChainedRuntimeException
Kazuhito SUGURI <[email protected]> Thu, 06 Sep 2007 20:25:04 +0900 (JST)
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, In article <OF46783E40.A3090A53-ON6525734E.002794EF-6525734E.00289F50@tcs.com>, Thu, 6 Sep 2007 12:50:15 +0530, Indranil Poddar <[email protected]> wrote: indranil> Added jars to Java Build path: indranil> cactus-1.5.jar, indranil> aspectjrt-1.1.1.jar indranil> commons-httpclient-2.0-rc2.jar. Do you mean WEB-INF/lib of the application contains these jars? If so, you may also need to add commons-logging and junit jars. It's depending on the class-path of the application in the server. indranil> Added the following mappings to my web.xml: indranil> <servlet-name>ServletRedirector</servlet-name> indranil> <servlet-class> indranil> org.apache.cactus.server.ServletTestRedirector</servlet-class> indranil> </servlet> indranil> <servlet> indranil> <servlet-name>ServletTestRunner</servlet-name> indranil> <servlet-class> indranil> org.apache.cactus.server.runner.ServletTestRunner</servlet-class> indranil> </servlet> indranil> indranil> indranil> <servlet-mapping> indranil> <servlet-name>ServletRedirector</servlet-name> indranil> <url-pattern>/ServletRedirector</url-pattern> indranil> </servlet-mapping> indranil> <servlet-mapping> indranil> <servlet-name>ServletTestRunner</servlet-name> indranil> <url-pattern>/ServletTestRunner</url-pattern> indranil> </servlet-mapping> It looks good. Next point to be confirmed is the consistency between the context-root of the application and cactus.contextURL property. According to the stack-trace in your previous message, the cactus.contextURL would be http://localhost:9080/CspLoanAdmin/JSP/Admin. If the application had been deployed as CspLoadAdmin, however, the cactus.contextURL should be http://localhost:9080/CspLoanAdmin. BTW, I'm assuming the application had been deployed successfully, because the server returned 404 instead of 5xx. Since I have never used WebSphere, it might be a wrong assumption. I recommend you to check the fact first :-) Hope this helps, ---- Kazuhito SUGURI