title: Tomcat unable to deploy my application. It failed with the following error.
body: <p>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.</p>
  
  <pre><code>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
  </code></pre>