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


-----Original Message-----
From: Mark Diana [mailto:mldiana@;vcu.edu]
Sent: Tuesday, November 05, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: MBeans exception and mod_jk


Folks,

OK, I hate to do this, but I've searched the archives and monitored
this list for a few weeks now, and I still can't get this to work. I
want to set up Apache and Tomcat on my G4 Mac with OSX 10.2.1 for
development (I want to eventually have the same set up on my
production
RedHat machine, which is currently running Apache1.3.12/Tomcat3.3.1
with mod_jk). Anyway, I've followed John Turner's Howto for the most
part. I have installed Apache 2.0.43, Tomcat 4.1.12, and
mod_jk. I have
modified server.xml, workers.properties, and httpd.conf per John
Turner's Howto and the docs, and they just won't talk to each other.
And, when I start Tomcat, I get this in catalina.out:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
	at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:369)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:777)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:751)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBean
s(ServerLi
fecycleListener.java:339)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEv
ent(Server
LifecycleListener.java:206)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
ifecycleSu
pport.java:166)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.j
ava:2182)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
	at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080

I don't know if that's a related problem or not, but I also searched
the archives on this and couldn't find the problem. I even tried
commenting out the JMX MBeans portion of server.xml, thinking
maybe it
wasn't compatible with ajp13, but that didn't help (it did
get rid of
the excepyion).

Apache works fine on port 80 and Tomact works fine on port
8080. Let me
know if you want me to post more of the config files, and
feel free to
respond privately or to the list.

Thanks!

Mark

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