Running the Embeddable EJB Container in IBM Rational Application Developer for WebSphere Software results in java.lang.NoClassDefFoundError

Technote (troubleshooting)


Problem(Abstract)

Attempts to run the Embeddable EJB Container in IBM Rational Application Developer for WebSphere Software results in java.lang.NoClassDefFoundError.

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 Build Path there are libraries that are incompatible with com.ibm.ws.ejb.embeddableContainer_8.0.0.jar


Resolving the problem

The only runtime library required to run the Embeddable EJB Container is: com.ibm.ws.ejb.embeddableContainer_8.0.0.jar.



Follow the below instructions to remove incompatible libraries in the Project Build Path.

  1. Right click on the project.
  2. Select Build Path > Configure Build Path.
  3. Remove any of the below libraries in the Libraries tab:


    com.ibm.ws.admin.client_8.0.0.jar
    com.ibm.hpel.logging.jar
    com.ibm.ws.ejb.thinclient_8.0.0.jar


  4. Open the Order and Export tab of the Java Build Path
  5. Ensure that the jar file: com.ibm.ws.ejb.embeddableContainer_8.0.0.jarprecedes the EJB project

Related information

Developing applications using 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, 8.0.4.1, 8.0.4.2, 8.5, 8.5.1, 8.5.5, 9.0, 9.0.0.1

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software
EJB Development

Software version:

8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.4.1, 8.0.4.2, 8.0.4.3, 8.5, 8.5.1, 8.5.5, 9.0, 9.0.1

Operating system(s):

Linux, Windows

Reference #:

1584479

Modified date:

2014-04-14

Translate my page

Machine Translation

Content navigation