tomcat - How to load java native library in web container -
i'm migrating java application uses proprietary native library standalone web base, works fine when running @ command line or in eclipse throws unsatisfiedlinkerror when calling native methods inside web container.
i have managed load other different native libraries in web application, , neither system.load nor system.loadlibrary throws error. added logs in application after loading each library verify this.
i have though issue web container tried use jetty , tomcat, i'm getting same error in both.
currently using: - java 1.8.0_72 - jetty 9.3.6 - tomcat 8.0.30 - debian 8 - gcc 4.9.2
to illustrate bit more have 2 native libraries in same directory , both .so files have same permissions. 1 of them throws error while other works, if remove .so file 1 failing got: java.lang.unsatisfiedlinkerror: no proprietary-lib in java.library.path
looks there in library web container doesn't like, be?
Comments
Post a Comment