File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Cannot connect in https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot connect in https" Watch "Cannot connect in https" New topic

Cannot connect in https

Alan Melrose

Joined: Jan 15, 2011
Posts: 5
I seen a few post about that and also a few solution with a google search but none as worked for me.
I get this when I try to connect to me tomcat in https:

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

This is the ssl connector part of my server.xml:

Any Help would be appreciated
Alan Melrose

Joined: Jan 15, 2011
Posts: 5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

You typically get this message when you have a mismatch between the protocol that your client is using and the protocol that the server is expecting; usually sending HTTP to an HTTPS listener.

Search back in this forum a week or 2, however, and there's another thread on this subject that should be of interest to you.

An IDE is no substitute for an Intelligent Developer.
Ravinderjit Singh
Ranch Hand

Joined: Jan 13, 2010
Posts: 78
You have to specify the protocol in 'server.xml'.

Check out this post.
I agree. Here's the link:
subject: Cannot connect in https
It's not a secret anymore!