This is by design. WEB-INF is a special directory that must be a direct subdirectory of the webapp's top level. In other words, webapps/myApp/WEB-INF is good. WEB-INF in any other location within your webapp is bad. All this is described in the servlet spec and not tomcat specific.

--David

pesho318i wrote:
Hi all,

I'd like to access a servlet, which resides in the following directory:

webapps/myApp/WebContent/WEB-INF/classes/myServlet

In my web browser I'm typing: http://localhost/myApp/WebContent/servlet //result - "the requested resource is not available"
(I have done the servlet-mapping in web.xml to /servlet)

Note that if I move the WebContent directory directly into webapps it works! I can't figure out why if it's one directory deeper it cannot find the
servlet.


I'll be grateful if you could tell me how to handle this problem...
Thanks,
P.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to