0 Replies Latest reply on Jun 18, 2005 9:41 AM by Prashant n

    libdb_java-4.3.so error

    Prashant n Newbie

      Hi,

      I am deploying a servlet on JBoss server 4.0.2 (on fedora-core3 / rhel 3 / 4) which will in-turn access sleepycat Berkeley DB. I have all Berkeley DB binaries in right place (/usr/local/BerkeleyDB.4.3/lib)
      I have modified my /etc/profile to reflect berkely ldb ibrary path as
      LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.3/lib

      I am getting this error
      HTTP Status 500 -
      type Exception report
      message
      description The server encountered an internal error () that prevented it from fulfilling this request.
      exception
      javax.servlet.ServletException: Servlet execution threw an exception
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      root cause
      java.lang.UnsatisfiedLinkError: /usr/local/BerkeleyDB.4.3/lib/libdb_java-4.3.so: /usr/local/BerkeleyDB.4.3/lib/libdb_java-4.3.so: cannot open shared object file: No such file or directory
      java.lang.ClassLoader$NativeLibrary.load(Native Method)
      java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
      java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
      java.lang.Runtime.loadLibrary0(Runtime.java:788)
      java.lang.System.loadLibrary(System.java:834)
      com.sleepycat.db.internal.db_javaJNI.(db_javaJNI.java:48)
      com.sleepycat.db.internal.DbEnv.(DbEnv.java:200)
      com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:738)
      com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:691)
      com.sleepycat.db.Environment.(Environment.java:30)
      .....
      ......
      after reading some googling i ran ldconfig -nv /usr/local/BerkeleyDB.4.3/lib which produces
      /usr/local/BerkeleyDB.4.3/lib:
      libdb-4.3.so -> libdb.so
      libdb_java-4.3.so -> libdb_java.so

      and lldd /usr/local/BerkeleyDB.4.3/lib/libdb_java-4.3.so produces
      libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a9576b000)
      libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a95880000)
      /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)

      Now how to overcome this and is there any automated way to overcome this error when we do a clean install of berkely-db?

      regards
      Shann