java - "JNDI name is already in use" in Weblogic 12c with EJB3 -
i have following code i'm trying deploy ejb weblogic 12c, i'm getting error:
"error deploying ejb geopoliticalservicebean(application: campaigner-ejb, ejbcomponent: campaigner-service.jar), jndi name java:global/campaigner-ejb/campaigner-service/geopoliticalservicebean!com.dr_dee_sw.campaigner.service.geopoliticalservicelocal in use. must set different jndi name in weblogic-ejb-jar.xml deployment descriptor or corresponding annotation ejb before can deployed."
public interface geopoliticalservice { ... } @local public interface geopoliticalservicelocal extends geopoliticalservice { } @remote public interface geopoliticalserviceremote extends geopoliticalservice { } @transactionmanagement(value = transactionmanagementtype.container) @transactionattribute(value = transactionattributetype.required) @stateless public class geopoliticalservicebean implements geopoliticalservicelocal,geopoliticalserviceremote { ... }
more information: i've reduced ejb-jar file, campaigner-service.jar, there's 1 bean in it, plus interfaces , exceptions. ear file, campaigner-ejb.ear, has ejb-jar in @ main level. has "lib" directory supporting libraries, has dao , dto jars in plus third-party libraries. so, me, doesn't seem packaging issue.
this first app using annotations, still seems straight-forward. missing?
during migration weblogic 10 weblogic 12 faced same issue. reproduce issue deploying ear on fresh server without datasources configured properly; cause namenotfoundexception during deployment. every next attempt deploy ear result in jdni name in use, after restarting, undeploying, redeploying.
the thing resolved issue removing cache (and importantly ejbcompilercache) , tmp folder of target server.
Comments
Post a Comment