[EJB:011055]Error deploying the EJB
Case
On redeploying the application myFooApplication
, this error appears:
[EJB:011055]Error deploying the EJB 'myFooSession(Application: foo-ejbfoo-ear, EJBComponent: foo-foo-services-ejb-0-DEV.jar)', the JNDI name 'ejb.foo.foo-session-bean' is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor for this EJB before it can be deployed.
Fix
- Stop the server
- Delete all files and folders in
${WL_HOME}\servers\myFooApplication
. - Restart the server
You may encounter an error [Deployer:149163]
. In this case, I suggest you to consult the related article: The domain edit lock is owned by another session in exclusive mode – hence this deployment operation cannot proceed