I have a module described as follows:
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="com.mymodule"> <resources> <resource-root path="myFirstJar.jar" /> <resource-root path="mySecondJar.jar" /> <resource-root path="Lib/linux" /> </resources> </module>
In my jboss-deployment-structure.xml:
<jboss-deployment-structure><deployment> <dependencies> <module name="com.mymodule" /> </dependencies> </deployment></jboss-deployment-structure>
Jar files were found, but one of them is trying to access the .so library. This library exists in the "lib / linux" folder. But JBoss will consider% JBOSS_HOME% / bin / mylib.so. I tried to execute a naming convention (see jboss.org ), getting the same error:
Called: java.lang.UnsatisfiedLinkError: unable to load library: /usr/local/jboss/jboss-as-7.1.1.Final/bin/mylib.so
What am I doing wrong?
Edit If I put the .so file in the JBoss / bin folder, then the JVM crash will cause the JNI.
source share