You need to tell Apache about your user directories.

Try this location to send anything starting with ~ to tomcat.

<Location "/\~.*">
        JkUriSet worker ajp13:localhost:8009
</Location>

Charlie

> -----Original Message-----
> From: Casas, Claudia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 13, 2005 11:42 AM
> To: Tomcat Users List
> Subject: RE: servlet help
> 
> I am using jk2, apache2, and tomcat5.5
> 
> -----Original Message-----
> From: Edmon Begoli [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 6:42 PM
> To: Tomcat Users List
> Subject: Re: servlet help
> 
> Claudia,
> 
> Are you using mod_jk with Apache and Tomcat?
> You should be able to configure in Apache's httpd.conf
> to forward particular url patterns to your Tomcat(s') worker(s).
> 
> Something like:
> 
> JkMount /yourapp/* yourworker
> 
> More details are in mod_jk documentation. I do not think that there is
a
> way
> to forward only servlet calls, as you can not be sure from the URL.
> Usually,
> your URL/URI will have some servlet app. specific context which will
> help
> you.
> 
> Regards,
> Edmon
> Software Architecture to the Rescue
> 
> ----- Original Message -----
> From: "Casas, Claudia" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[email protected]>
> Sent: Wednesday, January 12, 2005 3:16 PM
> Subject: RE: servlet help
> 
> 
> Oki doki,
> I got my servlets to work from tomcat using port 8080
> (http://myserver:8080/~myacct/servlet/myservlet), but I still do not
> know how to make apache recognize my servlets and send them to tomcat.
I
> want to access (http://myserver/~myacct/servlet/myservlet)
> 
> I tried to add these lines to httpd.conf
> <Location "/servlet/*">
>         JkUriSet worker ajp13:localhost:8009
> </Location>
> 
> and also added these lines to workers2.properties
> 
> [uri:spark.iss.utep.edu/servlet/*]
> group=ajp13:localhost:8009
> 
> but still no luck! :( please help.
> 
> For reference I used the following taken from the web site:
> http://www.jolash.com/tomcat/
> 
> Configure the tomcat "web.xml" file in your tomcat's "conf" directory.
> You only need to do this if you are going to write servlets. After
doing
> this, you can put all your servlets into the subdirectory
> "WEB-INF/classes" of your webapp directory. And you can access those
> servlets with a URL like:
>  Uncomment the servlet element tags with the servlet-name of invoker
> (just search for invoker).
>     <servlet>
>         <servlet-name>invoker</servlet-name>
>         <servlet-class>
>           org.apache.catalina.servlets.InvokerServlet
>         </servlet-class>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>0</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> 
> Uncomment the servlet-mapping element tags with the servlet-name of
> invoker.
>     <!-- The mapping for the invoker servlet -->
>     <servlet-mapping>
>         <servlet-name>invoker</servlet-name>
>         <url-pattern>/servlet/*</url-pattern>
>     </servlet-mapping>
> 
> 
> -----Original Message-----
> From: Casas, Claudia [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 12, 2005 11:56 AM
> To: [email protected]
> Subject: servlet help
> 
> 
> I am running tomcat5.5.4, apache2.0.52 and jk2.
> 1)I an run my jsp's and servlets from root. I have configured tomcat
to
> run my jsp's from the homedirs, but I do not know how to configure
> tomcat to run servlets from the homedirs.
> 
> I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or
> http://myserver:8080/~myhomedir/myfile.jsp
> Either way it works fine.
> What do I need to add so that my servlets run from my homedirs as
well??
> 
> These are my configuration files:
> 
> /usr/local/apache/workers2.properties
> 
> info=Ajp13 forwarding over socket
> tomcatId=localhost:8009
> 
> 
> #define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> `
> # Map the Tomcat examples webapp to the Web server uri space
> #[uri:/jkstatus/*]
> #group=status:status
> 
> 
> 
> 
> # Uri mapping
> [uri:/jsp-examples/*]
> 
> 
> [uri:spark.iss.utep.edu/*.jsp]
> group=ajp13:localhost:8009
> 
> 
> 
> I added the following in my httpd.conf also:
> 
> <Location "/*.jsp">
>         JkUriSet worker ajp13:localhost:8009
> </Location>
> 
> 
> (Before I would just add the lines below in my httpd.conf, and jsp's
and
> servlets would work!
> JkMount /*.jsp ajp13
> JkMount /*/servlet/ ajp13)
> 
> 
> Also, I have the following in my server.xml file to run my jsp's from
my
> homedirs:
>  <Listener className="org.apache.catalina.startup.UserConfig"
>     directoryName="wwwdocs"
>     userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
> 
> What am I missing???
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to