• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extra Path Info weirdness

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using for a mapping?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D'oh!. Thanks Ben, that was it. I had mapped to "/XYZ" instead of "/XYZ/*".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic