JWS Tomcat will not start due to UnsatisfiedLinkError referencing libapr-1.so.0

Solution Verified - Updated -

Issue

JBoss Web Server (JWS) fails to successfully start with the following WARNING:

WARNING [main] org.apache.catalina.core.AprLifecycleListener.init The Apache Tomcat Native library failed to load. The error reported was [/opt/jws/tomcat/lib/libtcnative-1.so.0.3.1: libapr-1.so.0: cannot open shared object file: No such file or directory]
    java.lang.UnsatisfiedLinkError: /opt/jws/tomcat/lib/libtcnative-1.so.0.3.1: libapr-1.so.0: cannot open shared object file: No such file or directory
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
        at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:259)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:251)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2451)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
        at java.base/java.lang.System.loadLibrary(System.java:2063)
        at org.apache.tomcat.jni.Library.<init>(Library.java:62)
...

Environment

  • Red Hat JBoss Web Server 3.0.2
  • Red Hat JBoss Web Server 5.x
  • Red Hat JBoss Web Server 6.x

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