tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jovie Castaneda" <jo...@pure-commerce.com>
Subject Problems in starting up a servlet
Date Mon, 29 Oct 2001 02:33:26 GMT
I am trying to make my servlet work at the start of tomcat
my servlet is located in the webapps/test/web-inf/classes
-in the browser you can access it through 
http://localhost:8080/test/servlet/StartMe

these are things I have done
1.Edit web.xml in the conf directory
   I added the following:

   <servlet>
        <servlet-name>
            StartMe
        </servlet-name>
        <servlet-class>
            StartMe
        </servlet-class>
        <load-on-startup>
             1 
         </load-on-startup>
    </servlet>   

      <servlet-mapping>
        <servlet-name>
            StartMe
        </servlet-name>
        <url-pattern>
            /test/servlet/*
        </url-pattern>
    </servlet-mapping> 


I also edited the web.xml located in /webapps/test
with the following:
 <servlet>
        <servlet-name>StartMe</servlet-name>
        <servlet-class>StartMe</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>StartMe</servlet-name>
        <url-pattern>/StartMe</url-pattern>
    </servlet-mapping>

When I tried starting Tomcat it says:
cannot load servlet name: StartMe
cannot load servlet name: StartMe
cannot load servlet name: StartMe

Please help me go through this..thanks in advance
 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message