3 Replies Latest reply on Feb 21, 2006 3:26 PM by chaser

    Error running example ex04_2 from workbook

    alexandru

      hi.
      when i try to run example ex04_2 i catch this:
      Buildfile: build.xml

      prepare:

      compile:

      ejbjar:

      run.client_42:
      [java] javax.naming.NameNotFoundException: TravelAgentHomeRemote not bound
      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:536)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at com.titan.clients.Client_3.main(Client_3.java:25)

      BUILD SUCCESSFUL

      i'm using jboss-3.0.4.
      what is wrong?