3 Replies Latest reply on Jul 26, 2018 2:46 AM by kyatham

    Native library loading issue.

    kyatham

      Hi,

      Native libraries are not loading in my case . I tried all the possible ways but its not loading the jar. Below are the details:

       

      Hi, Below are the requested details:

       

      [root@hostname rsa]# pwd

      /opt/wildfly/modules/com/xx/iam/rsa

      [root@hostname rsa]# tree .

      .

      └── main

          ├── lib

          │   └── linux-x86_64

          │       └── librsacookieapi.so

          ├── module.xml

          └── RSACookieAPI.jar

       

       

      3 directories, 4 files

      [root@hostname rsa]#

       

       

      moudle.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <module xmlns="urn:jboss:module:1.1" name="com.xx.iam.rsa">

              <resources>

                       <resource-root path="lib"/>

                      <resource-root path="RSACookieAPI.jar" />

              </resources>

              <dependencies>

              </dependencies>

      </module>

       

      jboss-deployment-structure.xml

       

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

              <deployment>

                      <dependencies>

                              <module name="com.xx.iam.rsa"  export="true" />

                      </dependencies>

              </deployment>

              </sub-deployment>

      </jboss-deployment-structure>

       

       

       

       

      [root@hostname rsa]# java -version

      java version "1.8.0_101"

      Java(TM) SE Runtime Environment (build 1.8.0_101-b13)

      Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

      [root@hostname rsa]#

       

       

      And i changed LD_library_path to linux-x86_64 folder. Please let me know if iam missing anything.

      While debugging it is showing Could not initialize class com.rsa.cookieapi.RSACookieAPI.