[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Servlet mapping
- Subject: RE: [cobalt-developers] Servlet mapping
- From: Terrell Deppe <terrell@xxxxxxxxxx>
- Date: Thu Mar 21 14:41:05 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
The JkMount points are actually generated by cobalt_config.pl, placed
into
/usr/java/jakarta-tomcat/conf/mod_jk.conf-auto
then imported to the httpd.conf file, but that doesn't work for a war
file deployment. For example, I added j_security_check there so that
all sites could use the security model as documented in the J2EE docs:
This line was already there:
printf COBALT_CONFIG "JkMount /$warname/servlet/* ajp12\n";
I added this one right after it:
printf COBALT_CONFIG "JkMount /$warname/j_security_check ajp12\n";
Side note:
Is it just me, or is the Java dev. package severely lacking? If I had
much free time, I'd write a decent, deployable package of my own
complete with Tomcat 4, and some of the other newer spec. items. Of
course, if there's much demand for it, I might just make some time
(hint: that's a challenge to push me over the edge).
-Terrell
On Thu, 2002-03-21 at 13:05, Alexander Povargo wrote:
> 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
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers