Reputation: 435
I have been working for a java project. I am getting the following error when I deploy the app, also the error was not consistently identified.
Caused by: java.lang.Error: Unresolved compilation problems:
The type javax.net.ssl.HostnameVerifier cannot be resolved. It is indirectly
referenced from required .class files
The import javax.net.ssl.HostnameVerifier cannot be resolved
The import javax.net.ssl.KeyManager cannot be resolved
The import javax.net.ssl.KeyManagerFactory cannot be resolved
The import javax.net.ssl.SSLSession cannot be resolved
The import javax.net.ssl.TrustManager cannot be resolved
The import javax.net.ssl.TrustManagerFactory cannot be resolved
TrustManagerFactory cannot be resolved to a type
KeyManagerFactory cannot be resolved to a type
TrustManagerFactory cannot be resolved to a type
TrustManagerFactory cannot be resolved
TrustManagerFactory cannot be resolved to a type
KeyManagerFactory cannot be resolved to a type
KeyManagerFactory cannot be resolved
KeyManagerFactory cannot be resolved to a type
The type javax.net.ssl.SSLContext cannot be resolved. It is indirectly referenced
from required .class files
The type javax.net.ssl.SSLSocketFactory cannot be resolved. It is indirectly
referenced from required .class files
KeyManager cannot be resolved to a type
KeyManagerFactory cannot be resolved to a type
TrustManager cannot be resolved to a type
TrustManagerFactory cannot be resolved to a type
HostnameVerifier cannot be resolved to a type
HostnameVerifier cannot be resolved to a type
SSLSession cannot be resolved to a type
Upvotes: 3
Views: 1534
Reputation: 1190
Check if the jsse.jar
file is present on your classpath. The javax.net.ssl.HostnameVerifier
class is referenced by an other dependency of your project but is not available on the tomcat server.
I think the JSSE has been bundled with the JDK since 1.4
Upvotes: 2