The access log shows this when trying to get /examples:

127.0.0.1 - - [05/Nov/2002:13:58:43 -0500] "GET /examples HTTP/1.1" 404 274

Here's what the error log says:

[Tue Nov 05 13:44:37 2002] [notice] Apache/2.0.43 (Unix) mod_jk/1.2.0 configured -- resuming normal operations
[Tue Nov 05 13:44:51 2002] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/examples

When you say httpd.conf clearly has a virtual host for localhost, you mean the included mod_jk.conf virtual host, right? And you mean just copy the contents of the auto-mod_jk.conf file and pasting them into httpd.conf, virtual host and all, and commenting out the Include directive? I'll try that.

Take care,

Mark

On Tuesday, November 5, 2002, at 03:11 PM, Turner, John wrote:


Moving Tomcat might help, but if you are getting an apache 404, that means
that Apache doesn't know what to do with http://localhost/examples, even
though your httpd.conf clearly has a virtual host for localhost and the
requisite JkMount statements.

The next thing I would try is just taking mod_jk.conf and including it into
httpd.conf globally, without using the Include directive. For some reason,
its possible Apache is choking on a VirtualHost named "localhost" but I
don't see why that would be the case.

What do the Apache error or access logs say when you make a request to
/examples?

John


-----Original Message-----
From: Mark Diana [mailto:mldiana@;vcu.edu]
Sent: Tuesday, November 05, 2002 3:06 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


Yes, it's an Apache 404, and I can access all the local documentation
for Apache at http://localhost (I haven't put anything else in there
yet).

Would it possibly have anything to do with the location of Tomcat? I
did make myself the owner of all of Tomcat's files, but I installed
them in /Library/Tomcat following a "Howto" from either the
O-Reilly or
Apple Developer site (I can't remember which). Maybe I should install
it my home or /usr/local?

Take care,

Mark


On Tuesday, November 5, 2002, at 02:33 PM, Turner, John wrote:

Hmm...this is a stumper.

The 404 you get...it's an Apache 404?  Not a Tomcat 404?
The Tomcat
errors
have blue backgrounds on the pages.

Can you access any content at all at http://localhost, besides
/examples?

John


-----Original Message-----
From: Mark Diana [mailto:mldiana@;vcu.edu]
Sent: Tuesday, November 05, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


Sorry, workers.properties:

# Setup for Mac OS X
workers.tomcat_home=/Library/Tomcat/Home
workers.java_home=/System/Library/Frameworks/JavaVM.framework/
Versions/
1.3.1/Home

ps=/
worker.list=ajp13


# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Yes, the Coyote/JK2 Connector is commented out, but the
Coyote HTTP/1.1
is not (I guess that's obvious...).

Mark

On Tuesday, November 5, 2002, at 02:25 PM, Turner, John wrote:

What're the contents of workers.properties?

Also, did you disble the CoyoteConnector on 8009 since you have
AjpConnector
enabled?

John


-----Original Message-----
From: Mark Diana [mailto:mldiana@;vcu.edu]
Sent: Tuesday, November 05, 2002 2:23 PM
To: Tomcat Users List
Subject: Re: MBeans exception and mod_jk


OK.

httpd.conf:

Include /Library/Tomcat/Home/conf/auto/mod_jk.conf

where /Home is a symbolic link to
/Library/Tomcat/jakarta-tomcat-4.1.12. The only other
thing I changed
in httpd.conf was the Server Name, which I set as localhost.

Sample from auto-generated mod_jk.conf:

########## Auto generated on Tue Nov 05 13:57:53 EST
2002##########
<IfModule !mod_jk.c>
   LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
</IfModule>

JkWorkersFile "/Library/Tomcat/Home/conf/jk/workers.properties"
JkLogFile "/Library/Tomcat/Home/logs/mod_jk.log"

JkLogLevel emerg

<VirtualHost localhost>
     ServerName localhost

     #################### localhost:/examples
####################
     # Static files
     Alias /examples "/Library/Tomcat/Home/webapps/examples"

     <Directory "/Library/Tomcat/Home/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>

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

server.xml:

<Server port="8005" shutdown="SHUTDOWN" debug="0">

	<!-- Use this to automatically generate mod_jk config -->
	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
		modJk="/usr/local/apache2/modules/mod_jk.so" />

     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
                port="8009" minProcessors="5" maxProcessors="75"
                acceptCount="10" debug="1"/>

       <Host name="localhost" debug="0" appBase="webapps"
        unpackWARs="true" autoDeploy="true">

         <!-- This is also for auto-generated mod_jk config -->
        	<Listener
className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true"
		forwardAll="false"
modJk="/usr/local/apache2/modules/mod_jk.so"
		

workersConfig="/Library/Tomcat/Home/conf/jk/workers.properties" />
Everything else in server.xml is unaltered from the default.

I'm trying to access http://localhost/examples and getting a
404 error.
http://localhost:8080/examples works great.

Thanks and take care,

Mark


On Tuesday, November 5, 2002, at 02:01 PM, Turner, John wrote:

Aside from the MBean stuff, please post relevant portion of
httpd.conf
(or
mod_jk.conf), workers.properties, and relevant portions of
server.xml,
such
as your Host container and your Connector containers.  Also
post the
URL you
are trying to access if it is something different than
http://localhost/examples.

John


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



--
Mark L. Diana, MBA
Instructor
LAN Manager & Webmaster
Virginia Commonwealth University
Department of Health Administration


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

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



--
Mark L. Diana, MBA
Instructor
LAN Manager & Webmaster
Virginia Commonwealth University
Department of Health Administration


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

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



--
Mark L. Diana, MBA
Instructor
LAN Manager & Webmaster
Virginia Commonwealth University
Department of Health Administration


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

Reply via email to