SSL on tomcat fails with 'Exception trying to load keystore'

Solution Verified - Updated -

Issue

  • Installed SSL on  tomcat5. Tomcat don't open the 8443 port.

  • SSL on tomcat fails with the following exception :

    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/gcj-4.1.2
    org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore
    SEVERE: Exception trying to load keystore /usr/share/tomcat5
    java.security.KeyStoreException: JKS
       at java.security.KeyStore.getInstance(libgcj.so.7rh)
       at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(tomcat-util-5.5.23.jar.so)
    ..
    ...
    SEVERE: Error initializing endpoint
    java.io.IOException: Exception trying to load keystore /usr/share/tomcat5: JKS
       at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(tomcat-util-5.5.23.jar.so)
    ....
    .....
    LifecycleException:  Protocol handler initialization failed: java.io.IOException: Exception trying to load keystore /usr/share/tomcat5: JKS
       at org.apache.catalina.connector.Connector.initialize(catalina-5.5.23.jar.soc62u0j.so)
    

Environment

  • Red Hat Enterprise Linux 5
  • Tomcat5-5.5.23
  • Java-1.6.0-openjdk
  • Java-1.4.2-gcj

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content