wood burning stoves 2.0*
The moose likes Servlets and the fly likes a servlet-mapping proble using TomCat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "a servlet-mapping proble using TomCat" Watch "a servlet-mapping proble using TomCat" New topic
Author

a servlet-mapping proble using TomCat

Carlos Matus
Greenhorn

Joined: Aug 22, 2001
Posts: 2
I don't know what's wrong when I use servlet mapping tag to aliasing my servlet it doesn't seem to be recognized by Tom cat
my deployment descriptor is
<web-app>
<servlet>
<servlet-name>
UploadFile
</servlet-name>
<servlet-class>
webcid.UploadFile
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
UploadFile
</servlet-name>
<url-pattern>
/UploadFile
</url-pattern>
</servlet-mapping>
</web-app>
I'm using this entry to access my servlet
/examples/UploadFile
I tried with the original deploment descriptor but it was the same think
Could anybody help me with this problem ?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

<url-pattern>
/UploadFile
</url-pattern>
I'm using this entry to access my servlet
/examples/UploadFile

If your class files are under webapps/examples
in the correct packages, then it seems correct to me...
Have to double-check though!!!
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a servlet-mapping proble using TomCat
 
Similar Threads
Problem with web.xml (WebLogic Server 8.1 SP2) ?
error in deploying application
JSTL expressions not working
servlet mapping problem
Error in deploying web application