0 Replies Latest reply on Oct 11, 2004 5:51 PM by ocampesato

    org.jboss.tutorial.stateless.bean.CalculatorRemote not bound

    ocampesato Newbie

      Hello, everyone:

      How does JBoss 4.x find 3.0 EJBs without an ejb-jar.xml file?

      AFAIK, I set up everything correctly as described in the instructions.

      When I invoke 'ant run' in the Stateless sub-directory, here's the output:
      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      Buildfile: build.xml

      prepare:
      compile:
      ejbjar:
      run:
      [java] Exception in thread "main" javax.naming.NameNotFoundException: org.jboss.tutorial.stateless.bean.CalculatorRemote 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:582)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: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(TCPTransport.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:595)
      [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:126)
      [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:19)

      BUILD SUCCESSFUL
      Total time: 3 seconds
      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

      Here's the contents of the generated file tutorial.ejb3:
      ++++++++++++++++++++++++++++++++++
      0 Mon Oct 11 14:23:34 PDT 2004 META-INF/
      109 Mon Oct 11 14:23:32 PDT 2004 META-INF/MANIFEST.MF
      0 Mon Oct 11 14:23:34 PDT 2004 org/
      0 Mon Oct 11 14:23:34 PDT 2004 org/jboss/
      0 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/
      0 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/
      0 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/bean/
      176 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/bean/Calculator.class
      711 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/bean/CalculatorBean.class
      257 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/bean/CalculatorLocal.class
      260 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/bean/CalculatorRemote.class
      0 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/client/
      1338 Mon Oct 11 14:23:34 PDT 2004 org/jboss/tutorial/stateless/client/Client.class
      +++++++++++++++++++++++++++++++++++++++++++++

      I'm sure the solution is simple. Suggestions appreciated....

      Regards,

      Oswald