Have you checked the docs? How to install servlets is covered there. Might save you some time vs. trial-and-error.
There is the Application Develpoer's Guide: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html ... and the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html John > -----Original Message----- > From: ben f [mailto:ben_m_f@;yahoo.co.uk] > Sent: Thursday, November 07, 2002 4:23 AM > To: Tomcat Users List > Subject: RE: tomcat configuration for a newbie > > > > Hari > Good point, I see that my url-pattern entry of phpserver was > incorrect. I've changed this now to your recommendation of: > <servlet-name>helloworld</servlet-name> > <url-pattern>/helloworld</url-pattern> > I then try http://localhost:8080/phpserver/servlet/helloworld > but I still get a 404 error. > Does anyone else have ideas about this? I have a feeling my > context entry in conf\server.xml is wrong. > To recap: > Context path: > <Context path="/phpserver" docBase="phpserver" > debug="99" reloadable="true" crossContext="false"> > <Logger className="org.apache.catalina.logger.FileLogger" > verbosity="4" > prefix="phpserver_log." suffix=".txt" > timestamp="true"/></Context> > > webapps\phpserver\WEB-INF\web.xml: > > <web-app> > > <servlet> > <servlet-name>php</servlet-name> > <servlet-class>net.php.servlet</servlet-class> > </servlet> > > <servlet> > <servlet-name>helloworld</servlet-name> > <servlet-class>HelloWorldExample</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>php</servlet-name> > <url-pattern>*.php</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>helloworld</servlet-name> > <url-pattern>/helloworld</url-pattern> > </servlet-mapping> > > </web-app> > > Many thanks.......... > Ben > > > > > --------------------------------- > Get a bigger mailbox -- choose a size that fits your needs. > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
