Hi, Open your httpd.conf, find required VirtualHost section and write into this section: JkMount /*.tom ajp12
Restart your httpd and try your servlet. Regards, Alexander Povargo ALVO Business Solutions, Corp. [EMAIL PROTECTED] http://www.yournewhosting.com ICQ 25639843 > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:cobalt-developers- > [EMAIL PROTECTED]] On Behalf Of Thomas Inglis > Sent: Monday, March 18, 2002 6:38 AM > To: [EMAIL PROTECTED] > Subject: [cobalt-developers] Servlet mapping > > Can you point me in the right place to solve a > problem, I've spent quite a while looking and feel I > found the solution but it doesnt seem to work. > > I have a default installation of apache/tomcat on a > RaQ4. What I need is to invoke my custom servlet > without the tomcat /servlet/ context mapping. Override > in web.xml I hear you say! > > My conf is at the bottom of this mail. All works fine > but only with this /servlet/ mapping. > > It just wont accept it from the document root. Anyone > please??? :) > > <?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> > <servlet> > <servlet-name>myservlet</servlet-name> > > <servlet-class>mypackage.myServlet</servlet-class> > <init-param> > <param-name>MY_XML</param-name> > > <param-value>/usr/java/myServlet.xml</param-value> > </init-param> > </servlet> > <servlet-mapping> > <servlet-name>myservlet</servlet-name> > <url-pattern>/*.tom</url-pattern> > </servlet-mapping> > </web-app> > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - live college hoops coverage > http://sports.yahoo.com/ > > _______________________________________________ > cobalt-developers mailing list > [EMAIL PROTECTED] > http://list.cobalt.com/mailman/listinfo/cobalt-developers _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers