Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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 Source code of java.lang.ClassNotFoundException:
org.apache.log4j.jmx.HierarchyDynamicMBean Source code of 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 Source code of javax.management.MBeanException: nested exception is
javax.naming.ServiceUnavailableException Source code of javax.naming.ServiceUnavailableException [
Root exception is java.rmi.ConnectException Source code of java.rmi.ConnectException: Connection refused to host:
localhost; nested exception is:
       java.net.ConnectException Source code of 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 Source code of java.lang.ClassNotFoundException:
org.apache.log4j.jmx.HierarchyDynamicMBean Source code of 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)




©2008 junlu.com - Jax Systems, LLC, U.S.A.