2 Replies Latest reply on Jan 8, 2009 2:35 AM by shimi

    Native library deployment in JBoss 5

    shimi

      In JBoss 4, I used to deploy a sar file with a native library inside (linux so file). The SARDeployer used to load the native library to tmp/native. I tried to deploy the same sar file in JBoss 5 and it fail to recognize the native library file. Is there another way to deploy a sar file with a native library inside in JBoss 5?

        • 1. Re: Native library deployment in JBoss 5
          jaikiran

          Please post more details including the entire exception stacktrace and the console logs. Also which exact version of JBoss-5 do you use?

          While posting logs, or xml content or code, please wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure your post is correctly formatted.

          • 2. Re: Native library deployment in JBoss 5
            shimi

             

            which exact version of JBoss-5 do you use?

            I am using the JBoss 5.0.0.GA compiled by JDK 5
            Please post more details including the entire exception stacktrace and the console logs.

            The error in the log file is java.lang.UnsatisfiedLinkError
            java.lang.UnsatisfiedLinkError: no JT in java.library.path

            Although I see the following when JBoss start
            09:30:53,929 INFO [ServerImpl] Server Native Dir: /usr/local/jboss-5.0.0.GA/server/default/tmp/native

            But not only my libJT.so is not in there, The native directory does not exist.
            I can't set the java.library.path to the tmp/native directory because the so file is not there.

            I used to see the following line In JBoss 4
            09:25:45,679 INFO [SARDeployer] Loading native library: /usr/local/jboss-4.2.3.GA/server/default/tmp/native/libJT.so