thanks,
Well, I see by design the WEB-INF should be directly in webapps/myApp/
but maybe there is a way to change it, e.g. change the web.xml file. Now it
looks like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<servlet>
<servlet-name>servlet</servlet-name>
<servlet-class>
myServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servlet</servlet-name>
<url-pattern>/servlet</url-pattern>
</servlet-mapping>
<web-app>
Thanks
P.
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.
>
--
View this message in context:
http://www.nabble.com/a-simple-question-about-Directory-structure-in-Tomcat-tf4680899.html#a13381308
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]