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

Reply via email to