Menu

#102 Unable to connect to Tomcat 5.5

MC4J 1.2b7
open
nobody
5
2004-11-23
2004-11-23
Anonymous
No

tomcat-5.5.4, JDK 1.5
matthias.roth@impart.ch
error:
java.rmi.ConnectIOException: error during JRMP
connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException:
Received fatal alert: handshake_failure
at
sun.rmi.transport.tcp.TCPChannel.createConnection
(TCPChannel.java:274)
at
sun.rmi.transport.tcp.TCPChannel.newConnection
(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke
(UnicastRef.java:94)
at
javax.management.remote.rmi.RMIServerImpl_Stub.newCl
ient(Unknown Source)
at
javax.management.remote.rmi.RMIConnector.getConnecti
on(RMIConnector.java:2229)
at
javax.management.remote.rmi.RMIConnector.connect
(RMIConnector.java:271)
at
javax.management.remote.JMXConnectorFactory.connec
t(JMXConnectorFactory.java:248)
at
org.mc4j.console.connection.JSR160ConnectionNode.con
nect(JSR160ConnectionNode.java:106)
at
org.mc4j.console.connection.ReconnectAction.performAc
tion(ReconnectAction.java:47)
at org.openide.util.actions.NodeAction$3.run
(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:74)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:585)
at
org.openide.util.actions.CallableSystemAction.invokeActio
n(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$00
0(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Caused by: javax.net.ssl.SSLHandshakeException:
Received fatal alert: handshake_failure
at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException
(Alerts.java:150)
at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException
(Alerts.java:117)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert
(SSLSocketImpl.java:1542)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord
(SSLSocketImpl.java:863)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialH
andshake(SSLSocketImpl.java:1025)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord
(SSLSocketImpl.java:619)
at
com.sun.net.ssl.internal.ssl.AppOutputStream.write
(AppOutputStream.java:59)
at java.io.BufferedOutputStream.flushBuffer
(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush
(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush
(DataOutputStream.java:106)
at
sun.rmi.transport.tcp.TCPChannel.createConnection
(TCPChannel.java:198)
[catch] ... 22 more

matthias.roth@impart.ch

Discussion

  • Greg Hinkle

    Greg Hinkle - 2004-11-24

    Logged In: YES
    user_id=773314

    I haven't really tested the SSL connector support. I usually
    disable it with "com.sun.management.jmxremote.ssl=false" in
    the management.properties file of the jdk.

    Its on my list of things to do.

     
  • Edmon Begoli

    Edmon Begoli - 2004-12-28

    Logged In: YES
    user_id=1016045

    I would suggest starting the Tomcat 5.5 with following lines
    added to your catalina.bat:

    set JAVA_OPTS=-Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=9004
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false

    I did not test with ssl and authentication either, but if
    you are not needing it right now than these JAVA_OPTS will
    work for you.

     
  • Garth Dahlstrom

    Garth Dahlstrom - 2005-01-31

    Logged In: YES
    user_id=35363

    MC4J seems to default to port 8999
    So -Dcom.sun.management.jmxremote.port=8999 in the JAVA_OPTS
    or remember override the connect URI

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.