This discussion is archived
0 Replies Latest reply: Dec 19, 2012 7:58 PM by 980937 RSS

Name not found  in Weblogic12c only when calling it fromTomcat7

980937 Newbie
Currently Being Moderated

the scene is blow:
my EJB3 is deployed in remote weblogic12c server .
my web is deployed in my local tomcat7 .

when I call the EJB by client , it will return the values.

Properties props = new Properties();
props.setProperty(Context.PROVIDER_URL, "t3://XXX.XXX.XXX.XX:7172");
InitialContext ctx = new InitialContext(props);
XXXFacadeEJBRemote test = (XXXFacadeEJBRemote ) ctx.lookup("java:global.EMSAPP.EMSDTOFacadeEJB.EmsDTOFacadeEJB!com.singtel.eshop.ems.ejb.stateless.XXXXFacadeEJBRemote");

but when i copy the same code to my web app servlet and deploy to tomcat7, it say NameNotFoundException when i call it.

javax.naming.NameNotFoundException: Name [global.EMSAPP.EMSDTOFacadeEJB.EmsDTOFacadeEJB!com.singtel.eshop.ems.ejb.stateless.EmsDTOFacadeEJBRemote] is not bound in this Context.

anyone know how can solve this issue?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points