4 Replies Latest reply on Nov 4, 2014 9:27 AM by Georgy Go

    Cannot lookup the EJB3 bean - NameNotFound exception

    Georgy Go Newbie

      The server side contains the only interface and bean @Remote and @Stateless annotated.

      Has ran on WildFly successfully, i can see deployed beans from WildFly console.

      It's hints to me uri for JNDI bindings:


      But i can't connect to this!

      So my client is:

      Initial context properties:

      Context.INITIAL_CONTEXT_FACTORY=org.jboss.naming.remote.client.InitialContextFactory Context.PROVIDER_URL=http-remoting://localhost:8080


      Properties props = new Properties(...); InitialContext ctx = new InitialContext(props); Deploy bean = (Deploy) ctx.lookup("java:app/server_ejb/DeployBean!interfaces.Deploy"); bean.sayHi();

      I get an exception:

      INFO: JBoss Remoting version (unknown) Exception in thread "main" javax.naming.NameNotFoundException: app/server_ejb/DeployBean!interfaces.Deploy -- service jboss.naming.context.java.jboss.exported.app.server_ejb."DeployBean!interfaces.Deploy" at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)

      Whats wrong?