0 Replies Latest reply on Apr 26, 2006 3:34 AM by aear 77

    JNDI problems with EJB

    aear 77 Newbie

      Hello all,

      We have deploy our application on JBoss 4.0.3SP1. It seems that all works properly but when the application call the first EJB there is a JNDI error. The EJB is not loaded. It seems that the JNDI doesn't have it. Looking on the log we have seen that there is the error below on the EJB deploy phase caused by that the EJB hasn't "local and local home interfaces ":

      2006-04-18 11:19:01,421 DEBUG [org.jboss.ejb.StatelessSessionContainer] Starting jboss.j2ee:jndiName=ChiselGateway,service=EJB
      2006-04-18 11:19:01,421 DEBUG [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: ChiselGateway
      2006-04-18 11:19:01,421 DEBUG [org.jboss.ejb.StatelessSessionContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@bbf7aa
      2006-04-18 11:19:01,421 DEBUG [org.jboss.ejb.StatelessSessionContainer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
      2006-04-18 11:19:01,437 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: ChiselGateway
      2006-04-18 11:19:01,437 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] ChiselGateway cannot be Bound, doesn't have local and local home interfaces
      2006-04-18 11:19:01,437 DEBUG [org.jboss.ejb.StatelessSessionContainer] Starting failed jboss.j2ee:jndiName=ChiselGateway,service=EJB
      java.lang.RuntimeException: invoker is null: jboss:service=invoker,type=jrmp
      at org.jboss.proxy.ejb.ProxyFactory.setupInvokers(ProxyFactory.java:244)
      at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:228)
      at org.jboss.ejb.SessionContainer.startInvokers(SessionContainer.java:421)
      at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:383)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)


      This is a piece of the web.xml and the jboss.xml:

      web.xml
      ...
      <ejb-name>ChiselGateway</ejb-name> com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome
      com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGateway
      <ejb-class>com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      ...

      jboss.xml
      ...
      <ejb-name>ChiselGateway</ejb-name>
      <jndi-name>ChiselGateway</jndi-name>
      ...

      Do anyone knows what could be happening? Any help will be apreciated.

      Thank you very much.

      Aear77