In order to access your helloworld servlet using the url pattern: try with the following request: http://localhost:8080/phpserver/helloworld
with regards, karthik. ----- Original Message ----- From: "ben f" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 2:53 PM 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>
