JNDI problems with EJB


EJB programming & troubleshooting: JNDI problems with EJB

  1. JNDI problems with EJB (3 messages)

    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:

    <ejb-name>ChiselGateway</ejb-name> com.whitestone.chisel.framework.ejb.chiselgateway.ChiselGatewayHome


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

    Thank you very much.


    Threaded Messages (3)

  2. JNDI problems with EJB[ Go to top ]

    rip your ear apart and see those classes are bundled in it
  3. JNDI problems with EJB[ Go to top ]

    Thanks Udayan, the classes are bundled in it.

      We don't have a EAR file. We deploy the application with two separated files, a .WAR for the HTML and JSP and a .JAR for the classes and EJB's. Could this be a problem?
  4. JNDI problems with EJB[ Go to top ]

    My guess the problem is in packaging. Local home can be used only if client and EJB packaged in the same EAR.