Error when setting up SSL with Tomcat

marielle.spiteri's picture
Blog Categories: 

Component: SSL | Version: N/A | Edition: Subscription


You have setup SSL in your Bonita server. This enables you to use secure HTTP (HTTPS) to access the portal.

The failure occurs when you try to start the Tomcat:
The Tomcat starts, and the Bonita engine is initialized, but then immediately after that, the tomcat stops.
These message is generated in the catalina log file:
    2020-03-10 12:25:28.175 +0200 INFOS: org.apache.catalina.startup.Catalina Server startup in 59510 ms 2020-03-10 12:25:29.631 +0200 GRAVE: []( java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I at org.apache.tomcat.jni.SSL.renegotiatePending(Native Method) at []( at []( at []( Source) at []( at []( at []($SocketProcessor.doRun( at []( at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$ Source) at org.apache.tomcat.util.threads.TaskThread$ at Source)    

Why do you have this error?

If you read the few lines above this error in your catalina log file, the call stack suggests that the error is generated when handling incoming HTTP requests, very early in the SSL protocol (handshake): which directs the investigation towards Apache Tomcat Native and OpenSSL.

If you search in your log file, you will most likely find this log information:
    2020-03-10 12:24:27.376 +0200 INFO: org.apache.catalina.core.AprLifecycleListener An older version [1.2.17] of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of [1.2.23]    
This means, an older version of the Tomcat Native library is installed on your server.


You need to upgrade the Tomcat Native library to the minimum required on your server, as specified in the log. In this example, upgrade to at least  1.2.23

Here is the Tomcat official documentation:

The required version is also available out of the box in the Tomcat Bundle provided by Bonita, for example in version 7.10.0, the version 1.2.23, in folder: BonitaSubscription-7.10.0/server/bin/tomcat-native.tar.gz.