facebook

[Closed] Mappings are Wrong

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #280488 Reply

    grungefreak1
    Member

    Hi,

    I am running Windows Vista, MyEclipse6.0, JDK 1.5 and Tomcat 6.0.14.

    I am having problems with running servlets when I deploy a servlet in a package e.g. packagename.TestServlet. I call it using e.g. http://localhost:8080/servlet/packagename.TestServlet and it doesn’t show in my browser window.But when I leave out the package name e.g. http://localhost:8080/servlet/TestServlet, it actually works then.Can anybody explain this to me as I didn’t edit the conf/web.xml file in Tomcat nor did I edit the web.xml file within the actual application.

    When I do make any changes to the web.xml file, tomcat throws out numerous errors on startup.

    Any suggestion?

    GF

    #280502

    Loyal Water
    Member
    #280538

    grungefreak1
    Member

    @support-nipun wrote:

    Did you make the change in your server.xml file ?
    http://cs.calstatela.edu/~abbott/Courses/CS_320b/Running%20a%20Servlet%20under%20Tomcat.html

    Hey,

    Thanks for the reply. I checked out that link and indeed there does seem to be some editing of the server.xml file in the conf folder. I am kind of unsure what part to edit though.Could you throw any light on it for me?Rather than edit existing code, I think I need to actually add to the code, am I right?

    GF

    #280566

    grungefreak1
    Member

    I actually solved this without the server.xml file being edited.I actually had to change the mappings in my web application web.xml file and it worked.Weird though that it didn’t automatically write the new path with package name included.Then again, maybe that’s where the server.xml file comes in.

    Thanks anyway.

    GF

    #280586

    Loyal Water
    Member

    Glad you got it to work. Thanks for letting me know.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Mappings are Wrong

You must be logged in to post in the forum log in