1 Reply Latest reply on Mar 14, 2011 4:15 AM by Antoine Brun Branched from an earlier discussion.

    javax.naming.NameNotFoundException in remote client

    Pawan Jajara Newbie

      Hello Everybody,

       

      I had been trying to solve the bound problem in my EJB application. Here is the list of errors I am getting when trying to build using Apache Ant and JBoss AS Server 6.0

       

       

           [java] log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

           [java] log4j:WARN Please initialize the log4j system properly.

           [java] javax.naming.NameNotFoundException: GeoCMPEEJB not bound

           [java] java.lang.NullPointerException

           [java]           at ejbclient.loadrouteinfo.deleteroutes(loadrouteinfo.java:31)

           [java]           at ejbclient.loadrouteinfo.main(loadrouteinfo.java:149)

           [java]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           [java]           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

           [java]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

           [java]           at java.lang.reflect.Method.invoke(Unknown Source)

           [java]           at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)

           [java]           at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)

           [java]           at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)

           [java]           at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

           [java]           at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

           [java]           at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)

           [java]           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

           [java]           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

           [java]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

           [java]           at java.lang.reflect.Method.invoke(Unknown Source)

           [java]           at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

           [java]           at org.apache.tools.ant.Task.perform(Task.java:348)

           [java]           at org.apache.tools.ant.Target.execute(Target.java:390)

           [java]           at org.apache.tools.ant.Target.performTasks(Target.java:411)

           [java]           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

           [java]           at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

           [java]           at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

           [java]           at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

           [java]           at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

           [java]           at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)

           [java]           at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)

           [java] javax.naming.NameNotFoundException: GeoCMPEEJB not bound

       

       

      Any help is highly appreciated. I am not sure if there is some dependency of jar files.

       

      Thanks,

      Pawankumar

       

      Message was edited by: Pawan Jajara

        • 1. javax.naming.NameNotFoundException in remote client
          Antoine Brun Newbie

          Hi,

           

          can you see the EJB being deployed and binded in the jboss server traces?

           

          when I deploy my EJB StagingConsoleBean I get:

           

          14/Mar/2011 09:06:42 INFO  [SessionSpecContainer:296] Starting jboss.j2ee:ear=ubi-api.ear,jar=ubi-api-ejb.jar,name=StagingConsoleBean,service=EJB3

          14/Mar/2011 09:06:42 INFO  [EJBContainer:296] STARTED EJB: com.ubiqube.api.ejb.stagingConsole.StagingConsoleBean ejbName: StagingConsoleBean

          14/Mar/2011 09:06:42 INFO  [JndiSessionRegistrarBase:296] Binding the following Entries in Global JNDI:

           

              StagingConsoleBean/remote - EJB3.x Default Remote Business Interface

              ubi-api/StagingConsoleBean/remote-com.ubiqube.api.interfaces.stagingConsole.StagingConsoleService - EJB3.x Remote Business Interface

           

           

          StagingConsoleBean/remote being the JNDI name I explicitely set with the annotation:

           

          @RemoteBinding(jndiBinding = "StagingConsoleBean/remote") on the bean class

           

           

          Then I use "StagingConsoleBean/remote" for the JNDI lookup

           

          Antoine