Search code examples
openejb

Standalone OpenEJB packaging with dependencies


there's some documentation/specification about how to package and deploy EJB with dependencies on OpenEJB?

I tried to deploy an EAR package:

service.ear/lib/activemq-all.jar
service.ear/META-INF/application.xml
service.ear/model.ejb!META-INF/ejb-jar.xml
service.ear/model.ejb!com/example/MyActivemqDependentService.class

It was deployed successfully, client can find using JNDI, but, when it initialized, NoClassDefFound exception ocurr.


Solution

  • ActiveMQ already comes with OpenEJB, I wouldn't expect it to work including it in the EAR as well.

    That could very likely be the source of your NoClassDefFoundErrors. Removing that activemq-all.jar is the first thing I'd try.