problem running servlet on apache tomcar 5.5.23

Discussion in 'Server Operation' started by raghu, Apr 15, 2007.

  1. raghu

    raghu New Member

    Hi

    I am trying to run my first application servlet in apache tomcat 5.5.23 but it doesnt work. The example servlets and JSPs work fine but my application( called "firstapp") gives a http 404- resource not found error.

    I am using JDK 6 and have setup the the JAVA_HOME variables and compiled the source for my app. here is the hierarchy where I have placed the application

    %CATALINA HOME%/webapps/firstapp/WEB-INF/classes/PrimitiveServlet.java
    %CATALINA HOME%/webapps/firstapp/WEB-INF/classes/PrimitiveServlet.class
    %CATALINA HOME%/webapps/firstapp/WEB-INF/web.xml

    here are the contents of the web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>



    <!DOCTYPE web-app

    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

    "http://java.sun.com/dtd/web-app_2_3.dtd">



    <web-app>

    <servlet>

    <servlet-name>Primitive</servlet-name>

    <servlet-class>PrimitiveServlet</servlet-class>

    </servlet>

    </web-app>


    Could anyone please help me!!!!!!!!!
    :(

    Raghu,
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the URL you're using, and what's the document root of that vhost?
     

Share This Page