1 Reply Latest reply on Nov 7, 2009 1:52 AM by tangrui

    Running demo.setup.jboss Problems under MySQL

      I'm running "ant -Ddatabase=mysql demo.setup.jboss", after install JBoss and create database schema, while starting JBoss AS, some exception occurred.

      [start-jboss] 02:55:28,309 WARN [JBossManagedConnectionPool] Throwable while at
      tempting to get a new connection: null
      [start-jboss] org.jboss.resource.JBossResourceException: Could not create connec
      tion; - nested throwable: (org.jboss.resource.JBossResourceException: Class not
      found for XADataSource com.mysql.jdbc.jdbc2.optional.MysqlXADataSource; - nested
      throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.Mys
      qlXADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416b2d{name=vfs
      file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-servic
      e.sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolicy=BEFORE par
      ent=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[MemoryContextHan
      dler@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11 re
      al=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@20529339[path
      =jbpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/
      default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/de
      ploy/jbpm/jbpm-service.sar/], DelegatingHandler@29933798[path=jbpm/jbpm-service.
      sar/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defa
      ult/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy
      /jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[path=jbpm/jbp
      m-service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all/jbpm-4.1/jb
      oss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.
      GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], De
      legatingHandler@4113990[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin
      .jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ re
      al=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-ser
      vice.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703981[path=jbp
      m/jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/home/all/jbpm-4
      .1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5
      .0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar
      ], DelegatingHandler@8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar context=fil
      e:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home
      /all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-sp
      i.jar], DelegatingHandler@22123681[path=jbpm/jbpm-service.sar/juel-engine.jar co
      ntext=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file
      :/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sa
      r/juel-engine.jar], DelegatingHandler@16058616[path=jbpm/jbpm-service.sar/juel-i
      mpl.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/
      real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-
      service.sar/juel-impl.jar], DelegatingHandler@18862661[path=jbpm/jbpm-service.sa
      r/juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/depl
      oy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jb
      pm-service.sar/juel.jar], DelegatingHandler@2481330[path=jbpm/jbpm-service.sar/l
      ivetribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/def
      ault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
      y/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.od
      ysseus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.integration.
      console.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org.jbpm.integr
      ation.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr223, freemark
      er.ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script, org.jbpm.in
      tegration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console
      -integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.od
      ysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.
      jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, jav
      ax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.u
      til, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el,
      freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarke
      r.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, org.jbpm.in
      tegration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMP
      TY}}))
      [start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
      .getXAManagedConnection(XAManagedConnectionFactory.java:465)
      [start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
      .createManagedConnection(XAManagedConnectionFactory.java:409)
      [start-jboss] at org.jboss.resource.connectionmanager.InternalManagedConnectio
      nPool.createConnectionEventListener(InternalManagedConnectionPool.java:611)
      [start-jboss] at org.jboss.resource.connectionmanager.InternalManagedConnectio
      nPool.getConnection(InternalManagedConnectionPool.java:257)
      [start-jboss] at org.jboss.resource.connectionmanager.JBossManagedConnectionPo
      ol$BasePool.getConnection(JBossManagedConnectionPool.java:644)
      [start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2.g
      etManagedConnection(BaseConnectionManager2.java:404)
      [start-jboss] at org.jboss.resource.connectionmanager.TxConnectionManager.getM
      anagedConnection(TxConnectionManager.java:381)
      [start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2.a
      llocateConnection(BaseConnectionManager2.java:496)
      [start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2$C
      onnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
      [start-jboss] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnecti
      on(WrapperDataSource.java:89)
      [start-jboss] at org.hibernate.connection.DatasourceConnectionProvider.getConn
      ection(DatasourceConnectionProvider.java:92)
      [start-jboss] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFacto
      ry.java:111)
      [start-jboss] at org.hibernate.cfg.Configuration.buildSettings(Configuration.j
      ava:2101)
      [start-jboss] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
      tion.java:1325)
      [start-jboss] at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactory
      Descriptor.construct(HibernateSessionFactoryDescriptor.java:64)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.
      java:473)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:452)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:441)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
      21)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
      31)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
      07)
      [start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
      nt.java:139)
      [start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
      nt.java:130)
      [start-jboss] at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescrip
      tor.construct(HibernateSessionDescriptor.java:63)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.
      java:473)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:452)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:441)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
      21)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
      31)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
      07)
      [start-jboss] at org.jbpm.pvm.internal.wire.descriptor.DbSessionDescriptor.ini
      tialize(DbSessionDescriptor.java:49)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.performInitialization(
      WireContext.java:537)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.initialize(WireContext
      .java:499)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:453)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
      a:441)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
      21)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
      31)
      [start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
      07)
      [start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
      nt.java:139)
      [start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
      nt.java:130)
      [start-jboss] at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(Acqu
      ireJobsCmd.java:60)
      [start-jboss] at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(Acqu
      ireJobsCmd.java:41)
      [start-jboss] at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(Defau
      ltCommandService.java:42)
      [start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execut
      eInNewTx(JtaTransactionInterceptor.java:79)
      [start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execut
      e(JtaTransactionInterceptor.java:61)
      [start-jboss] at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInter
      ceptor.java:55)
      [start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithR
      etry(JtaRetryInterceptor.java:52)
      [start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaR
      etryInterceptor.java:45)
      [start-jboss] at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(Envi
      ronmentInterceptor.java:46)
      [start-jboss] at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJob
      s(DispatcherThread.java:126)
      [start-jboss] at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(Dispat
      cherThread.java:67)
      [start-jboss] Caused by: org.jboss.resource.JBossResourceException: Class not fo
      und for XADataSource com.mysql.jdbc.jdbc2.optional.MysqlXADataSource; - nested t
      hrowable: (java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.Mysql
      XADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416b2d{name=vfsfi
      le:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.
      sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolicy=BEFORE paren
      t=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[MemoryContextHandl
      er@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11 real
      =vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@20529339[path=j
      bpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/de
      fault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/depl
      oy/jbpm/jbpm-service.sar/], DelegatingHandler@29933798[path=jbpm/jbpm-service.sa
      r/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defaul
      t/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/j
      bpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[path=jbpm/jbpm-
      service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all/jbpm-4.1/jbos
      s-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA
      /server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], Dele
      gatingHandler@4113990[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.j
      ar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real
      =file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-servi
      ce.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703981[path=jbpm/
      jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/home/all/jbpm-4.1
      /jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0
      .0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar],
      DelegatingHandler@8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar context=file:
      /E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/a
      ll/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-spi.
      jar], DelegatingHandler@22123681[path=jbpm/jbpm-service.sar/juel-engine.jar cont
      ext=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/
      E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/
      juel-engine.jar], DelegatingHandler@16058616[path=jbpm/jbpm-service.sar/juel-imp
      l.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ r
      eal=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-se
      rvice.sar/juel-impl.jar], DelegatingHandler@18862661[path=jbpm/jbpm-service.sar/
      juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy
      / real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm
      -service.sar/juel.jar], DelegatingHandler@2481330[path=jbpm/jbpm-service.sar/liv
      etribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defau
      lt/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/
      jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.odys
      seus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.integration.co
      nsole.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org.jbpm.integrat
      ion.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr223, freemarker
      .ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script, org.jbpm.inte
      gration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console-i
      ntegration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.odys
      seus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.jb
      pm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, javax
      .el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.uti
      l, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el, f
      reemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarker.
      log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, org.jbpm.inte
      gration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMPTY
      }})
      [start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
      .getXADataSource(XAManagedConnectionFactory.java:582)
      [start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
      .getXAManagedConnection(XAManagedConnectionFactory.java:449)
      [start-jboss] ... 50 more
      [start-jboss] Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.
      optional.MysqlXADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416
      b2d{name=vfsfile:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm
      /jbpm-service.sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolic
      y=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[Memo
      ryContextHandler@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1
      pb3g3u-11 real=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@2
      0529339[path=jbpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.
      0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/serve
      r/default/deploy/jbpm/jbpm-service.sar/], DelegatingHandler@29933798[path=jbpm/j
      bpm-service.sar/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA
      /server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/de
      fault/deploy/jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[p
      ath=jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all
      /jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/
      jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plu
      gin.jar], DelegatingHandler@4113990[path=jbpm/jbpm-service.sar/jbpm-console-grap
      hView-plugin.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defaul
      t/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/j
      bpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703
      981[path=jbpm/jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/hom
      e/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm
      -4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-int
      egration.jar], DelegatingHandler@8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar
      context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=f
      ile:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service
      .sar/jbpm-spi.jar], DelegatingHandler@22123681[path=jbpm/jbpm-service.sar/juel-e
      ngine.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
      y/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbp
      m-service.sar/juel-engine.jar], DelegatingHandler@16058616[path=jbpm/jbpm-servic
      e.sar/juel-impl.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/def
      ault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
      y/jbpm/jbpm-service.sar/juel-impl.jar], DelegatingHandler@18862661[path=jbpm/jbp
      m-service.sar/juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/
      default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/de
      ploy/jbpm/jbpm-service.sar/juel.jar], DelegatingHandler@2481330[path=jbpm/jbpm-s
      ervice.sar/livetribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.G
      A/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/d
      efault/deploy/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null expor
      ted=[, de.odysseus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.
      integration.console.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org
      .jbpm.integration.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr2
      23, freemarker.ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script,
      org.jbpm.integration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.
      jbpm-console-integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-p
      lugin, de.odysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.mav
      en.org.jbpm.jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.e
      xt.util, javax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.o
      dysseus.el.util, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.
      odysseus.el, freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.js
      p, freemarker.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel,
      org.jbpm.integration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT
      -ALL>NON_EMPTY}}
      [start-jboss] at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(Base
      ClassLoader.java:385)
      [start-jboss] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      [start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
      .getXADataSource(XAManagedConnectionFactory.java:544)
      [start-jboss] ... 51 more
      [start-jboss] 02:55:28,474 WARN [SettingsFactory] Could not obtain connection m
      etadata

      What is the problem, and how can I fix it? It's OK when using hsqldb with JBoss or using MySQL with Tomcat.

      I'm trying jBPM 4.1 with MySQL 5.0.

      thank you!

        • 1. Re: Running demo.setup.jboss Problems under MySQL

          I think there's something wrong with the build.xml.

          When running "ant -Ddatabase=mysql demo.setup.tomcat", during the ant target "install.jbpm.to.tomcat", there's a task that set "database.driver.destination.dir" property, then run target "internal copy database driver".

          But when running "demo.setup.tomcat", no such property is set, so the mysql-connector-java.jar is copied to the current directory where ant script running. This leads that no mysql driver is installed to JBoss server, so leads to ClassNotFoundException.

          So is this a problem with the build.xml script?