[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Servlet mapping
- Subject: RE: [cobalt-developers] Servlet mapping
- From: "Alexander Povargo" <alpo@xxxxxxxxxxxxxxxxxx>
- Date: Thu Mar 21 03:29:37 2002
- Organization: ALVO Business Solutions, Corp.
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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.
alpo@xxxxxxxxxxxxxxxxxx
http://www.yournewhosting.com
ICQ 25639843
> -----Original Message-----
> From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-
> admin@xxxxxxxxxxxxxxx] On Behalf Of Thomas Inglis
> Sent: Monday, March 18, 2002 6:38 AM
> To: cobalt-developers@xxxxxxxxxxxxxxx
> 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
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers