I have written an example servlet, called df.class and have implemented the same functionality as a jsp, called df.jsp. I have set up tomcat so that it uses the mod_jk.so module and it auto generates the mod_jk.conf-auto file which I include in my apache config file (httpd.conf). I am able to access the jsp file using http://server/df/df.jsp and using http://server:8080/df/df.jsp. However I can only access the servlet via http://server:8080/df/df if i use http://server/df/df or .../df/DiskUsage or .../df/servlet/df or any other combination I get an error from apache saying that it is not on this server (error 404). Why cant I get through to the servlet via apache and what is the proper syntax for the request ( i.e http://server/?/? ). THANKS ahead of time. I am using Tomcat 3.2 and Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_jk/1.1.0 .. More information below
Carl I have set up my servlet within the TOMCAT_HOME/webapps/df directory so the following structure exists: df.war df |-- WEB-INF | |-- classes | | `-- df.class | `-- web.xml |-- df.jsp |-- df.jsp.orig |-- images | `-- tomcat.gif |-- index.html `-- javadoc my web xml file contiains the following: <web-app> <display-name>Disk Usage</display-name> <description> This is a simple web application with a source code organization based on the recommendations of the Application Developer's Guide. </description> <servlet> <servlet-name>DiskUsage</servlet-name> <servlet-class>df</servlet-class> </servlet> <servlet-mapping> <servlet-name>DiskUsage</servlet-name> <url-pattern>df</url-pattern> </servlet-mapping> </web-app> my relevant sections of the mod_jk.conf-auto file are : # The following line makes apache aware of the location of the /df context # Alias /df "/opt/tomcat/webapps/df" <Directory "/opt/tomcat/webapps/df"> Options Indexes FollowSymLinks </Directory> # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /df/servlet/* ajp12 JkMount /df/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # <Location "/df/WEB-INF/"> AllowOverride None deny from all </Location> # # The following line prohibits users from directly accessing META-INF # <Location "/df/META-INF/"> AllowOverride None deny from all </Location> ####################################################### # Auto configuration for the /df context ends. ####################################################### -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>