We have a java applet on our website which worked for ages. Then Java 7 came out, people installed it. When people with Java 7 visiting our website using HTTPS, the applet failed to load (ClassNotFoundException). The same site and the same applet, when visit using regular HTTP, it works fine.
People with previous version of Java (1.6.x) can see the applet using either HTTP or HTTPs with no problem.
Anything we can do on our side to resolve this problem for people with Java 7 and like to stay with HTTPS?
Googled and didn't see any relevant result. Any pointer would be much appreciated.
Problem solved. Long story short, the reason is that JSSE (Java Secure Socket Extension) implementation in Java 7, by default, has SNI (Server Name Indication) enabled by default, which require the server name set up on the SSL (Secure Sockets Layer) server.
In the case of Apache, we need to do the following:
<VirtualHost default:443>
# General setup for the virtual host
DocumentRoot "/opt/apache/2.2.21/htdocs"
ServerName your.servername.com:443
Previously we have this line commented out and it works for all the browser and all Java Applet, until Java 7 is out.
I had the same discussion on the Java Developer Forum below
https://forums.oracle.com/forums/message.jspa?messageID=10330444#10330444
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With