same problem i'm having. i've posted several messages regarding this in
the last couple days. no solution yet though.
what version of linux are you running?
what version of apache?
what version of mod_jk? (built yourself or from the jakarta web site?)
have you tried mod_jserv also? (i did but it's segv'ing)
--
Todd Pfaff \ Email: [EMAIL PROTECTED]
Computing and Information Services \ Voice: (905) 525-9140 x22920
ABB 132 \ FAX: (905) 528-3773
McMaster University \
Hamilton, Ontario, Canada L8S 4M1 \
On Fri, 30 Mar 2001, Kyle Tippetts wrote:
> I'm having trouble getting servlet mapping to work properly using mod_jk on
> Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
> Servlets work as well *if* they're located in the
> /webapps/whatever/Web-inf/classes directory, or if the url contains the
> fully-qualified name of the servlet.
>
> Here's my situation:
>
> * classpath for my context is
> /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes
> * Servlet sits at
> /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes/com/center7/em/apps/ap
> o/src
> * pertinent parts of web.xml looks like this:
> <servlet>
> <servlet-name>
> CaapControlServlet
> </servlet-name>
> <servlet-class>
> com.center7.em.apps.apo.src.CaapControlServlet
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>
> CaapControlServlet
> </servlet-name>
> <url-pattern>
> /CaapControlServlet
> </url-pattern>
> </servlet-mapping>
>
> * I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
> httpd.conf. Inside the mod_jk.conf file, my context information is set up as
> follows:
> Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"
>
> JkMount /apo/servlet/* ajp13
> JkMount /apo/*.jsp ajp13
>
> * The url I use inside an html page to access the servlet is
> servlet/CaapControlServlet
> I then get a 404 error that says /apo/servlet/CaapControlServlet not
> found.
>
> Now the interesting thing is that none of the example mapping servlets found
> in the /test directory work, either. So, have I set something up wrong, and
> if so, what have I overlooked or done wrong, or does servlet mapping not
> work with Tomcat 3.2.1? Thanks in advance.
>
>
> ======================================
> --Kyle Tippetts
> --Center7 PilotCenter Development
> [EMAIL PROTECTED]
> --www.center7.com
>
>