You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stanley Wong <wo...@pcigeomatics.com> on 2009/03/10 19:58:46 UTC
className [mx4j.adaptor.http.HttpAdaptor] does not exist
Hi,
I try to setup the JMX in Tomcat 6.0.
I downloaded the latest version of mx4j and placed in the tomcat/lib
folder.
I encounter the error of "[mx4j.adaptor.http.HttpAdaptor] does not
exist".
I went through the jar files of mx4j. I did see
mx4j.tools.adaptor.http.HttpAdaptor, but not
mx4j.adaptor.http.HttpAdaptor.
Would anyone give me some assistance?
Stanley
RE: className [mx4j.adaptor.http.HttpAdaptor] does not exist
Posted by Stanley Wong <wo...@pcigeomatics.com>.
That is how I do.
1. startup.sh: adding the modification of CATALINA_OPTS
CATALINA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=6969
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
2. server.xml: adding the modification of <Connector port="8009" ...>
<Connector port="8009" handler.list="mx" mx.enabled="true"
mx.httpHost="myhost.com" mx.httpPort="6969" protocol="AJP/1.3"/>
Without adding the tomcat compat library (jmx.jar) and mx4j-tools.jar, I
have the problem-loading page.
Adding the libraries to the common/lib also gives the problem-loading
page.
Adding the libraries to the lib:
- Accessing to http://myhost.com:6969 with the local browser gives the
MX4J-Agent View (JMX Management console), but access to the ip address
of "myhost.com" like http://10.10.10.10:6969 gives the problem-loading
page.
However, even in the case of having the MX4J-Agent View, a remote
machine running jConsole is unable to connect to the agent.
I am expecting to see a blank page when I access http://myhost.com:6969,
and I am able to connect to the agent with jConsole.
Here is what I see from the log file:
Mar 11, 2009 3:28:57 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 11, 2009 3:28:57 PM org.apache.jk.common.JkMX classExists
INFO: className [mx4j.adaptor.http.HttpAdaptor] does not exist
Mar 11, 2009 3:28:57 PM org.apache.jk.common.JkMX loadAdapter
INFO: Started MX4J console on host myhost.com at port 6969
HttpAdaptor version 3.0.2 started on port 6969
log4j:WARN No appenders could be found for logger
(org.apache.log4j.jmx.HierarchyDynamicMBean).
log4j:WARN Please initialize the log4j system properly.
Mar 11, 2009 3:28:57 PM org.apache.jk.common.JkMX init
INFO: Registering the JMX hierarchy for Log4J
Mar 11, 2009 3:28:57 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 11, 2009 3:28:57 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/167 config=null
Mar 11, 2009 3:28:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1520 ms
What could be wrong?
Stanley
-----Original Message-----
From: Kees Jan Koster [mailto:kjkoster@gmail.com]
Sent: Tuesday, March 10, 2009 3:51 PM
To: Tomcat Users List
Subject: Re: className [mx4j.adaptor.http.HttpAdaptor] does not exist
Dear Stanley,
> I try to setup the JMX in Tomcat 6.0.
Here is a discussion on how to enable JConsole and JMX for various
application servers. http://java-monitor.com/forum/showthread.php?t=1
> I downloaded the latest version of mx4j and placed in the tomcat/lib
> folder.
Java 5 and 6 already have JMX built in, so there is no need for
installing any JMX libraries.
> I encounter the error of "[mx4j.adaptor.http.HttpAdaptor] does not
> exist".
>
> I went through the jar files of mx4j. I did see
> mx4j.tools.adaptor.http.HttpAdaptor, but not
> mx4j.adaptor.http.HttpAdaptor.
Could you elaborate what you want to see with JMX?
--
Kees Jan
http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192
The secret of success lies in the stability of the goal. -- Benjamin
Disraeli
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: className [mx4j.adaptor.http.HttpAdaptor] does not exist
Posted by Kees Jan Koster <kj...@gmail.com>.
Dear Stanley,
> I try to setup the JMX in Tomcat 6.0.
Here is a discussion on how to enable JConsole and JMX for various
application servers. http://java-monitor.com/forum/showthread.php?t=1
> I downloaded the latest version of mx4j and placed in the tomcat/lib
> folder.
Java 5 and 6 already have JMX built in, so there is no need for
installing any JMX libraries.
> I encounter the error of "[mx4j.adaptor.http.HttpAdaptor] does not
> exist".
>
> I went through the jar files of mx4j. I did see
> mx4j.tools.adaptor.http.HttpAdaptor, but not
> mx4j.adaptor.http.HttpAdaptor.
Could you elaborate what you want to see with JMX?
--
Kees Jan
http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192
The secret of success lies in the stability of the goal. -- Benjamin
Disraeli
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org