The exception you're receiving is a little deceptive.  The ServletRedirector
is OK.  The servlet engine isn't finding /test/test.jsp, which is used in
doForward() of SampleServlet.

The important element to look for in your default.servlet_engine file is the
document-root element for the test web application.  For example, mine looks
like

    <websphere-webgroup name="test">
       <description>Cactus Testing Web Application</description>
       <document-root>$approot$/web</document-root>
       <classpath>$approot$/servlets</classpath>
       <root-uri>/test</root-uri>
       <auto-reload enabled="true" polling-interval="3000"/>
       <shared-context>false</shared-context>
    </websphere-webgroup>

The servlet engine will look for jsp files under the document-root
directory.  For this application in my setup it is the
hosts/default_host/test/web directory.  

Since the forward request is to /test/test.jsp, you'll need to create a
directory called test under your document-root and put test.jsp into it.

Todd

Reply via email to