tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Götz, Bernd" <bernd.go...@tetrade.ch>
Subject tomcat 4.1.29, mx4j 1.1.1 does not work!
Date Sat, 24 Jan 2004 23:51:53 GMT
Hi

I couldn't get mx4j 1.1.1 and tomcat 4.1.29 working together properly (on
Windows 2000). As told on several msgs, I added mx4j-tools.jar from the mx4j
1.1.1 binary distribution to the tomcat server/lib directory and I
configured jk.properties with mx.port=9000 which lead me to the following
startup log of tomcat:

C:\opt\jakarta-tomcat-4.1.29-orig\bin>catalina.bat run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:       c:\opt\jdk1.3.1
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[WARN] JkMX - -No adaptors were loaded but mx.enabled was defined.
[INFO] JkMX - -Can't enable log4j mx: java.lang.ClassNotFoundException:
org.apache.log4j.jmx.HierarchyDynamicMBean
[INFO] JkMain - -Jk running ID=0 time=10/240
config=C:\opt\jakarta-tomcat-4.1.29-orig\bin\..\conf\jk2.properties

----------------------

Hmm, no adapters were loaded, aha. I digged into the code/javadoc (e.g.
JkMX.java) and found out that jk.properties need more props:

mx.enabled=true
mx.jrmpPort=9000
mx.jrmpHost=localhost

When I started tomcat again I got the following log:

C:\opt\jakarta-tomcat-4.1.29-orig\bin>catalina.bat run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:       c:\opt\jdk1.3.1
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMX - -Creating Naming:name=rmiregistry
[ERROR] JkMX - -MX4j RMI adapter not loaded:
javax.management.MBeanException: nested exception is
javax.naming.ServiceUnavailableException [
Root exception is java.rmi.ConnectException: Connection refused to host:
localhost; nested exception is:
        java.net.ConnectException: Connection refused: connect]
[WARN] JkMX - -No adaptors were loaded but mx.enabled was defined.
[INFO] JkMX - -Can't enable log4j mx: java.lang.ClassNotFoundException:
org.apache.log4j.jmx.HierarchyDynamicMBean
[INFO] JkMain - -Jk running ID=0 time=0/1562
config=C:\opt\jakarta-tomcat-4.1.29-orig\bin\..\conf\jk2.properties

--------------------------

Now I'm stuck. Anybody familiar with this exception?

thanks a lot and kind regards
-Bernd.

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


Mime
View raw message