0 Replies Latest reply on Mar 6, 2007 7:23 AM by Jonas Heineson

    Problem with NameNotFoundException after the local interface

    Jonas Heineson Newbie


      I have a problem with an application using a stateless EJB 2.1 session bean. The problem occurs during deploying and initializing.

      First I get a message like this:

      2007-02-28 17:20:46,380 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: EJBSingletonInvoker
      2007-02-28 17:20:46,394 INFO [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJB LocalHome 'EJBSingletonInvoker' to jndi 'EJBSingletonInvoker_local'

      Then an error like this during init of the app when trying to create the bean:

      2007-02-28 17:21:47,645 DEBUG [com.computas.mt.jboss.server.startup.StartupService] Starting failed mt.computas.com:service=Startup
      com.computas.cx.exception.BeansException: Could not create session bean of class interface com.computas.cx.invocation.ejb.EJBSingletonInvoker
      Caused by: javax.naming.NameNotFoundException: EJBSingletonInvoker_local not bound

      I can't figure out what is causing this? I must add that we are using a clustered environment with two servers (JBoss 4.0.4GA) and the problem occurs when both servers are started before the deployment. If only the server we deploy to is up all seems to be fine. Both servers know of each other and forms a cluster perfectly.

      Thanks in advance!
      /Jonas Heineson