0 Replies Latest reply on May 2, 2007 5:29 PM by leonz11

    EJB3 trailblazer stateless session did not bind on global JN

    leonz11 Newbie

      I build EJB3trailblazer and deploy on jboss 4.05 GA.
      in the server log file, it seems deployed successfully

      2007-05-02 16:01:32,518 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.0.5.GA/server/all/deploy/EJB3Trail.ear

      But when I checked the global JNDI tree, i did not find the ear; only have web war.

      when I called the caculate.jsp, it throws the error:
      2007-05-02 16:07:12,876 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
      2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)

      the way I call the ejb is:
       try {
       InitialContext ctx = new InitialContext();
       cal = (Calculator) ctx.lookup(
       } catch (Exception e) {
       e.printStackTrace ();

      can sb tell where the problems are?