"java.lang.ClassNotFoundException: javax.ejb.EJBObject" when running JAR

Posted by Bernhard V on Stack Overflow See other posts from Stack Overflow or by Bernhard V
Published on 2010-05-07T12:05:58Z Indexed on 2010/05/07 12:08 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

Hi,

I'm getting a "java.lang.ClassNotFoundException: javax.ejb.EJBObject" error when I'm running my application as a JAR file. When running it in Eclipse everything is working fine.

The application properly access the main class and the main method. But when it tries to load the application context it cannot resolve a reference to an EJB bean. I then get the following error:

Error creating bean with name 'bc' defined in class path resource [blabla.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/ejb/EJBObject at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveReference(BeanDefinitionValueResolver.java:275) ... Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBObject

I've included all runtime-scoped dependencies with Maven in the JAR file.

Do you know any further information regarding this error?

© Stack Overflow or respective owner

Related posts about java

Related posts about classnotfound