0 Replies Latest reply: Oct 8, 2013 1:23 AM by 999427 RSS

    java.lang.NoClassDefFoundError exception when accessing BDB container using WAS

    999427

      Dear Techies,

      I installed BDB 2.5.16 on a Solaris 10 machine using the below build arguments.

       

      bash ./buildall.sh -c gcc -x g++ --with-configure-env="CFLAGS='-mcpu=v9' CXXFLAGS='-mcpu=v9' LDFLAGS='-mcpu=v9 -L$PWD/install/lib'" --enable-java --prefix=<installation target path>

       

      I am able to create BDB container and access it from a standalone java class. But, when I try to achieve the same using application deployed on WebSphere (WAS 7.0.0.23 ND 64 bit), it throws me the below error:

       

      Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sleepycat.db.internal.db_javaJNI

        at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:264)

        at com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:3910)

        at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:3863)

        at com.sleepycat.db.Environment.<init>(Environment.java:93)

        at com.ins.sot.batch.CreateBDBEnvProcessor.process(CreateBDBEnvProcessor.java:59)

        at com.ins.batch.BatchDeligator.deligateJob(BatchDeligator.java:32)

        at com.ins.batch.BatchService.processBatch(BatchService.java:65)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)

        at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)

        at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:490)

        at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:433)

        at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)

        at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)

       

      I am not sure what the problem is, and what to do next. Is it a 32-bit JVM vs 64-bit JVM (on WAS) issue? Can someone kindly help?

       

      This is my first application with BDB. Kindly bear if I sound too basic.

       

      Thanks & Regards

      Amit