wood burning stoves
The moose likes Tomcat and the fly likes Tomcat and SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and SSL" Watch "Tomcat and SSL" New topic

Tomcat and SSL

shawn kennedy
Ranch Hand

Joined: Oct 31, 2002
Posts: 67
Hi guys,
I need help with tomcat-3.2.3 and SSL.I have followed the whole procedure and my site seems to be secure but when i check the tomcat console i get the following excpetions due to which my whole application has slowed down miserabley.Can you all tell me how to resolve it and what is the cause of it.Will need help immediately as my client cannot access the application properly.

2004-08-20 14:20:07 - ContextManager: IOException reading request, ignored - jav
ax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshak
eException: Remote host closed connection during handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection du
ring 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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(DashoA6275)
at org.apache.tomcat.net.SSLSocketFactory.preProcessRequest(SSLSocketFac
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
... 3 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
... 9 more
Carl Sampson

Joined: Apr 09, 2003
Posts: 22
It appears like the client lost connection or the connection dropped sometime during the protocol handshaking. Since HTTPS is a stateful protocol (a connection is maintained between the browser and the server) it will perform worse than standard HTTP. It appears that this problem is aggravating that.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
This link talk about your problem.

Java Developer, Thailand
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Tomcat and SSL
jQuery in Action, 3rd edition