Hi I am experiencing a very peculiar issue when migrating from Apache Tomcat 4.1.x (Apache 1.3.27) to 5.5.23 (Apache 2.2.3) on Red hat Linux 5.
The issue is Tomcat 5.5.x looks for a servlet file under server’s physical file system and reporting HTTP 404 error rather than going to the servlet mapping in web.xml. Tomcat 4.1.x doesn’t have this problem. I am searching all support group from past many weeks and still not able to resolve this issue. Application Structure: ROOT ------testapp -------test ----index.html ----WEB-INF -------classes -------HelloServlet.class WEB-INF\web.xml configuration: <servlet> <servlet-name>hello</servlet-name> <servlet-class>HelloServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>hello</servlet-name> <url-pattern>/test/hello.do</url-pattern> </servlet-mapping> Httpd.conf configuration: <VirtualHost …> DocumentRoot /var/www/testapp Alias /test /var/www/testapp/ JkMount /*.do ajp13 JkMount /*.jsp ajp13 </VirtualHost> When I browse http://192.168.1.23/test/hello.do I get “HTTP Status 404 - /test/hello.do, the requested resource (/test/hello.do) is not available”. In my synopsis when Tomcat 5.5.x looks at the URL it is first going to a folder called ‘test’ and looking for a file called ‘hello.do’ in the folder rather than going into web.xml first. The above structure and configuration just works just fine on Tomcat 4.1.x. Also, I didn’t see any mention of this change on the Tomcat change logs. I would really appreciate your help in resolving this issue on Tomcat 5.5.x. Please Note: 1. If I change the url-pattern to <url-pattern>/hello.do</url-pattern> in web.xml the servlet call works but changing the entire application this way is beyond my scope. 2. I have tried a work around by defining sub-context in the server.xml, this works fine except that the sessions defined in parent app and sub-context app is not accessible to each other since both are in the different contexts. I know that there are mechanisms available to share the session between the different contexts but it is again beyond my scope to change the application in this pattern. Thank you for your help in advance. Regards Sriganesh --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org