tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cora <cokec...@yahoo.com>
Subject Re: Can't run servlet under own project directly
Date Wed, 26 Feb 2003 06:57:52 GMT
I have already add the context in the server.xml.
I enclosed the file here, could you please help me to
see what's wrong on that?
Thanks!

--- Peng Tuck Kwok <pengtuck@makmal.net> wrote:
> I think you need to add a context for it first. You
> can use the admin 
> interface to do it or make use of tomcat's
> autodeploy feature from a 
> .war file. You could also manually enter the context
> on your own in 
> server.xml . There are plenty of examples in there.
> 
> Cora wrote:
> > I use tomcat 4.1.8 and create a "project\ehrs"
> directory under "webapps\".
> > Save "helloworld.html" to "..\project\ehrs\", and
> make the form action url
> > to "../servlet/ServletHelloWorld",
> > also put the servlet to
> "..\project\WEB-INF\classes\ServletHelloWorld.class"
> > 
> > Moreover, I also un-remark the following at
> "..\Program Files\Apache
> > Group\Tomcat 4.1\conf\web.xml"
> > 
> >   <!-- The mapping for the invoker servlet -->
> >     <servlet-mapping>
> >         <servlet-name>invoker</servlet-name>
> >         <url-pattern>/servlet/*</url-pattern>
> >     </servlet-mapping>
> > 
> > But I got the following error message when I run
> the servlet:
> > 
> > 
> >>HTTP Status 404 -
> /project/servlet/ServletHelloWorld
> >>type: Status report
> >>message: /project/servlets/ServletHelloWorld
> >>description: The requested resource
> (/project/servlet/ServletHelloWorld)
> > 
> > is not available.
> > 
> > What else config I need to modify / add? Anyone
> can teach me?
> > Thanks at advance!
> > Cora
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
Mime
View raw message