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

Poor UX of Native libraries installation for Tomcat Embedded users

XMLWordPrintable

    • 24
    • Documentation (Ref Guide, User Guide, etc.), Release Notes, User Experience
    • ?

      In order to use APR connector or NIO+JSSE+OpenSSL connector in an embedded application, one has to:

      • download standalone Tomcat distribution zip
      • extract lib directory from that zip
      • set LD_LIBRARY_PATH
      • run one's embedded web application

      e.g.

      unzip jws-application-server-4.0.0-CR1-RHEL7-x86_64.zip jws-4.0/tomcat/lib* -d /tmp/tomcat-libs
      export LD_LIBRARY_PATH=/tmp/tomcat-libs/jws-4.0/tomcat/lib/
      java -jar target/embedded-tomcat-app.jar
      

      It is exceedingly cumbersome. Could we device a better way? Is it feasible to package .so files inside some jar and put that jar in the Maven repository and let the web app to depend on it? For example, see wildfly-openssl-1.0.3.Final-SNAPSHOT.jar and its:

          win-x86_64/
          win-x86_64/wfssl.dll
          win-x86_64/wfssl.exp
          win-x86_64/wfssl.lib
      

      Simplified example

      While the size of the Wildfly-OpenSSL project is quite intimidating, one can take a look at a dead-simple Linux+Windows demo hobby project streamlining the procedure to the bare minimum: https://github.com/Karm/CRC64Java

        1. JWS-855.patch
          2 kB
          Jean-Frederic Clere

              rhn-support-csutherl Coty Sutherland
              mbabacek1@redhat.com Karm Karm
              Matus Madzin Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: