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.

Reply via email to