Thankx for the reply... I tried it with web.xml.... I here explain my development env.. I have placed jar , html and jsp pages inside "myFolder". I have the folder structure WEB-INF\classes inside "myFolder" and placed the servelt files there.
My java files invoke the servlet files as http://machinename:8080/myFolder/servlet/ServletName Before that i have uncommented the element <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> in the <<tomcatRoot>>/conf/web.xml file. Please note, i donot have a separate web application descriptor that is web.xml inside myFolder\WEB-INF\. I have changed the one in <<tomcatRoot>>/conf/ folder. Its working perfectly. But my client now upgraded his system to have Tomcat 5.0.19. and reported me that the application is not working in the lattest version. I went thro the documentation of Tomcat 5.0.19.It says the following : "As Tomcat 5 is a new release of Tomcat, keep in mind that some of the issues and solutions vary between the major versions of Tomcat (4.x versus 5). As you search around the web, there will be some documentation that is not relevant to Tomcat 5, but 3.x and 4.x. Doing 3.x or 4.x things to 5 will probably not work in most cases as the server.xml files are very different. ------------------------ Enabling invoker servlet: ------------------------ Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapps. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. " I understand that I have to have my application specific web.xml file inside myFolder\WEB-INF. I designed it to have the following stucture <web-app> <Servlet> <servelt-Name>TestServlet</servlet-Name> <url-pattern>/TestServlet</url-pattern> </Servlet> </web-app> Its now working if the calling statement is http://machineName:8080/webapps/myFolder/TestServlet. But all my files in Tomcat 4.1.27,invoke servlets as http://machineName:8080/webapps/myFolder/servlet/TestServlet. So I tried changing the web.xml as <web-app> <Servlet> <servelt-Name>TestServlet</servlet-Name> <url-pattern>servlet/TestServlet</url-pattern> </Servlet> </web-app> Its not working when invoked as http://machineName:8080/webapps/myFolder/servlet/TestServlet. How Should I configure web.xml/server.xml or change the folder structure specifically to Tomcat 5.0.19? Please suggest me... Thankx Latha deepak shripat mane <[EMAIL PROTECTED]> wrote: Hello.. u can check ur web.xml file.. According to me.. u have some servlet file. so u mst specified path into web.xml file.. Check that u can out ur jar file folder in following path. ./WEB-INF/lib Deepak On Tue, 09 Mar 2004 S.Latha Kamatchi wrote : >Dear Tomcat users, > >I run my web application with Tomcat 4.1.27. > >My own folder name is "myFolder". > >I put it under webapps folder. > >I have placed jar , html and jsp pages inside >"myFolder". > >I have the folder structure WEB-INF\classes inside >"myFolder" and >placed the servelt files there. > >Its working perfectly. >But my client now upgraded his system to have Tomcat >5.0.19. and >reported me that the application is not working in the >lattest version. > >Should I configure web.xml/server.xml or change the >folder structure >specifically to Tomcat 5.0.19? > >Please suggest me... > >Thankx >Latha > > >--------------------------------- >Do you Yahoo!? >Yahoo! Search - Find what you�re looking for faster. --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you�re looking for faster.
