1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Rep Power

    Promblems with Tomcat on NT4


    I have (small?) problem with getting Tomcat to work the way I want on NT4. I followed the instructions in "Slapping Together A JSP Development Environment".

    The problem is this, when I try do surf to http://localhost/test.jsp (wich is directly under the "Apache-root), or any subfolder, I get this error message:

    Not Found (404)

    Original request: /test.jsp

    Not found request: /test.jsp

    But if I rename the file to test.html I donīt get the 404-error. The only place it seems that I can use jsp-files is under Tomcats-folder. (http://localhost/examples and so on)

    Is it supposed to be like this? Or should you be able to use jsp-files anywhere on the webserver (like with for example PHP)?

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Iassy - Romania
    Rep Power

    Lightbulb Try this!

    Have you modified the Server.xml from the Tomcat/conf directory?
    You need to specify something like:

    <Host name="yourdomain.com">
    <Context path="" docBase="c:/pathToYourRootDir" debug="0"/>

    Something like when adding a new VirtualHost to Apache
    You will probably have to modify the Apache's httpd.conf and
    Windows's hosts file


IMN logo majestic logo threadwatch logo seochat tools logo