OK. Please change JkLogLevel to "debug". Stop Apache. Stop Tomcat. Wait about 10 or 15 seconds. Start Tomcat, wait another 10 or 15 seconds. Start Apache.


Then request one of the examples JSP on port 80, and let us know what the lines in mod_jk.log and Apache's log files say. Apache's logs are under the Apache home directory, in the logs subdirectory.

John

On Wed, 4 Jun 2003 12:49:07 -0400, <[EMAIL PROTECTED]> wrote:





Hi John, everything looks fine, including the "Syntax OK" response to
apache.exe -t.
I don't know why the files didn't come thru. Here is my mod_jk.conf. There
were some lines that looked a little different than yours. For example my
"Alias /manager" line has two dots in the path name. Not sure why that is
there.




==== begin mod_jk.conf ====
########## Auto generated on Tue Jun 03 16:57:40 EDT 2003##########

<IfModule !mod_jk.c>
LoadModule jk_module C:/Program Files/Apache
Group/Apache2/modules/mod_jk-2.0.42.dll
</IfModule>

JkWorkersFile "C:/Program Files/Apache Group/Tomcat 4.1
/conf/jk/workers.properties"
JkLogFile "C:/Program Files/Apache Group/Tomcat 4.1/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
ServerName localhost

#################### localhost:/manager ####################

# Static files
Alias /manager "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager"

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF # <Location "/manager/WEB-INF/*"> AllowOverride None deny from all </Location>

<Location "/manager/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/WEB-INF/">
AllowOverride None
deny from all
</Directory>

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/META-INF/">
AllowOverride None
deny from all
</Directory>

JkMount /manager/*  ajp13
JkMount /manager/html/*  ajp13
JkMount /manager/*.jsp  ajp13

#################### localhost:/examples ####################

# Static files
Alias /examples "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples"

<Directory "C:/Program Files/Apache Group/Tomcat 4.1/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF # <Location "/examples/WEB-INF/*"> AllowOverride None deny from all </Location>

<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/META-INF/">
AllowOverride None
deny from all
</Directory>

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

#################### localhost:/tomcat-docs ####################

# Static files
Alias /tomcat-docs "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs"

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF # <Location "/tomcat-docs/WEB-INF/*"> AllowOverride None deny from all </Location>

<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/WEB-INF/">
AllowOverride None
deny from all
</Directory>

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/META-INF/">
AllowOverride None
deny from all
</Directory>

JkMount /tomcat-docs/*.jsp ajp13

#################### localhost:/webdav ####################

# Static files
Alias /webdav "C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav"

<Directory "C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>


# Deny direct access to WEB-INF and META-INF # <Location "/webdav/WEB-INF/*"> AllowOverride None deny from all </Location>

<Location "/webdav/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/webdav/WEB-INF/">
AllowOverride None
deny from all
</Directory>

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/webdav/META-INF/">
AllowOverride None
deny from all
</Directory>

JkMount /webdav/*.jsp ajp13

#################### localhost:/admin ####################

# Static files
Alias /admin "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/admin"

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF # <Location "/admin/WEB-INF/*"> AllowOverride None deny from all </Location>

<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/admin/WEB-INF/">
AllowOverride None
deny from all
</Directory>

<Directory "C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/admin/META-INF/">
AllowOverride None
deny from all
</Directory>

JkMount /admin/j_security_check  ajp13
JkMount /admin/*.do  ajp13
JkMount /admin/*.jsp  ajp13
</VirtualHost>
==== end mod_jk.conf ====


Jim




John Turner <[EMAIL PROTECTED] To: Tomcat Users List <tomcat- [EMAIL PROTECTED]> turner.com> cc: Subject: Re: mod_jk windows 2000 pro 06/04/2003 12:36 PM Please respond to "Tomcat Users List"








I didn't see the attachments come through on the list.


There's probably an easy answer.

The first things I would check:

- "apache.exe -t" returns "Syntax OK".  If it doesn't, tell us what it
says.

- you have a workers file called workers.properties, and it has the
contents and only the contents that are shown in my HOWTO

- you have a Connector configured in Tomcat's server.xml for port 8009.
This is enabled by default, so unless you changed it, its there.

- you have a mod_jk.conf file that looks VERY similar to this:
http://www.johnturner.com/howto/mod_jk_conf.html If you don't, tell us how
it differs.


- assuming your mod_jk.conf file is OK, then verify you have a line in
httpd.conf that says "Include /path/to/mod_jk.conf". This is typically the
last line in httpd.conf.


HTH

John

On Wed, 4 Jun 2003 11:30:24 -0500, <[EMAIL PROTECTED]> wrote:





I don't receive an error per se other than the "The page cannot be found"
message when I try to access the tomcat examples/jsp/index.html on port
80.
But when I explicitly use port 8080 everything works just fine. By that I
mean the html page loads and all the java examples are served and work
correctly. So I assume that the mod_jk I installed isn't doing whatever
it
is that it is supposed to do. I think it is supposed to allow us to
access
tomcat jsp's over port 80 through apache.
I had tried installing mod_jk-2.0.43, then I installed mod_jk-2.0.42.
Neither of them lets us access tomcat jsp's over port 80, but we can
access
tomcat jsp's over port 8080.


I'm attaching apache2/conf/httpd.conf, Tomcat 4.1/conf/server.xml, Tomcat
4.1/conf/auto/mod_jk.conf, Tomcat 4.1/conf/jk/workers.properties.


If there isn't an easy answer, I would just as soon drop the issue. as I
said, we can access jsp's over port 8080 and that should be good enough..


Thanks for your help!

Jim

(See attached file: workers.properties)(See attached file: httpd.conf)
(See
attached file: mod_jk.conf)(See attached file: server.xml)





John Turner
<[EMAIL PROTECTED]        To:       Tomcat Users List <tomcat-
[EMAIL PROTECTED]>              turner.com>              cc:
Subject:  Re: mod_jk windows 2000 pro
06/04/2003 12:03
PM
Please respond to
"Tomcat Users
List"








The configuration should be the same...I can't think of anything in httpd.conf that would be different between the two versions.

You'll have to give us more info than "it doesn't work".  What you're
trying to do, your configuration files, what is the exact error message
you
receive, the content of log files, etc.

Other resources:  htpp://tomcatfaq.sourceforge.net,
http://jakarta.apache.org

John

On Wed, 4 Jun 2003 11:56:09 -0400, <[EMAIL PROTECTED]> wrote:





I actually installed apache several months ago. Yesterday I downloaded
apache 2.0.46 but the installation said I had to uninstall the old
apache
first. I didn't want to have to re-configure everything all over again.
It
took me a while to get apache to work the first time, I don't want to
break
it.

Jim



John Turner
<[EMAIL PROTECTED]        To:       Tomcat Users List <tomcat-
[EMAIL PROTECTED]>              turner.com>              cc:
Subject:  Re: mod_jk windows 2000 pro
06/04/2003 11:47
AM
Please respond to
"Tomcat Users
List"








Any special reason you didn't use Apache 2.0.45?


John

On Wed, 4 Jun 2003 10:53:44 -0400, <[EMAIL PROTECTED]> wrote:





Hi all, I am new to using apache and tomcat. I have installed both on a
Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
I followed John Turners instructions for getting mod_jk working
(http://www.johnturner.com/howto/winxp-howto.html) but I can not get
tomcat
to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42
but
neither lets me access jsp on port 80. But everything does work on port
8080. Does anyone know of any other documentation for getting JK to
work?


Thanks!

Jim


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





-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
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]





-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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






-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
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]





-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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



Reply via email to