Hi, I faced the same problem. I am using Websphere Studio 4 which is the IDE and comes up with a Websphere test env. I have found out something that is working for me, its through hit and trial method. In my web.xml I have two entries for the ServletRedirector, here they are
<servlet-mapping> <servlet-name>ServletRedirector</servlet-name> <uri-pattern>ServletRedirector</uri-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ServletRedirector</servlet-name> <uri-pattern>/ServletRedirector/*</uri-pattern> </servlet-mapping> This way I am able to access my ServletRedirector in the browser both with and without the "/" attached to it. I am able to run all the methods of SampleServlet, but one. For this particular method which forwards to test.jsp, I am getting FileNotFoundException, even though I have test.jsp in proper place. Yet to find out what is going on. So give it a shot and see if it works. Thanks, Devasish --- BALA KRISHNA <[EMAIL PROTECTED]> wrote: > > Hi, > > I have come across a strange behavior that I am > trying > to understand. The "Config How To" on cactus site > explicitly says that cactus.properties should > contain > the entry... > > cactus.servletRedirectorURL = > http://localhost:8080/test/ServletRedirector/ > > With special note on why trailing "/" is required. > > Things were fine so far when I was working in JBoss. > > When trying to move to WebSphere, I start getting > FileNotFoundException as error when I run the test. > But I called the servlet > (http://localhost:8080/test/ServletRedirector) > directly from browser and saw that it was working. > > If you din't notice like me, I didnt put trailing > "/" > when using browser directly. I realized this after I > took help of few more eyes. Then I tried with > trailing > "/" and I get 404 error even when using browser. > > Interestingly, I am not able to run tests in > WebSphere > when follow the "Config HowTo" tutorial exactly. > > I am using cactus 1.2 and WebSphere 4.0. > > Btw, I looked at old postings on mailing list for > similar error in WebSphere. Came across exaclty same > symptoms but were due to completely different > reason. > > Please email, if you understand this better. > > Thanks, > balki > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
