1 Reply Latest reply on Feb 24, 2004 6:23 AM by mannix_s

    EJB Entity Container Starting Failed

    mannix_s Newbie

      Hello all,

      I want to try the Duke's Bank Application of the GettingStarted documentation. I have compiled all sources well. But when I deploy the JBossDukesBank.ear I get some strange errors:

      Highlights
      =======
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] AccountEJB cannot be Bound, doesn't have local and local home interfaces
      ... ... ... ... ...
      2004-02-24 10:50:29,357 ERROR [org.jboss.ejb.EntityContainer] Starting failed
      ... ... ... ... ...
      java.rmi.ServerException: Could not bind home; nested exception is:
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.0.0; nested exception is:
      java.net.ConnectException: Connection timed out: connect]

      Has someone an idea, what's going wrong?

      Thanks a lot!

      Used Software
      =========
      Ant 1.6.0
      Java SDK 1.4.1-02
      JBoss 3.2.3
      Struts 1.1

      Whole error output
      ============
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EjbModule] Starting
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: AccountEJB
      2004-02-24 10:49:47,279 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=MyAccount,service=EJB
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EntityContainer] Starting
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EntityContainer] Begin java:comp/env for EJB: AccountEJB
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EntityContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@115c974
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EntityContainer] Binding resource manager: jdbc/BankDB to JDNI ENC as: java:/DefaultDS
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.EntityContainer] End java:comp/env for EJB: AccountEJB
      2004-02-24 10:49:47,279 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] AccountEJB cannot be Bound, doesn't have local and local home interfaces
      2004-02-24 10:49:47,295 DEBUG [org.jboss.proxy.ejb.ProxyFactory] (re-)Binding Home MyAccount
      2004-02-24 10:50:29,357 ERROR [org.jboss.ejb.EntityContainer] Starting failed
      java.rmi.ServerException: Could not bind home; nested exception is:
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.0.0; nested exception is:
      java.net.ConnectException: Connection timed out: connect]
      at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:371)
      at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:335)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy31.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.0.0; nested exception is:
      java.net.ConnectException: Connection timed out: connect]
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:450)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:412)
      at javax.naming.InitialContext.rebind(InitialContext.java:363)
      at org.jboss.naming.Util.rebind(Util.java:108)
      at org.jboss.naming.Util.rebind(Util.java:95)
      at org.jboss.proxy.ejb.ProxyFactory.rebindHomeProxy(ProxyFactory.java:379)
      at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:365)
      ... 54 more
      2004-02-24 10:50:29,357 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=MyAccount,service=EJB
      java.rmi.ServerException: Could not bind home; nested exception is:
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.0.0; nested exception is:
      java.net.ConnectException: Connection timed out: connect]
      at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:371)
      at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:335)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy31.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.0.0; nested exception is:
      java.net.ConnectException: Connection timed out: connect]
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:450)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:412)
      at javax.naming.InitialContext.rebind(InitialContext.java:363)
      at org.jboss.naming.Util.rebind(Util.java:108)
      at org.jboss.naming.Util.rebind(Util.java:95)
      at org.jboss.proxy.ejb.ProxyFactory.rebindHomeProxy(ProxyFactory.java:379)
      at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:365)
      ... 54 more

        • 1. Re: EJB Entity Container Starting Failed
          mannix_s Newbie

          I found the solution by myself.

          I'm working on WinXP and I changed LAN-settings. My WinXP is a german one, but I try to remember the englisch names (or something like this):

          1) Start - Control Center - Network Connection - LAN Connection
          2) General Tab + Settings...
          3) Uncheck the Option "Internet protocol (TCP/IP)

          Till now the rest of the system is running well :-)