I want to remove an EJB from JBoss, because I want to change the bean from stateful to stateless. However, when I remove the jar file and delete it from JBoss and then redeploy it I get this error message:
WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=DPC2,service=EJB
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:883)
at org.jboss.ejb.StatelessSessionContainer.setupHomeMapping(StatelessSessionContainer.java:457)
So, the question is, how do I remove this EJB from the JBoss container, so that I can add to it again but this time as a stateless bean instead of stateful bean?
You have a method in your home interface other
than
void create()
This is the only one allowed for stateless sessions.
Regards,
Adrian