Hi Lanka,

I haven't tried setting up Tomcat with VAJ.  I found this link that shows a
recommended way of setting up Tomcat within VAJ:
http://www7.software.ibm.com/vad.nsf/Data/Document2389?OpenDocument&p=1

This should allow you to debug to get to the root of the problem if you need
to.  Hopefully not. :)

I'm not sure how to modify Tomcat to know about the ServletRedirector and
JspRedirector.  You may need to copy the web-app element from the web.xml
file in the Cactus sample to the web.xml file for your Tomcat installation.
When I have time I'll give this a shot.  Right now I've only run the Cactus
test using the ant script in the sample.

I'll assume that everything with VAJ and Tomcat is working and give a
general possible solution for the FileNotFound exception from SampleServlet.
When I've gotten this exception, it was due to the servlet engine not being
able to find /test/test.jsp in the document root for the web-app.
SampleServlet uses this JSP in doForward().  You'll want to make sure that
Tomcat can find it for the sample web-app.

I'd love to hear if you get it working and what you did to fix it.

Todd

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 7:00 AM
To: [EMAIL PROTECTED]
Subject: Problems running the sample SimpleServlet in VAge 3.5



 I followed the instructions on how to set up Cactus inside VAge and works
ok without any compile errors. I am using TomCat 3.1 , and I am not quite
sure why the instructions tell me to modify the WebSphere Test environment,
which I did anyway.  test directory is setup under the the WebSphere test
environment as the instructions stated, which probably should be setup
under TomCat Test Environment? If so, does anyone know how to set up TomCat
for Cactus, so I could run the SimpleServlet Test?

I get the following error from JUnit when try to run the SimpleServlet
inside VisualAge for Java.
                                                                            
                                                                            
 java.io.FileNotFoundException:                                             
 http://localhost:8080/test/ServletRedirector                               
                                                                            
      java.lang.Throwable(java.lang.String)                                 
                                                                            
      java.lang.Exception(java.lang.String)                                 
                                                                            
      java.io.IOException(java.lang.String)                                 
                                                                            
      java.io.FileNotFoundException(java.lang.String)                       
                                                                            
      java.io.InputStream                                                   
 sun.net.www.protocol.http.HttpURLConnection.getInputStream()               
                                                                            
      java.io.InputStream                                                   
 org.apache.commons.cactus.client.AutoReadHttpURLConnection.getInputStream  
 ()                                                                         
                                                                            
      java.net.HttpURLConnection                                            
 org.apache.commons.cactus.client.ServletHttpClient.doTest(org.apache.commo 
 ns.cactus.ServletTestRequest)                                              
                                                                            
      void                                                                  
 org.apache.commons.cactus.ServletTestCase.runGenericTest(org.apache.common 
 s.cactus.client.AbstractHttpClient)                                        
                                                                            
      void org.apache.commons.cactus.ServletTestCase.runTest()              
                                                                            
      void org.apache.commons.cactus.AbstractTestCase.runBare()             
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
  Thanks so much for your help on this.                                     
  Lanka :)                                                                  
                                                                            
                                                                            
                                                                            



[EMAIL PROTECTED]
CheckFree i-Solutions
Ann Arbor MI 48108
734-205-4112

Reply via email to