Hello Mark on Tomcat Users. 1. Tomcat version is 5.5.9 2. Content of web.xml in (public_html/WEB-INF/web.xml within 'nbfcus' homedir) :
<?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> <context-param> <param-name>webmaster</param-name> <param-value>[EMAIL PROTECTED]</param-value> <description>The EMAIL address of the administrator to whom questions and comments about this application should be addressed.</description> </context-param> <!-- Enable servlet mapping --> <!-- To use these, you would need to call the mapped URL pattern from a JSP or servlet --> <servlet> <servlet-name>EventsServlet</servlet-name> <servlet-class>EventsServlet</servlet-class> </servlet> <servlet> <servlet-name>servletHandler</servlet-name> <servlet-class>servletHandler</servlet-class> </servlet> <servlet-mapping> <servlet-name>EventsServlet</servlet-name> <url-pattern>/events</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>servletHandler</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> </web-app> 3. Here is requested info from httpd.conf: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c <VirtualHost 64.235.243.224> ServerAlias nbfc.us ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/nbfcus/public_html BytesLog domlogs/nbfc.us-bytes_log ServerName www.nbfc.us User nbfcus Group nbfcus CustomLog /usr/local/apache/domlogs/nbfc.us combined ScriptAlias /cgi-bin/ /home/nbfcus/public_html/cgi-bin/ <IfModule mod_jk.c> JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 </IfModule> </VirtualHost> I hope this can help you to help me to determine problem. Thx, Raymond P. Jones Ph: 518-446-9845 E: [EMAIL PROTECTED] ----- Original Message ----- From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Saturday, April 15, 2006 12:54 PM Subject: Re: servlet mapping request > Info we need to help you: > > 1. Exact Tomcat version. I would be extremely surprised if this really > is the most recent release (5.5.17) > > 2. The content of your web.xml > > 3. Given that you are using Apache as well, the relevant Jk directives > from your httpd.conf file > > Related to point 3, can you direct your browser to Tomcat directly, > bypassing Apache? If so, does this work? > > Mark > > Raymond P. Jones wrote: > > Hello Tomcat Users. > > I need your help regarding servlet mappings in our WEB-INF/web.xml file running on an Apache webserver with a Tomcat container(most recent release) on a public website. After putting our web.xml file in public\WEB-INF and asking our web host to restart Tomcat, our servlet mappings stilll do not work in our test web page. > > I've searched through many books, even a Tomcat Quickstart book and they all say Tomcat has to be restarted for the servlet mappings in web.xml to work. So we requested a Tomcat restart and after this, the servlet mapping we use gives a <page not found> error. When I use /servlet/EventsServlet in <a> link, it calls the servlet and it works, but according to Tomcat documentation this is a security issue that we don't want to implement. > > > > I'm hoping that you know what the solution(s) are and can point me in the right direction. > > I'm appreciative for assist that you may provide. > > > > Raymond P. Jones > > Ph: 518-446-9845 > > E: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]