The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JSPs work but Servlets Fail

Discussion in 'General Discussion' started by jsteel, Jul 4, 2002.

  1. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    JSPs are working just fine using the Tomcat 4 install scripts. I cannot get Servlets to work though. They return a 404 The requested resource (/servlets/MyServlet) is not available. I'm at a loss.

    I'm guessing it has something to do with either the server.xml or web.xml file, but I don't see anything wrong.

    These entries are there:

    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13

    I'm trying to access the servlet using either:

    http://www.domain.com/servlet/MyServlet

    or

    http://www.domain.com/servlets/MyServlet


    The servlet is located in the /home/username/public_html/servlet directory is has been chmod 755.

    Anyone have any ideas?

    Thanks,
    jaz
     
  2. kt

    kt Active Member

    Joined:
    May 4, 2002
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    I know I am having the same problem....
     
Loading...

Share This Page