3 Replies Latest reply on Feb 25, 2011 1:26 AM by Dmitri Potapov

    jBPM 4.3 - Problems with deploy

    Dmitri Potapov Newbie

      Hello, I am new in jBPM and have problems.

       

      I have download jBPM 4.3 and run "demo.setup.tomcat" (Tomcat 6 and eclipse already were installed). Also I have prepared eclipse to work with jBPM.

       

      ProcessEngine processEngine = new Configuration().buildProcessEngine();

       

      RepositoryService repositoryService = processEngine.getRepositoryService();

       

      ExecutionService executionService = processEngine.getExecutionService();

      repositoryService.createDeployment().addResourceFromClasspath("printHelloWorld.jpdl.xml").deploy();

      executionService.startProcessInstanceByKey("printHelloWorld");

       

       

       

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskInstanceI

      mpl -> JBPM4_HIST_ACTINST

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.history.model.HistoryTaskImpl -> JBPM

      4_HIST_TASK

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.history.model.HistoryVariableImpl ->

      JBPM4_HIST_VAR

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.history.model.HistoryDetailImpl -> JB

      PM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryCommentImpl -

      > JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryProcessInstan

      ceMigrationImpl -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryPriorityUpdat

      eImpl -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskAssignmen

      tImpl -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskDuedateUp

      dateImpl -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindSubclass

      INFO: Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryVariableUpdat

      eImpl -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.Configuration addResource

      INFO: Reading mappings from resource : jbpm.task.hbm.xml

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.task.TaskImpl -> JBPM4_TASK

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.task.ParticipationImpl -> JBPM4_PARTI

      CIPATION

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.task.SwimlaneImpl -> JBPM4_SWIMLANE

      4.02.2011 15:01:49 org.hibernate.cfg.Configuration addResource

      INFO: Reading mappings from resource : jbpm.identity.hbm.xml

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.identity.impl.UserImpl -> JBPM4_ID_US

      ER

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.identity.impl.MembershipImpl -> JBPM4

      _ID_MEMBERSHIP

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValu

      es

      INFO: Mapping class: org.jbpm.pvm.internal.identity.impl.GroupImpl -> JBPM4_ID_G

      ROUP

      4.02.2011 15:01:49 org.hibernate.cfg.Configuration doConfigure

      INFO: Configured SessionFactory: null

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.resour

      ces -> JBPM4_LOB

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.object

      Properties -> JBPM4_DEPLOYPROP

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.variables ->

      JBPM4_VARIABLE

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.systemVariab

      les -> JBPM4_VARIABLE

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.executions -

      > JBPM4_EXECUTION

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.swimlanes ->

      JBPM4_SWIMLANE

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInst

      anceImpl.historyActivityInstances -> JBPM4_HIST_ACTINST

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInst

      anceImpl.historyVariables -> JBPM4_HIST_VAR

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProcessInst

      anceImpl.details -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryActivityIns

      tanceImpl.details -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.de

      tails -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.hi

      storyVariables -> JBPM4_HIST_VAR

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskImpl.su

      bTasks -> JBPM4_HIST_TASK

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryVariableImp

      l.details -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.history.model.HistoryCommentImpl

      .replies -> JBPM4_HIST_DETAIL

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.participations ->

      JBPM4_PARTICIPATION

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.variables -> JBPM4

      _VARIABLE

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.subTasks -> JBPM4_

      TASK

      4.02.2011 15:01:49 org.hibernate.cfg.HbmBinder bindCollectionSecondPass

      INFO: Mapping collection: org.jbpm.pvm.internal.task.SwimlaneImpl.participations

      -> JBPM4_PARTICIPATION

      4.02.2011 15:01:49 org.hibernate.connection.DriverManagerConnectionProvider conf

      igure

      INFO: Using Hibernate built-in connection pool (not for production use!)

      4.02.2011 15:01:49 org.hibernate.connection.DriverManagerConnectionProvider conf

      igure

      INFO: Hibernate connection pool size: 20

      4.02.2011 15:01:49 org.hibernate.connection.DriverManagerConnectionProvider conf

      igure

      INFO: autocommit mode: false

      4.02.2011 15:01:49 org.hibernate.connection.DriverManagerConnectionProvider conf

      igure

      INFO: using driver: org.postgresql.Driver at URL: jdbc:postgresql://pg8.fm.sise:

      5432/jbpm4

      4.02.2011 15:01:49 org.hibernate.connection.DriverManagerConnectionProvider conf

      igure

      INFO: connection properties: {user=postgres, password=****}

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: RDBMS: PostgreSQL, version: 8.3.7

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC4 (buil

      d 701)

      4.02.2011 15:01:49 org.hibernate.dialect.Dialect <init>

      INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect

      4.02.2011 15:01:49 org.hibernate.transaction.TransactionFactoryFactory buildTran

      sactionFactory

      INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory

      4.02.2011 15:01:49 org.hibernate.transaction.TransactionManagerLookupFactory get

      TransactionManagerLookup

      INFO: No TransactionManagerLookup configured (in JTA environment, use of read-wr

      ite or transactional second-level cache is not recommended)

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Automatic flush during beforeCompletion(): disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Automatic session close at end of transaction: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: JDBC batch size: 15

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: JDBC batch updates for versioned data: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Scrollable result sets: enabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: JDBC3 getGeneratedKeys(): enabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Connection release mode: auto

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Default batch fetch size: 1

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Generate SQL with comments: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Order SQL updates by primary key: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Order SQL inserts for batching: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactor

      y

      INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

      4.02.2011 15:01:49 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>

      INFO: Using ASTQueryTranslatorFactory

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Query language substitutions: {}

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: JPA-QL strict compliance: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Second-level cache: enabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Query cache: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory createRegionFactory

      INFO: Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheP

      roviderBridge

      4.02.2011 15:01:49 org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBri

      dge <init>

      INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Optimize cache for minimal puts: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Structured second-level cache entries: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Statistics: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Deleted entity synthetic identifier rollback: disabled

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Default entity-mode: pojo

      4.02.2011 15:01:49 org.hibernate.cfg.SettingsFactory buildSettings

      INFO: Named query checking : enabled

      4.02.2011 15:01:50 org.hibernate.impl.SessionFactoryImpl <init>

      INFO: building session factory

      4.02.2011 15:01:50 org.hibernate.impl.SessionFactoryObjectFactory addInstance

      INFO: Not binding factory to JNDI, no JNDI name configured

      15:01:51,423 ERROR (UserAccountAction.java:273) - org.jbpm.bpmn.deployer.BpmnDep

      loyer cannot be cast to org.jbpm.pvm.internal.repository.Deployer

      java.lang.ClassCastException: org.jbpm.bpmn.deployer.BpmnDeployer cannot be cast

      to org.jbpm.pvm.internal.repository.Deployer

              at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManag

      er.java:45)

              at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(Reposit

      orySessionImpl.java:61)

              at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)

              at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)

              at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultComman

      dService.java:42)

              at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(Stand

      ardTransactionInterceptor.java:54)

              at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironm

      ent(EnvironmentInterceptor.java:53)

              at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentI

      nterceptor.java:40)

              at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.j

      ava:55)

              at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.jav

      a:43)

              at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl

      .java:91)

              at fi.grafimedia.web.ajaxserver.user.action.UserAccountAction.execute(Us

      erAccountAction.java:115)

              at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(Execut

      eAction.java:58)

              at org.apache.struts.chain.commands.AbstractExecuteAction.execute(Abstra

      ctExecuteAction.java:67)

              at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionComm

      andBase.java:51)

              at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)

              at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.

      java:304)

              at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)

              at org.apache.struts.chain.ComposableRequestProcessor.process(Composable

      RequestProcessor.java:283)

              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:191

      3)

              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)

       

       

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp

      atcher.java:646)

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica

      tionDispatcher.java:436)

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD

      ispatcher.java:374)

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis

      patcher.java:302)

              at fi.grafimedia.web.ajaxserver.common.ProxyServlet.doPost(ProxyServlet.

      java:293)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at fi.grafimedia.web.ajaxserver.common.SignOnFilter.filteringTarget(Sign

      OnFilter.java:294)

              at fi.grafimedia.web.ajaxserver.common.SignOnFilter.doFilter(SignOnFilte

      r.java:195)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:233)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:191)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:298)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :857)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:588)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48

      9)

              at java.lang.Thread.run(Thread.java:619)

      15:01:51,432 DEBUG (MessageAction.java:56) - MessageAction...

       

       

      Could somebody help me with that issue ?!