tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From graghupa...@aegonuk.co.uk
Subject RE: Servlet Mapping again
Date Wed, 09 Apr 2003 14:59:48 GMT
try 

http://www.mysite.it/mysite/bannerupload

your servlet is always context relative :)

Guru

-----Original Message-----
From: Giorgio Ponza [mailto:giorgio@opla.it]
Sent: 09 April 2003 15:53
To: Tomcat Users List
Subject: Servlet Mapping again


Sorry guys, i need some help
I have Tomcat 4.1.18LE1.4 installed on a RH 8 dist, Apache 2.0.44 with
mod_jk 1.2.2
My tomcat server.xml has this virtual host

<Host name="www.mysite.it" debug="0" appBase="webapps/mysite"
unpackWARs="true">
<Context path="" docBase="" debug="0"
reloadable="false">.....</Context></Host>

I have 1 servlet in /webapps/mysite/WEB-INF/classes/MyServlet.class

in my web.xml i have the servlet-mapping
<servlet>
  <servlet-name>bannerupload</servlet-name>
  <servlet-class>BannerUploadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>bannerupload</servlet-name>
<url-pattern>/bannerupload</url-pattern>
</servlet-mapping>

But if i try to visit the page http://www.mysite.it/bannerupload
i always get an HTTP 404 error.
Anyone can help me? tx a lot

Giorgio Ponza



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message