Tomcat returning 404 error when using additional path (/servlet/myServlet/extra/path/info)

  • Thread starter Mupota Muchelemba
  • Start date
M

Mupota Muchelemba

I have the following problem:
Tomcat returns a 404 error when using additional paths e.g.
(/servlet/myServlet/extra/path/info)...It simply says "File not
found".

Is it trying to map to a directory in the file system?? I am using
Windows 2000, NetBeans tomcat 4.x.

If i use the querystring (/servlet/myServlet?extra=1&extra2=2
it works.

Can anybody tell me what i am doing wrong?
 
T

Tony Morris

Mupota Muchelemba said:
I have the following problem:
Tomcat returns a 404 error when using additional paths e.g.
(/servlet/myServlet/extra/path/info)...It simply says "File not
found".

Is it trying to map to a directory in the file system?? I am using
Windows 2000, NetBeans tomcat 4.x.

If i use the querystring (/servlet/myServlet?extra=1&extra2=2
it works.

Can anybody tell me what i am doing wrong?

You need to provide a servlet-mapping for your new request path in the
deployment descriptor.
I suspect you are misusing the Servlet Spec. though - you might need to read
up.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top