  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | tomcat 4.1.29, mx4j 1.1.1 does not work! | tomcat 4.1.29, mx4j 1.1.1 does not work! 2004-01-24 - By "G�tz, Bernd"
Back 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 (See http://cat-4.ora-code.com).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 (See http://cat-4.ora-code.com).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 (See http://cat-4.ora-code.com).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 (See http://cat-4.ora-code.com).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@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |