Community

Error working wih EJB3, Struts2 & JBoss 4.2GA

reply from Wolfgang Knauf in EJB 3.0 - View the full discussion

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

Start a new discussion in EJB 3.0 at Community