I have a jpa-jar package and I inject entityManager into an ejb3.

If I deploy the jpa-jar first everything goes ok, but If I deploy both jars and 
then start jboss4.2.3, it seems jboss charge the ejb3 first and the following 
error apperars:   


 Problem starting service jboss.j2ee:service=EJB3,module=Ejb3Recursos.jar
java.lang.NoClassDefFoundError: model/resource/entities/Entidad
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.privateGetPublicMethods(Unknown Source)
        at java.lang.Class.getMethods(Unknown Source)
        at org.jboss.aop.ClassContainer.createMethodMap(ClassContainer.java:182)
        at 
org.jboss.ejb3.SessionContainer.createMethodMap(SessionContainer.java:188)
        at 
org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:68)
        at 
org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:57)
        at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:342)
        at 
org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:140)
        at 
org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:292)
        at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:356)
        at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(Se
.......................
.....................

EjbeRecursos.jar - is the ejb
model/resource/entities/Entidad is an entity bean which belongs to 
JPARecursos.jar module

How can I do to indicate jboss to charge jpa-jar first and then ejb3-jar?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197647#4197647

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197647
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to