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: tomcat-user@jakarta.apache.org 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]