1 Reply Latest reply on Sep 26, 2006 4:26 AM by Claus Wittmann

    JBPM BPEL Extension

    Marouene GUESMI Newbie

      Hi everybody!

      I'm new to JBPM and JBPM-BPEL Extension.
      I tried to deploy jbpm-bpel under Jboss AS as mentioned in the documentation. I have the following Jboss products versions :
      Jboss 4.0.3SP1
      jbpm-bpel-1.0-alpha4 wich use the jbpm 3.0 version

      When I try to deploy "jbpm-bpel.sar" archive under Jboss, I've got the following Exception under Jboss :


      16:39:46,984 WARN [ServiceController] Problem starting service jboss.jbpm:name=JbpmBpel,service=JbpmService
      org.hibernate.MappingException: Could not read mappings from resource: org/jbpm/bpel/def/BpelDefinition.hbm.xml
      at org.hibernate.cfg.Configuration.addResource(Configuration.java:476)
      at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1414)
      at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1382)
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1363)
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1339)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1259)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1245)
      at org.jbpm.db.JbpmSessionFactory.createConfiguration(JbpmSessionFactory.java:114)
      at org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:90)
      at org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:86)
      at org.jbpm.db.jmx.JbpmService.startService(JbpmService.java:18)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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 $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      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.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.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
      at $Proxy38.start(Unknown Source)
      at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:185)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: org.hibernate.MappingException: class org.jbpm.bpel.def.BpelDefinition not found while looking for property: targetName
      space
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:80)
      at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
      at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2022)
      at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2007)
      at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1897)
      at org.hibernate.cfg.HbmBinder.bindSubclass(HbmBinder.java:779)
      at org.hibernate.cfg.HbmBinder.handleSubclass(HbmBinder.java:2068)
      at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1967)
      at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1897)
      at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:325)
      at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:239)
      at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:110)
      at org.hibernate.cfg.Configuration.add(Configuration.java:379)
      at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
      at org.hibernate.cfg.Configuration.addResource(Configuration.java:473)
      ... 76 more
      Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jbpm.bpel.def.BpelDefinition, msg=org/jbpm/bpel/
      def/BpelDefinition (Unsupported major.minor version 49.0)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:512)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:76)
      ... 90 more
      16:39:47,000 INFO [TomcatDeployer] deploy, ctxPath=/jbpm-bpel, warUrl=.../tmp/deploy/tmp59646jbpm-bpel.sar-contents/jbpm-bpel-exp
      .war/
      16:39:47,109 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.jbpm:name=JbpmBpel,service=JbpmService
      State: FAILED
      Reason: org.hibernate.MappingException: Could not read mappings from resource: org/jbpm/bpel/def/BpelDefinition.hbm.xml
      I Depend On:
      jboss.jca:name=JbpmBpelDS,service=DataSourceBinding

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jbpm:name=JbpmBpel,service=JbpmService
      State: FAILED
      Reason: org.hibernate.MappingException: Could not read mappings from resource: org/jbpm/bpel/def/BpelDefinition.hbm.xml
      I Depend On:
      jboss.jca:name=JbpmBpelDS,service=DataSourceBinding


      Please anyone could help? thanks!!!!!

        • 1. Re: JBPM BPEL Extension
          Claus Wittmann Newbie

          Hi there!

          If I look at the end of your failure log I would say that you have changed your Databaseconnection - and the configuration is not right (Mbeans are standardly implemented in HSQL-JBOSS-In-Memory-Database)

          Is that right?

          If it is so - see Wiki for more information how to configure different Databases correctly:
          JBOSS WiKi ConfigDataSources

          Greetings

          Claus

          P.S. Would be nice if you could give a anwser to your post whether your problem is solved or not...