[jboss-user] [EJB 3.0] - Error working wih EJB3, Struts2 & JBoss 4.2GA

Wolfgang Knauf do-not-reply at jboss.com
Wed Apr 21 17:03:43 EDT 2010


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion

"Error working wih EJB3, Struts2 & JBoss 4.2GA"

To view the discussion, visit: http://community.jboss.org/message/538863#538863

--------------------------------------------------------------
Hi NK,

I now get it: your ejb-jar.xml contains EJB 2.1 bean declarations. And because your code also has EJB 3 annotations, the bean is probably registered twice. After removing the Home interfaces, the EJB 2.1 part could not be deployed any more.

The easiest way to fix this is to simply remove "ejb-jar.xml", as yours does not contain anything that requires its usage, and EJB3 works fine without it.

Best regards

Wolfgang

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/538863#538863]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100421/9f8adbfe/attachment.html 


More information about the jboss-user mailing list