3
我一直在爲一個java項目工作。當我部署應用程序時,出現以下錯誤,並且錯誤未被一致地識別。Tomcat無法部署我的應用程序。它失敗,出現以下錯誤。
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
是包含添加到構建路徑的類的類/ jar嗎?查看http://www.jarfinder.com/index.php/java/info/javax.net.ssl.HostnameVerifier,查看構建路徑中可能缺少的jar文件。 –
所需的庫不可用。如果包含所有需要的罐子,請檢查WEB-INF/lib。 –
「未解決的編譯問題」通常意味着,您的代碼有編譯錯誤。檢查你的代碼並解決問題。如果存在編譯錯誤,也許可以禁用IDE(eclipse?)以自動啓動程序。 – Matthias