Hi,

everyone I'm trying to set up my Seam + jBPM environment (using Eclipse JBoss 
Tools). I use Seam 2.1.1 GA, JBoss AS 5.0.0 and jBPM 3.2.4. 

I've added a hibernate.cfg.xml provided by jBPM to my seam-project, but 
obviously something goes wrong as I alsways get this exception:

  | Exception sending context initialized event to listener instance of class 
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:2106)
  |     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:112)
  |     at org.jboss.seam.init.Initialization.init(Initialization.java:735)
  |     at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
  |     at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
  |     at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
  |     at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
  |     at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
  |     at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
  |     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
  |     at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
  |     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.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:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  |     at 
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
  |     at $Proxy36.start(Unknown Source)
  |     at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
  |     at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
  |     at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  |     at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  |     at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  |     at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |     at 
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
  |     at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  |     at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |     at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  |     at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  |     at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  |     at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |     at 
org.jboss.system.ServiceController.doChange(ServiceController.java:688)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:460)
  |     at 
org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
  |     at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
  |     at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
  |     at 
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
  |     at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  |     at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
  |     at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |     at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  |     at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |     at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  |     at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  |     at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  |     at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |     at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
  |     at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
  |     at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
  |     at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
  |     at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
  |     at org.jboss.Main.boot(Main.java:209)
  |     at org.jboss.Main$1.run(Main.java:547)
  |     at java.lang.Thread.run(Unknown Source)
  | Caused by: java.lang.RuntimeException: could not deploy a process definition
  |     at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:300)
  |     at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
  |     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:22)
  |     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
  |     at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
  |     at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
  |     at org.jboss.seam.Component.newInstance(Component.java:2094)
  |     ... 64 more
  | Caused by: org.hibernate.PropertyAccessException: could not get a field 
value by reflection getter of org.jbpm.job.Job.id
  |     at 
org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:58)
  |     at 
org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:67)
  |     at 
org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)
  |     at 
org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:147)
  |     at 
org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
  |     at 
org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
  |     at 
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
  |     at 
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
  |     at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
  |     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:341)
  |     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:316)
  |     at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:294)
  |     ... 74 more
  | Caused by: java.lang.IllegalArgumentException: Can not set long field 
org.jbpm.job.Job.id to org.jbpm.job.CleanUpProcessJob
  |     at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown 
Source)
  |     at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown 
Source)
  |     at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown Source)
  |     at sun.reflect.UnsafeLongFieldAccessorImpl.getLong(Unknown Source)
  |     at sun.reflect.UnsafeLongFieldAccessorImpl.get(Unknown Source)
  |     at java.lang.reflect.Field.get(Unknown Source)
  |     at 
org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:55)
  |     ... 90 more

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205812#4205812

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205812
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to