4 Replies Latest reply on Jul 7, 2004 5:49 AM by Dikran Seropian

    EJB call with RMI over HTTPS

    Dikran Seropian Newbie

      Hi,
      I'm using jboss3.2.4+tomcat50
      I need to call ejb using RMI over HTTPS. I first enabled ssl on tomcat. While RMI over HTTP works perfectly, when I change the client initial connection to https I consistently receive this error:

      java.io.IOException
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:593)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:117)
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:65)
      ... 10 more
      Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
      at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1451)
      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
      at java.net.URLConnection.getContentLength(URLConnection.java:371)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(DashoA6275)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:112)
      ... 11 more
      Caused by: java.io.EOFException: SSL peer shut down incorrectly
      at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
      ... 22 more

      Any idea or guideline?
      Thanks, dikran