aspose file tools*
The moose likes Tomcat and the fly likes Extra Path Info weirdness Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Extra Path Info weirdness" Watch "Extra Path Info weirdness" New topic
Author

Extra Path Info weirdness

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
I have a servlet XYZ that processes extra path info. But whenever extra path info is actually part of the URL, the servlet isn't called by Tomcat, and a 404 error message appears instead.

So

http://localhost:8080/app/XYZ

is routed to the servlet just fine, while

http://localhost:8080/app/XYZ/path

is incorrectly handled by Tomcat internally, no matter what the path info consists of.

Both requests show up in the access log just fine. The problem is not with extra path info in general, since the RequestInfoExample that ships with Tomcat works fine. Has anyone ever seen this?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What are you using for a mapping?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
D'oh!. Thanks Ben, that was it. I had mapped to "/XYZ" instead of "/XYZ/*".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Extra Path Info weirdness