Actually, depending on what's needed, there might be something like this:

        servlet/CaapControlServlet?control=display

So do I need to enter that in the servlet mappings? Also, I can't get the
/test servlets to work (you know, the ones that come with the Tomcat
distribution. They are supposed to show how servlet mapping works, but I
can't get them to work....

Thanks
--Kyle

-----Original Message-----
From: Rob Tanner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: 2nd Post: Servlets and mod_jk problem


Are you adding extra path info when you call a servlet such that your 
urls look something like:

http://www.center7.com/CaapControlServlet/some-data

If you are, change the url-pattern in web.xml to: CaapControlServlet/*

-- Rob

--On Friday, March 30, 2001 10:11:06 AM -0700 Kyle Tippetts 
<[EMAIL PROTECTED]> 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
>




       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]

Reply via email to