You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Linda R <li...@yahoo.com> on 2005/01/18 06:24:46 UTC

mod_jk linking Apache_2.0.52 with Tomcat-5.5.6

Hi,

I spent all day on this and looked at the Jakarta
documentation as well as this tomcat-user email
archive, but I can not figure this out.

The closest approximation I found was John Turner's
page for Apache 2.0.48 / Tomcat 4.1.29 / mod_jk for
Windows XP.

I'm using (don't laugh) Windows 98.

It automatically generates the mod_jk.conf in Tomcat
but then it doesn't work with JSPs - it only works
with servlets.  It works with the "jsp-examples"
folder, but not if the WEB-INF folder is removed, so I
think it's really using the servlets, not the JSPs. 
It sees nothing in the Tomcat root (webapps/Root)
directory.

If, in Apache's httpd.conf, I insert a paragraph

<VirtualHost localhost>
	ServerName localhost
	JkMount /*.jsp ajp13
	JkMount /servlet/* ajp13
	JkMount /*.class ajp13
</VirtualHost>

before the 

Include
"C:\jakarta-tomcat-5.5.6\conf\auto\mod_jk.conf"

line, then the JSPs work, but starting Apache gives
this message:

C:\Apache2\bin 20:04:27.61>apache
[Mon Jan 17 20:17:39 2005] [warn] VirtualHost
localhost:8080 overlaps with VirtualHost
localhost:8080, the first has precedence, perhaps you
need a NameVirtualHost directive

and then some things that would work with the
mod_jk.conf, such as jsp-servlets, a directory outside
the tomcat root directory, don't work.  It doesn't
seem to see the mod_jk.conf.  But this is the only way
I can figure out to get the JSP's or the Tomcat root
directory to work from Apache.

This is so confusing and the Jakarta documentation so
spotty, I'm wondering if it's worth it.

If anyone can clear up these subtleties for me, I
would appreciate it.

Thanks,

Linda


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org