Have you put the MyHelloWorld.class in the myapp\WEB-INF\classes\ directory?
Rgds, Andy. At 05:22 13/12/2001 -0500, you wrote: >Hi All, > >I'm trying to: > - configure the older Tomcat3.3Final (installed from Binary >RPM) > - on a linux (RedHatv7.1) system > - running apache-1.3.22-1.7.1 > >Both Tomcat and apache are up and running - seem to be working - at >least I can execute all the "sample" JSP pages and Servlets ..... >However, my attempts at configuring my own web application are not >completely successful ?? >I've poured over all the documentation .... the key pieces of >information seem to be spread out !! > >I've installed my application into: (All permissions are open - world >execute) >/var/tomcat/webapps/myApp/ index.html > WEB-INF/web.xml > >classes/MyHelloWorld.class > >I've configured all environment variables, and agent (mod_jk) property >files etc. > >BUT I can only execute my servlet using the following URLs: >http://myhost:8080/myApp/servlet/MyHelloWorld >OK >http://www.myhost.com/myApp/servlet/MyHelloWorld OK > >The following URLs do not work ??? >http://myhost:8080/myApp/doHello >FAIL:Not Found (404) >http://www.myhost.com/myApp/doHello >FAIL:Not Found (404) > >I think I'm a little confused with what can be configured in httpd.conf >vs. web.xml and uriworkermap.properties ........ vs. what's picked-up by >DEFAULT >? > >Some configuration recipes would be GREATLY appreciated ..... > >Please help > >Thanks > >I've configured my web server and tomcat in the following way ....... > > > > > > APACHE > > httpd.conf: > > LoadModule jk_module modules/mod_jk.so > AddModule mod_jk.c > .... > .... > <IfModule mod_jk.c> > JkWorkersFile > /etc/tomcat/conf/jk/workers.properties > JkLogFile /var/log/httpd/mod_jk.log > JkLogLevel info > </IfModule> > > NameVirtualHost www.host.com > > # VirtualHost example: > # Almost any Apache directive may go into a > VirtualHost container. > # > <VirtualHost www.host.com> > ServerAdmin xxx@xxx > DocumentRoot > /var/www/html/virtual/www.host.com > ServerName www.host.com > ErrorLog logs/www.host.com-error_log > CustomLog logs/www.host.com-access_log > common > > <IfModule mod_jk.c> > Alias /myApp > "/var/tomcat/webapps/myApp" > <Directory "/var/tomcat/webapps/myApp"> > > Options Indexes FollowSymLinks > </Directory> > JkMount /myApp/* ajp12 > JkMount /myApp/*.jsp ajp12 > # <Location "/myApp/WEB-INF/"> > # AllowOverride None > # deny from all > #</Location> > </IfModule> > > </VirtualHost> > > >AGENT mod_jk.so > >* I don't see WHY this should be required - but out of desperation - >I've also added the following line to the mod_jk: > uriworkermap.properties > ># Mount the examples context to the ajp12 worker > /myApp/*=ajp12 > > > >TOMCAT > >* Configured tomcat.conf java home classpath etc. >etc. etc. > >* I figure I don't need an apps-myApp.xml under >my tomcat/conf directory - should be picked up by >DEFAULT context path ? > >web.xml - Application deployment descriptor .... ><?xml version="1.0" encoding="ISO-8859-1"?> ><DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application >2.2//EN" >"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> > ><web-app> > <display-name> > My display name > </display-name> > <description> > Some description here > </description> > > <servlet> > <servlet-name>myHelloWorld</servlet-name> > <servlet-class>MyHelloWorld</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>myHelloWorld</servlet-name> > <url-pattern>/doHello</url-pattern> > </servlet-mapping> ></web-app> > > > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>