2 Replies Latest reply on Aug 12, 2008 4:56 AM by primalsuaris

    i am getting an exception in workbook ex04_1 (remote not bou

    maaz_ejb

      bill (Mr Bill Burke) are you there please reply.
      i got this error please help

      [java] javax.naming.NameNotFoundException: remote not bound
      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

      [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      pl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      cessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
      )
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
      a:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
      ort.java:701)
      [java] at java.lang.Thread.run(Thread.java:595)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
      eamRemoteCall.java:247)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      va:223)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62

      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:58

      [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [java] at com.titan.clients.Client.main(Client.java:19)

        • 1. Re: i am getting an exception in workbook ex04_1 (remote not
          primalsuaris

          this error comes because of your ejb name is not correctly define in remotelookup;

          eg:-
          think ur ejb interface name is GenaralEJB and u implement it and creat ur ejb called GenaralEJBBean like i shown in below;

          @Stateful(name = "GenaralEJB")
          public class GenaralEJBBean implements GenaralEJB {


          }

          and then ur contex lookup must like this;

          ctx.lookup("GenaralEJB"+ REMOTE);




          if not
          ctx.lookup(" GenaralEJB"+ REMOTE);


          this is wrong bcoz it has additional space in the begining of the ejbname.like i make with a * below.this cause a above error(remote not bound ).

          ctx.lookup("*GenaralEJB"+ REMOTE);

          • 2. Re: i am getting an exception in workbook ex04_1 (remote not
            primalsuaris

            this error comes because of your ejb name is not correctly define in remotelookup;

            eg:-
            think ur ejb interface name is GenaralEJB and u implement it and creat ur ejb called GenaralEJBBean like i shown in below;

            @Stateful(name = "GenaralEJB")
            public class GenaralEJBBean implements GenaralEJB {


            }

            and then ur contex lookup must like this;

            ctx.lookup("GenaralEJB"+ REMOTE);


            if not
            ctx.lookup(" GenaralEJB"+ REMOTE);


            this is wrong bcoz it has additional space in the begining of the ejbname.like i make with a * below.this cause a above error(remote not bound ).

            ctx.lookup("*GenaralEJB"+ REMOTE);