0 Replies Latest reply on Dec 20, 2012 3:58 AM by 980937

    Name not found  in Weblogic12c only when calling it fromTomcat7


      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?