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

Discussion in 'Java' started by Mupota Muchelemba, Feb 2, 2004.

  1. 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?
     
    Mupota Muchelemba, Feb 2, 2004
    #1
    1. Advertising

  2. Mupota Muchelemba

    Tony Morris Guest

    "Mupota Muchelemba" <> wrote in message
    news:...
    > 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)
     
    Tony Morris, Feb 4, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonathan Folland
    Replies:
    2
    Views:
    1,647
    Jonathan Folland
    Mar 17, 2005
  2. Aleksi Kallio
    Replies:
    1
    Views:
    1,007
    John C. Bollinger
    Aug 4, 2003
  3. circuit_breaker
    Replies:
    2
    Views:
    2,025
    Jack Jia
    Apr 4, 2004
  4. Anders Skar
    Replies:
    1
    Views:
    2,123
    Anders Skar
    Jul 22, 2004
  5. Extra Path Info

    , Aug 24, 2006, in forum: ASP General
    Replies:
    11
    Views:
    327
    Anthony Jones
    Aug 29, 2006
Loading...

Share This Page