3 Replies Latest reply on Mar 30, 2009 2:30 PM by Stefano Travelli

    Integrate Seam with JBMP

    Guillermo Ortiz Newbie

      Hello,


      I'm tring to integrate Seam with JBmp but when I desploy an application gives me the following problem:

      12:32:42,883 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/ExecuteNodeCommand.hbm.xml
      12:32:42,883 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.ExecuteNodeCommand -> JBPM_MESSAGE
      12:32:42,883 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/SignalCommand.hbm.xml
      12:32:42,899 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.SignalCommand -> JBPM_MESSAGE
      12:32:42,899 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/TaskInstanceEndCommand.hbm.xml
      12:32:42,899 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.TaskInstanceEndCommand -> JBPM_MESSAGE
      12:32:42,899 ERROR [ContainerBase] Excepci?n enviando evento inicializado de contexto a instancia de escuchador de clase org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
              at org.jboss.seam.Component.newInstance(Component.java:1986)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
              at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
              at org.jboss.seam.init.Initialization.init(Initialization.java:596)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:732)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
              at sun.reflect.GeneratedMethodAccessor210.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.apache.catalina.core.StandardContext.init(StandardContext.java:5300)
              at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
              at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
              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.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:417)
              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy54.start(Unknown Source)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
              at sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
              at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy55.start(Unknown Source)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy9.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.RuntimeException: could not deploy a process definition
              at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:258)
              at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:72)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
              at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
              at org.jboss.seam.Component.callCreateMethod(Component.java:2015)
              at org.jboss.seam.Component.newInstance(Component.java:1976)
              ... 92 more
      Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource org/jbpm/command/TaskInstanceEndCommand.hbm.xml
              at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
              at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
              at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
              at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
              at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
              at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
              at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
              at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
              at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
              at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345)
              at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
              at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
              at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:274)
              at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:252)
              ... 102 more
      Caused by: org.hibernate.PropertyNotFoundException: field [taskInstance] not found on org.jbpm.command.TaskInstanceEndCommand
              at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:122)
              at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:114)
              at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:137)
              at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:83)
              at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:71)
              at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:58)
              at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2174)
              at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2151)
              at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2041)
              at org.hibernate.cfg.HbmBinder.bindSubclass(HbmBinder.java:823)
              at org.hibernate.cfg.HbmBinder.handleSubclass(HbmBinder.java:2220)
              at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:149)
              at org.hibernate.cfg.Configuration.add(Configuration.java:675)
              at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)
              at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
              ... 117 more


      I have formed the files and loaded the database.
      I'm used jbpm-3.1.4.jar and database mysql.


      Thanks.

        • 1. Re: Integrate Seam with JBMP
          Guillermo Ortiz Newbie

          Sorry..


          I've MySQL and jbpm-3.1.4.jar.. why don't it work correctly??



          The exception is:



          12:32:42,883 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/ExecuteNodeCommand.hbm.xml
          12:32:42,883 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.ExecuteNodeCommand -> JBPM_MESSAGE
          12:32:42,883 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/SignalCommand.hbm.xml
          12:32:42,899 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.SignalCommand -> JBPM_MESSAGE
          12:32:42,899 INFO  [Configuration] Reading mappings from resource : org/jbpm/command/TaskInstanceEndCommand.hbm.xml
          12:32:42,899 INFO  [HbmBinder] Mapping subclass: org.jbpm.command.TaskInstanceEndCommand -> JBPM_MESSAGE
          12:32:42,899 ERROR [ContainerBase] Excepci?n enviando evento inicializado de contexto a instancia de escuchador de clase org.jboss.seam.servlet.SeamListener
          org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
               at org.jboss.seam.Component.newInstance(Component.java:1986)
               at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
               at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
               at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
               at org.jboss.seam.init.Initialization.init(Initialization.java:596)
               at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:732)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
               at sun.reflect.GeneratedMethodAccessor210.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
               at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.apache.catalina.core.StandardContext.init(StandardContext.java:5300)
               at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
               at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
               at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
               at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
               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.GeneratedMethodAccessor3.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy54.start(Unknown Source)
               at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
               at sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
               at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
               at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
               at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
               at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy55.start(Unknown Source)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
               at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy9.deploy(Unknown Source)
               at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
               at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
          Caused by: java.lang.RuntimeException: could not deploy a process definition
               at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:258)
               at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:72)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               at java.lang.reflect.Method.invoke(Unknown Source)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
               at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
               at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
               at org.jboss.seam.Component.callCreateMethod(Component.java:2015)
               at org.jboss.seam.Component.newInstance(Component.java:1976)
               ... 92 more
          Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource org/jbpm/command/TaskInstanceEndCommand.hbm.xml
               at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
               at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
               at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
               at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
               at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
               at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
               at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
               at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
               at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
               at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
               at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
               at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345)
               at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
               at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
               at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:274)
               at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:252)
               ... 102 more
          Caused by: org.hibernate.PropertyNotFoundException: field [taskInstance] not found on org.jbpm.command.TaskInstanceEndCommand
               at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:122)
               at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:114)
               at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:137)
               at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:83)
               at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:71)
               at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:58)
               at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2174)
               at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2151)
               at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2041)
               at org.hibernate.cfg.HbmBinder.bindSubclass(HbmBinder.java:823)
               at org.hibernate.cfg.HbmBinder.handleSubclass(HbmBinder.java:2220)
               at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:149)
               at org.hibernate.cfg.Configuration.add(Configuration.java:675)
               at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)
               at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
               ... 117 more



          • 2. Re: Integrate Seam with JBMP
            Guillermo Ortiz Newbie

            I'm working with file hibernate.cfg.xml the dvdstore example to my project..

            • 3. Re: Integrate Seam with JBMP
              Stefano Travelli Newbie

              Check if the jBpm mapping files are at the same version of the jbpm.jar.


              Maybe you are working with jbpm.jar 3.2.x and *.hbm.xml files from jBpm 3.1.x.