tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lindomar" <lindomar.si...@bol.com.br>
Subject Re: web.xml
Date Thu, 19 Sep 2002 14:17:52 GMT
Hi Vincet. Thanks for your reply.

My tomcat's example run.
The error is :
HTTP Status 404 - /myapp/oneid/
The requested resource (/myapp/oneid) is not available

Note: I got directory myapp of tomcat 3.2.3, and i placed on 4.1.

Thanks again!

----- Original Message -----
From: <Vincent.Gaboriau@answare.fr>
To: Tomcat Users List <tomcat-user@jakarta.apache.org>
Sent: Thursday, September 19, 2002 10:37 AM
Subject: RE: web.xml


Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br

Nothing's wrong, nothing's missing.
Your problem isn't here.
Does the Tomcat's examples run?
Which error do you get?

-----Message d'origine-----
De : Lindomar [mailto:lindomar.silva@bol.com.br]
Envoyé : jeudi 19 septembre 2002 15:14
À : Tomcat Users List
Objet : web.xml


Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
    |_WEB-INF
            |_classes
                    |_subdir1
                            |_subdir2
                                    |_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 <servlet>
  <servlet-name>myservlet</servlet-name>
  <servlet-class>subdir1.subdir2.myServlet</servlet-class>
  </servlet>
 <servlet-mapping>
  <servlet-name>myservlet</servlet-name>
  <url-pattern>/oneid</url-pattern>
  </servlet-mapping>
  </web-app>
..
***

What's wrong or missing?

Thanks in advanced.




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



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




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


Mime
View raw message