0 Replies Latest reply on Jul 19, 2012 10:46 AM by cleaner57

    Using pdflib with jBoss5.1.0

    cleaner57 Newbie



      We are migrating from jBoss4.2.0 to jboss5.1.0 on AIX-64.


      One ouf our webservices uses pdflib in version 7.0.3-AIX64.

      We installed pdflib in a directory "/dfsdevc/PDFlib" and the bindings for Java can be found in "/dfsdevc/PDFlib/bind/java". In this folder, there is a shared library file called "pdf_java.so" that is required by pdflib


      With jboss4.2.0 everything works fine, but when using jboss5.1.0, pdflib cannot be initialized. The pdflib stacktrace says that the "java.library.path" is set (correctly) to "dfsdevc/PDFlib/bind/java" but that it cannot find the "pdf_java.so" file within this path (although the file is really present).


      The Exception thrown is:

      FATAL - pdf_java (A file or directory in the path name does not exist.)

      java.lang.UnsatisfiedLinkError: pdf_java (A file or directory in the path name does not exist.)

           at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1018)

           at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:982)

           at java.lang.System.loadLibrary(System.java:472)




      Since pdflib works fine with jboss4.2.0, we think that it is a jboss5.1.0 related issue.


      So, we have done some investigation on the web, and we found out that we should try to copy the so-file to "/usr/lib". Unfortunately, we end up with the same error message than before.



      Can anyone help me with this issue?




      Thank you very much for your help!