Troubleshooting
Compile Problems
Q1: | Why can't I find javax.net.ssl.*? |
You might not have installed JSSE or the JSSE JAR files are not in your classpath. The default install method for JSSE puts the JAR files in your jre/lib/ext directory, which doesn't require classpath changes, so there's a good chance you just haven't installed JSSE. | |
Q2: | Why do I get illegal assignment errors when I create a factory or an SSL socket? |
The SSL factories use new standard extensions called SocketFactory and ServerSocketFactory. The getDefault methods in the factories return SocketFactory and ServerSocketFactory references instead of the SSL-specific factories. The underlying objects are the SSL-specific types; you just need to cast them to their SSL-equivalents. The ... |
Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.