[bdbxml] Native Library libdb_java-4.3.so already loaded in another classloader

William Billingsley <whb21-KWPb1pKIrIJaa/[email protected]> Sun, 21 Aug 2005 18:31:52 +0100
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
I have a Java webapp which is using BDBXML to log some data.  If I 
reload the webapp using tomcat's manager application, I get the 
following exception as soon as any of the servlets try to open an 
XmlManager in their init() methods:

java.lang.UnsatisfiedLinkError: Native Library 
/local/intellibook/whb21/xmldb/dbxml-2.1.8/install/lib/libdb_java-4.3.so 
already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:48)
        at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:200)
        at 
com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:738)
        at 
com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:691)
        at com.sleepycat.db.Environment.<init>(Environment.java:30)


Is there a way around this?  It's a bit of a pain having to restart all 
of tomcat each time a change is made during development rather than just 
reloading the webapp.

The db library path is specified in LD_LIBRARY_PATH as suggested in the 
install instructions.


------------------------------------------
To remove yourself from this list, send an
email to [email protected]