0 Replies Latest reply on May 20, 2005 1:29 PM by qdotlu

    JBossAS 4.0.2 default ORB instance is not binded to "java:co

    qdotlu Newbie

      Per J2EE specification,

      "All web, enterprise bean, and application client containers are required to provide an ORB instance in the JNDI namespace under the name java:comp/ORB"

      I am using the following code to try get ahold of the default ORB instance in the EJB code:

      InitialContext context = new InitialContext();
      ORB orb = (ORB)context.lookup("java:comp/ORB");

      but failed with the following exception. Should this be corrected?

      17:19:19,376 INFO [STDOUT] javax.naming.NameNotFoundException: ORB not bound
      17:19:19,376 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(Naming
      Server.java:491)
      17:19:19,376 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(Naming
      Server.java:499)
      17:19:19,376 INFO [STDOUT] at org.jnp.server.NamingServer.getObject(NamingS
      erver.java:505)
      17:19:19,376 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServ
      er.java:278)
      17:19:19,376 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:610)
      17:19:19,376 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:701)
      17:19:19,376 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(Namin
      gContext.java:572)
      17:19:19,376 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialCon
      text.java:347)
      17:19:19,376 INFO [STDOUT] at tester.TesterEJB.ejbCreate(TesterEJB.java:42)

      17:19:19,376 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      17:19:19,376 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      17:19:19,376 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      17:19:19,376 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      17:19:19,376 INFO [STDOUT] at org.jboss.ejb.StatelessSessionEnterpriseConte
      xt.(StatelessSessionEnterpriseContext.java:63)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanc
      ePool.create(StatelessSessionInstancePool.java:35)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInstancePool.ge
      t(AbstractInstancePool.java:161)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanc
      eInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:78)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.inv
      okeHome(AbstractInterceptor.java:90)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationIntercept
      or.invokeHome(CallValidationInterceptor.java:41)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.i
      nvokeNext(AbstractTxInterceptor.java:109)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit
      hTransactions(TxInterceptorCMT.java:335)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
      Home(TxInterceptorCMT.java:146)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.inv
      okeHome(SecurityInterceptor.java:116)
      17:19:19,386 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHo
      me(LogInterceptor.java:121)