Hi, I want to monitore and manage my tomcat instance using JMX. I use tomcat-5.4.4 and a JDK-1.5 under suse linux. I do the actions specified in the official documentation (Monitoning and managing tomcat).
~/bin/startup.sd export CATALINA_OPTS="-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=8789 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false" ~/conf/server.xml <Connector port="8790" handler.list="mx" mx.enabled="true" mx.httpHost="Linux2" mx.httpPort="8789" protocol="AJP/1.3" /> I don't use passwords, I am just testing the JMX funcionality. In a near future, I will activate passwords with a better security. When I start tomcat, the JMX service is activated. I can see the ports related to JMX in the netstat output. Linux2:/home/ctomcat # netstat -nap | grep tcp tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 760/ tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1689/X tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1133/ tcp 0 0 127.0.0.1:8005 :::* LISTEN 6483/java tcp 0 0 :::33128 :::* LISTEN 6483/java tcp 0 0 :::8009 :::* LISTEN 6483/java tcp 0 0 :::8080 :::* LISTEN 6483/java tcp 0 0 :::8789 :::* LISTEN 6483/java -----------------------^^^^ JMX port tcp 0 0 :::8790 :::* LISTEN 6483/java -----------------------^^^^ JMX connector port tcp 0 0 :::22 :::* LISTEN 955/sshd The problem arises when I do a JMX request with any web broser. For example: [EMAIL PROTECTED]:~> wget http://localhost:8790 --14:04:07-- http://localhost:8790/ => `index.html' Resolving localhost... done. Connecting to localhost[::1]:8790... connected. HTTP request sent, awaiting response... 14:04:07 ERROR -1: No data received. In the ~/logs/catalina.log appears: 05-ago-2005 14:03:07 org.apache.jk.common.MsgAjp processHeader GRAVE: BAD packet signature 18245 05-ago-2005 14:03:07 org.apache.jk.common.ChannelSocket processConnection GRAVE: Error, processing connection java.lang.IndexOutOfBoundsException at java.io.BufferedInputStream.read(BufferedInputStream.java:306) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:598) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:554) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) How can I solve this problem? I must upgrade to a newer tomcat version. I consult the changelogs between 5.4.4 and the last Tomcat and I don't see any references about this problem. Is this problem solved or it is an erroniuos configuration. Thanks a lot for your attention. Regards, Xevi. ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]