6 Replies Latest reply on May 14, 2013 8:17 AM by Nicklas Karlsson

    Native library usage

    Pasqualino Imbemba Newbie



      I have third party jar that makes use of native libraries.


      I've created a new directory structure under modules as explained here and put all the native libraries in /lib/linux-i686. The module.xml looks like this:



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

      <!--pi: this file modified according to https://community.jboss.org/thread/206389-->

      <module xmlns="urn:jboss:module:1.1" name="com.canto.cumulus">


            <resource-root path="CumulusJC.jar" /> <!--third party jar-->

            <resource-root path="lib" />



            <system export="true">


                  <path name="lib" />




                     <path name="lib" />








      On EJB jar side, the manifest file reads


      {noformat} Dependencies: com.canto.cumulus {noformat}


      I get the following exception when invoking the EJB service that makes use of the third party API:


      {noformat}Exception in thread "main" javax.ejb.EJBException: Unexpected Error (...) Caused by: java.lang.UnsatisfiedLinkError: no CumulusJC in java.library.path {noformat}


      I'd expect that the Jar is correctly modularized - but it obviously isn't. Any help would be appreciated.