tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peng Annie <>
Subject servlet context, urgent !!!
Date Wed, 15 Jan 2003 09:44:37 GMT

I am useing Apache2, Tomcat4. Now I got a problem about the servlet context.
I have an main application which was configured to the DocumentRoot in
httpd.conf, and the alias of this main application is just under the url
root (http://servername/index.jsp will direct user to
webapps/MainApplication/index.jsp). The programe need to redirect user to
another application webapps/SecondApplication/, so in a servlet of the
MainApplication, I use the following statements:

        ServletContext sc =

But it doesn't work, I always get error 
	The requested resource (/servlet/ControllerServlet) is not

It seems Tomcat4 tried to find this ControllerServlet in the
MainApplication. How can I get the context of SecondApplication? Should I do
sth with the web.xml?

By the way, the above way works fine on Tomcat3.2.

Please help, many thanks!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message