2 Replies Latest reply on Jan 16, 2006 6:46 PM by Matthew Edwards

    Head runtime error

    blalls asdsd Novice

      Hi,
      I face this problem trying to run mu app using head of CVS on the jboss-head:

      13:45:28,743 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=mcipro.ejb3
      java.lang.RuntimeException: Field private javax.persistence.EntityManager com.tarhyar.ne.NeLogicAction.em @PersistenceUnit in error: This isn't a scoped deployment unit
      at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldDependencies(PersistenceContextHandler.java:306)
      at org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:349)
      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
      at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:77)
      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:410)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:461)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      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:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
      at $Proxy0.start(Unknown Source)
      --------------------------
      my class looks like :
      @Stateful
      @Name("neLogic")
      @Scope(ScopeType.SESSION)
      @Interceptors(SeamInterceptor.class)
      @TransactionAttribute(REQUIRES_NEW)
      public class NeLogicAction implements NeLogic, Serializable {

      private static Logger log =Logger.getLogger(NeLogicAction.class);

      @PersistenceContext
      private EntityManager em;

      @In( required = false)
      private Ne ne;


      public String addNe() {

      log.debug("adding Ne");
      log.info("adding ne");
      em.persist(ne);
      return "main";

      }


      }

        • 1. Re: Head runtime error
          blalls asdsd Novice

          This problem was for change in the persistance.xml syntax.
          Now another problem:
          -----------------------------------------

          11:35:22,114 ERROR [[/mcipro]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.IllegalArgumentException: could not instantiate ClassValidator
          at org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:204)
          at org.hibernate.validator.ClassValidator.createMemberValidator(ClassValidator.java:165)
          at org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:126)
          at org.hibernate.validator.ClassValidator.(ClassValidator.java:83)
          at org.hibernate.validator.ClassValidator.createChildValidator(ClassValidator.java:156)
          at org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:136)
          at org.hibernate.validator.ClassValidator.(ClassValidator.java:83)
          at org.hibernate.validator.ClassValidator.(ClassValidator.java:72)
          at org.jboss.seam.Component.initValidator(Component.java:213)
          at org.jboss.seam.Component.(Component.java:180)
          at org.jboss.seam.Component.(Component.java:137)
          at org.jboss.seam.Component.(Component.java:132)
          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:217)
          at org.jboss.seam.init.Initialization.addComponents(Initialization.java:203)
          at org.jboss.seam.init.Initialization.init(Initialization.java:89)
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
          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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.apache.catalina.core.StandardContext.init(StandardContext.java:5031)
          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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:345)
          at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:106)
          at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:392)
          at org.jboss.web.WebModule.startModule(WebModule.java:83)
          at org.jboss.web.WebModule.startService(WebModule.java:61)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor177.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:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor8.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:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
          at $Proxy34.start(Unknown Source)
          at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
          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:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:237)
          at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:111)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:181) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
          at $Proxy35.start(Unknown Source)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
          at sun.reflect.GeneratedMethodAccessor48.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:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
          at $Proxy9.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:504)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:218)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:197)
          Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key validator.notNull
          at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
          at java.util.ResourceBundle.getString(ResourceBundle.java:286)
          at org.hibernate.validator.ClassValidator.replace(ClassValidator.java:404)
          at org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:199)
          ... 105 more
          11:35:22,119 ERROR [StandardContext] Error listenerStart
          ----------------------------------------------------------------

          What is this? I couln'e figure out wich validator it is talking about?

          • 2. Re: Head runtime error
            Matthew Edwards Newbie

            Check if you have any custom messages.property files in the root of any of your class paths. You are having a key value error--meaning a key is not being found in a messages file. This may be because the messages.property file is being overridden by your own.

            The DVD demo has an example of how to setup a messages.property file.

            Hope this helps.