Skip to main content

Running the Embeddable EJB Container produces NoClassDefFoundError


Technote (troubleshooting)


Problem(Abstract)

Attempts to test an Enterprise Java Bean in the Embeddable EJB Container result in a "NoClassDefFoundError" in IBM Rational Application Developer for WebSphere Software or IBM Rational Software Architect for WebSphere Software.

Symptom

The following output is written in the Console when testing the EJB with the Embeddable EJB Container:

java.lang.NoClassDefFoundError:

com.ibm.wsspi.cluster.ClusterMemberService

at

com.ibm.ws.recoverylog.spi.RecLogServiceImpl.initialize(RecLogServiceImpl.java:266)

at com.ibm.tx.jta.util.TxTMHelper.start(TxTMHelper.java:191)

at com.ibm.tx.jta.util.TxTMHelper.start(TxTMHelper.java:317)

at com.ibm.tx.util.TMHelper.start(TMHelper.java:74)

at com.ibm.tx.util.TMHelper.start(TMHelper.java:123)

at

com.ibm.websphere.ejbcontainer.EmbeddableContainer.initialize(EmbeddableContainer.java:473)

at

com.ibm.websphere.ejbcontainer.EmbeddableContainer.open(EmbeddableContainer.java:428)

at

com.ibm.websphere.ejbcontainer.EmbeddableContainer.newContainer(EmbeddableContainer.jaaa:382)

at

com.ibm.websphere.ejbcontainer.EmbeddableContainerProvider.createEJBContainer(EmbeddableContainerProvider.java:75)

at

javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java: )

at EJBtestClassName.methodName(EJBTestClassName.java:50)

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

Cause

In the project classpath there are libraries that are incompatible with com.ibm.ws.ejb.embeddableContainer_8.0.0.jar

Resolving the problem

If any of the following libraries are present in the Project Build Path, they need to be removed:

WebSphere Application Server v8 Server Runtime library

com.ibm.ws.admin.client_8.0.0.jar

com.ibm.hpel.logging.jar

com.ibm.ws.ejb.thinclient_8.0.0.jar

To remove these libraries, perform these steps:

  1. Right click on the project

  2. Select Build Path > Configure Build Path

  3. Remove any of the above libraries in the Libraries tab

The only runtime library required to run the Embeddable EJB Container is:

com.ibm.ws.ejb.embeddableContainer_8.0.0.jar.


Related information

Developing using the embeddable EJB container

Cross reference information
Segment Product Component Platform Version Edition
Software Development Rational Software Architect for WebSphere Software EJB Development Linux, Windows 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational Application Developer for WebSphere Software

EJB Development


Software version:
8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4


Operating system(s):
Linux, Windows


Reference #:
1584479


Modified date:
2013-03-21

Translate my page

Content navigation