1 Reply Latest reply on Jan 24, 2005 2:20 AM by booney

    Problem in deploying EJB 3.0 Stateless example

    bdeb

      Hi,

      I am using jboss 4.0.1RC1, jdk 1.5.0_01, EJB 3.0 Preview 2.

      When I try to run the Stateless EJB example I get the following error

      E:\EJB3.0\jboss-EJB-3.0_Preview_2\docs\tutorial\stateless>ant run
      Buildfile: build.xml

      prepare:

      compile:

      ejbjar:
      [copy] Copying 1 file to C:\jboss-4.0.1RC1\server\all\deploy

      run:
      [java] Exception in thread "main" javax.naming.NameNotFoundException: org.j
      boss.tutorial.stateless.bean.CalculatorRemote not bound
      [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)

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

      [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
      [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:277)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
      a:294)
      [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
      t.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
      ransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:595)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
      r(StreamRemoteCall.java:247)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      ll.java: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:54
      4)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:52
      0)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:1
      9)
      [java] Java Result: 1

      What could be the reason ?

      Cheers,
      BDeb