Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Unix Tomcat problem

Options
  • 14-11-2002 12:58pm
    #1
    Posts: 0


    Hey all,

    Can anyone help me out with a Tomcat server problem on a shared UNIX server?

    I have the permissions set right and the class files in the WEB-INF/classes directory...the problem is that the servlet won't work in the web browser, saying that it does not exist.

    Can anyone tell me what's wrong? I'm going mad, trying different classpaths and all that ****e, but I think everything's set ok.

    Any ideas?

    Cheers for any help


Comments

  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    Did you set up the servlet mapping in the WEB-INF/web.xml file?

    e.g.
    <servlet>
       <servlet-name>
       myservlet
       </servlet-name>
       <servlet-class>
       com.mycompany.myproject.MyServlet
       </servlet-class>
    </servlet>
    
    <servlet-mapping>
       <servlet-name>
       myservlet
       </servlet-name>
       <url-pattern>
       /servlet/myservlet/*
       </url-pattern>
    </servlet-mapping>
    

    So going to http://localhost:8080/myproject/servlet/myservlet/
    runs the servlet.

    What exact error are you getting? A 404?


  • Posts: 0 [Deleted User]


    Yeah it's a 404

    type Status report

    message /~shane/servlet/HelloWorldExample

    description The requested resource is not available.


    that's the error message, I don't have access to the web.xml file

    What pisses me off is that it worked before and now, nothing is recognised as being there, in the classes directory, which has me thinking if I changed some sort of environment variable somehow.


Advertisement