Java Tomcat无法部署我的应用程序。它失败了,出现以下错误。
我一直在为一个java项目工作。我在部署应用程序时遇到以下错误,并且错误没有得到一致识别Java Tomcat无法部署我的应用程序。它失败了,出现以下错误。,java,Java,我一直在为一个java项目工作。我在部署应用程序时遇到以下错误,并且错误没有得到一致识别 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.H
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
检查类路径上是否存在jsse.jar文件。
javax.net.ssl.HostnameVerifier
类被项目的其他依赖项引用,但在tomcat服务器上不可用
我认为JSSE已经与JDK捆绑在一起,因为1.4是包含添加到构建路径中的类的类/jar吗?查看BuildPath中可能缺少的jar,因为所需的库不可用。如果您包含所有需要的JAR,请检查WEB-INF/lib。“未解决的编译问题”通常意味着您的代码有编译错误。检查代码并修复问题。如果存在编译错误,可能会禁用IDE(eclipse?)以自动启动程序。很明显,有人试图运行有编译错误的Java代码。OP是一个幸运的家伙,他不仅没有被否决,反而赢得了选票。