tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jovie Castaneda <jo...@pure-commerce.com>
Subject RE: Problems in starting up a servlet
Date Mon, 29 Oct 2001 02:44:52 GMT
no its not in a package its a single servlet only

-----Original Message-----
From: Dmitri Colebatch [mailto:dim@bigpond.net.au]
Sent: Monday, October 29, 2001 1:47 PM
To: Tomcat Users List
Subject: Re: Problems in starting up a servlet


is the class StartMe in a package?  if so, you'll need to put the fully
qualified class name in for
<servlet-class>com.mydomain.mypackage.StartMe</servlet-class>

hth
dim

On Mon, 29 Oct 2001, Jovie Castaneda wrote:

> 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>
>
>


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


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


--
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