And you might want to read the docs, like the Application Developer's Guide: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
And the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html John > -----Original Message----- > From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com] > Sent: Wednesday, November 06, 2002 1:35 PM > To: Tomcat Users List > Subject: RE: tomcat configuration for a newbie > > > Try this > > <servlet-mapping> > <servlet-name>helloworld</servlet-name> > <url-pattern>/helloworld</url-pattern> > </servlet-mapping> > > http://localhost:8080/phpserver/helloworld > > Hari Venkatesan > Performance Food Group > Phone : 804 484 6263 > > > -----Original Message----- > From: Arthur Danekyants [mailto:ADanekyants@;ctdi.com] > Sent: Wednesday, November 06, 2002 4:31 PM > To: 'Tomcat Users List' > Subject: RE: tomcat configuration for a newbie > > try localhost:8080, which is a default for Tomcat > > -----Original Message----- > From: ben f [mailto:ben_m_f@;yahoo.co.uk] > Sent: Wednesday, November 06, 2002 10:06 AM > To: [EMAIL PROTECTED] > Subject: tomcat configuration for a newbie > > > > Hi > > I am trying to get tomcat to work but unfortunately I am not getting > far. > > Tomcat version is 4.1.12 > > I have created a directory under webapps called phpserver. This > directory is intended to serve php pages using php as a > servlet from an > NT 4.0 machine. I will go onto that once I have the basic > config up and > running. > > I've written a web.xml file and put it under phpserver\WEB-INF: > > <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>/phpserver</url-pattern> > </servlet-mapping> > > </web-app> > > I've added the following context to the default server.xml > under conf\: > > <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"/> > > I copied the example HelloWorldExample.class across to the directorty > \webapps\phpserver\WEB-INF\classes and restarted tomcat. > > I then entered the URL > http://localhost/phpserver/servlet/HelloWorldExample into my > browser but > I get a 404 resource not found. > > %TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all > correct. > > I've tried permutations on a theme for the entries in server.xml and > web.xml (under phpserver\WEB-INF) but I've hit a brick wall > here. I have > read many docs (official and not official) and have learnt a lot but > somewhere I'm missing something obvisous. > > Can anyone please help me out with this issue?? > > 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> > > > -- > 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>
