1 Reply Latest reply on Aug 5, 2005 12:09 PM by Luigi Putanesca

    Problem creating EntityManager in hot deploy

    Luigi Putanesca Newbie

      I just installed EJB 3.0 RC1 and a new problem just appeared. I am running JBoss 4.0.3RC1.

      When I start the server the first time, everything works fine. When I redeploy while the server is running, it seems to have a problem creating the EntityManager. The log is shown below:

      2005-08-05 08:30:42,734 INFO [org.jboss.ejb3.Ejb3Deployment] Create EntityManager with JNDI name: lgs
      2005-08-05 08:30:42,734 WARN [org.jboss.ejb3.Ejb3Module] Stopping failed jboss.j2ee:service=EJB3,module=lgs-ejb.ejb3
      javax.naming.NameNotFoundException: lgs not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
      at org.jnp.server.NamingServer.unbind(NamingServer.java:224)
      at org.jnp.server.NamingServer.unbind(NamingServer.java:197)
      at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:737)
      at org.jboss.naming.Util.unbind(Util.java:127)
      at org.jboss.naming.Util.unbind(Util.java:118)
      at org.jboss.ejb3.NonSerializableFactory.unbind(NonSerializableFactory.java:47)
      at org.jboss.ejb3.Ejb3Deployment.stop(Ejb3Deployment.java:520)
      at org.jboss.ejb3.Ejb3JmxDeployment.stop(Ejb3JmxDeployment.java:202)
      at org.jboss.ejb3.Ejb3Module.stopService(Ejb3Module.java:46)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:950)
      at $Proxy0.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceController.java:537)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy17.stop(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.stop(EJB3Deployer.java:218)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:624)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:597)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:592)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:565)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.undeploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:355)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:477)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)