Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ClassDefNotFoundException for javax.ejb.EntityBean

Status
Not open for further replies.

rutit

Programmer
Apr 13, 2000
1
IL
i'm building EJB and while building the deployable jars, i sometimes have this exception - some sessions beans have it all time and some session beans don't have it all the time.
the thing is that the jars are created and work well in both cases, i just want to get rid of this exception in case it does harm me someway.

java.lang.NoClassDefFoundError: javax/ejb/EntityBean
at weblogic.ejb.compliance.BeanClassChecker.class$(BeanClassChecker.java:26)
at weblogic.ejb.compliance.EntityBeanClassChecker.checkBeanClassImplementsEntityBean(EntityBeanClassChecker.java:124)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb.compliance.EJB11ComplianceChecker.checkEJB(Compiled Code)
at weblogic.ejb.compliance.EJB11ComplianceChecker.checkDeploymentUnit(Compiled Code)
at weblogic.ejb.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:302)
at weblogic.ejb.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:251)
at weblogic.ejb.ejbc.EJBCompiler.compileEJB(Compiled Code)
at weblogic.ejbc.runBody(Compiled Code)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.ejbc.main(ejbc.java:353)
[EJB]: Unexpected exception java.lang.NoClassDefFoundError: javax/ejb/EntityBean

 
it looks to me that javax/ejb/EntityBean isnt in
your class path. its prob in some jar file. find
it and make sure its in the class path.

i hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top