Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1717

LibraryPath is ignored on Windows with Java 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.6.0.CR1
    • 5.3.1.GA
    • tomcat, tomcat-native
    • None
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • +
    • Hide

      Set the following Path system environment variables which folder contains *.dll library:

      • JWS_HOME\jbcs-apr-1.6.3\bin
      • JWS_HOME\jbcs-openssl-1.1.1\openssl\bin
      • JWS_HOME\tomcat\lib
      Show
      Set the following Path system environment variables which folder contains *.dll library: JWS_HOME\jbcs-apr-1.6.3\bin JWS_HOME\jbcs-openssl-1.1.1\openssl\bin JWS_HOME\tomcat\lib
    • Hide
      1. Install Oracle JDK 11 or Red Hat OpenJDK 11 for Windows to Windows Server 2016.
      2. Install JWS 5.3.0 following the instructions in the installation guide
      3. Extract jws-5.3.1-application-server-win6-x86_64.zip and jws-5.3.1-application-server.zip to apply 5.3.1 patch
      4. Register JWS 5.3.1 as a windows service following the instructions in the product documentation 3.3. Configuring the JBoss Web Server Installation
      5. Start tomcat service by "net start Tomcat9", then the message "The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path" is shown in catalina-yyyy-MM-dd.log:
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.30.redhat-5
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 21 2020 19:09:27 UTC
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.30.0
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows Server 2016
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\RedHat\java-11-openjdk-11.0.7-1
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.7+10-LTS
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\jws-5.3.0-application-server\jws-5.3\tomcat
        01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\jws-5.3.0-application-server\jws-5.3\tomcat
        ...
        01-Jul-2020 11:01:33.115 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Program Files\RedHat\java-11-openjdk-11.0.7-1\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.]
        
      Show
      Install Oracle JDK 11 or Red Hat OpenJDK 11 for Windows to Windows Server 2016. Install JWS 5.3.0 following the instructions in the installation guide Extract jws-5.3.1-application-server-win6-x86_64.zip and jws-5.3.1-application-server.zip to apply 5.3.1 patch Register JWS 5.3.1 as a windows service following the instructions in the product documentation 3.3. Configuring the JBoss Web Server Installation Start tomcat service by "net start Tomcat9", then the message "The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path" is shown in catalina-yyyy-MM-dd.log: 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.30.redhat-5 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 21 2020 19:09:27 UTC 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.30.0 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2016 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\RedHat\java-11-openjdk-11.0.7-1 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.7+10-LTS 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\jws-5.3.0-application-server\jws-5.3\tomcat 01-Jul-2020 11:01:33.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\jws-5.3.0-application-server\jws-5.3\tomcat ... 01-Jul-2020 11:01:33.115 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Program Files\RedHat\java-11-openjdk-11.0.7-1\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.]

      When running JWS 5.3.1 as a windows service with Java 11, the below message occurs at startup then the native libraries are not loaded.

      01-Jul-2020 11:01:33.115 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\jws-5.3.0-application-server\jws-5.3\tomcat\bin;C:\Program Files\RedHat\java-11-openjdk-11.0.7-1\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.]
      

      The are some of upstream related issue DAEMON-396 LibraryPath is broken for Java 11 using Windows 10/2016 for Commons Daemon and Bug 63310 - Update Commons Daemon for improved Java 11 support for Tomcat, but the JWS 5.3.1 still reproduces the issue with Java 11 on Windows.

      This issue does not occur with Java 8.

              szappis@redhat.com Sokratis Zappis
              rhn-support-nagetsum Norito Agetsuma
              Luke Audie (Inactive)
              Adam Krajcik Adam Krajcik
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: