0 Replies Latest reply on May 11, 2007 9:04 PM by simonbaker

    beginners errors

    simonbaker

      Does any have insight into where I'm going wrong with a simple jBPM test ap? I get the following output:

      Exception in thread "main" org.hibernate.MappingException: Resource: org/jbpm/job/Job.hbm.xml not found
      


      It happens basically when calling:
      jbpmContext.deployProcessDefinition(newProcessDefinition);
      


      I have included these jars in the classpath so far:

      antlr-2.7.5H3.jar
      asm.jar
      cglib-2.1_2jboss.jar
      commons_logging.jar
      dom4j.1.6.1.jar
      hibernate3.jar


      I also put jbpm_BRANCH_3_1 project in my build rather than include the JBPMLibrary.

      More complete Console Output:
      16:56:23,843 [main] INFO JBPMAccessor : JBPMConfiguration was null, creating instance.
      16:56:23,843 [main] INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
      16:56:23,859 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
      16:56:23,937 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
      16:56:23,953 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
      16:56:23,953 [main] DEBUG JbpmConfiguration : loading specific configuration...
      16:56:23,984 [main] DEBUG JbpmContextInfo : creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
      16:56:23,984 [main] DEBUG JbpmContext : creating JbpmContext
      16:56:23,984 [main] INFO JBPMAccessor : Retrieved jbpmContext.
      16:56:23,984 [main] INFO JBPMAccessor : [JBPMAccessor.startEfileDestructionProcess] Finding latest Process Definition of JBPMEfileProcess in file: C:\Documents and Settings\All Users\Documents\RoyImage2000\application\webapps\Image2000\WEB-INF\classes\processdefinition.xml
      16:56:23,984 [main] DEBUG DbPersistenceServiceFactory : creating persistence service
      16:56:24,000 [main] DEBUG DbPersistenceServiceFactory : building hibernate session factory
      16:56:24,031 [main] INFO Environment : Hibernate 3.1
      16:56:24,031 [main] INFO Environment : hibernate.properties not found
      16:56:24,046 [main] INFO Environment : using CGLIB reflection optimizer
      16:56:24,046 [main] INFO Environment : using JDK 1.4 java.sql.Timestamp handling
      16:56:24,109 [main] DEBUG HibernateHelper : creating hibernate configuration resource 'hibernate.cfg.xml'
      16:56:24,109 [main] INFO Configuration : configuring from resource: hibernate.cfg.xml
      16:56:24,109 [main] INFO Configuration : Configuration resource: hibernate.cfg.xml
      16:56:24,234 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/action/Script.hbm.xml
      16:56:24,343 [main] INFO Configuration : Reading mappings from resource: org/jbpm/identity/User.hbm.xml
      16:56:24,437 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.User -> JBPM_ID_USER
      16:56:24,484 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.User.permissions -> JBPM_ID_PERMISSIONS
      16:56:24,484 [main] INFO Configuration : Reading mappings from resource: org/jbpm/identity/Group.hbm.xml
      16:56:24,515 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.Group -> JBPM_ID_GROUP
      16:56:24,578 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.Group.permissions -> JBPM_ID_PERMISSIONS
      16:56:24,593 [main] INFO Configuration : Reading mappings from resource: org/jbpm/identity/Membership.hbm.xml
      16:56:24,609 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.Membership -> JBPM_ID_MEMBERSHIP
      16:56:24,609 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.Membership.permissions -> JBPM_ID_PERMISSIONS
      16:56:24,609 [main] INFO Configuration : Reading mappings from resource: org/jbpm/db/hibernate.queries.hbm.xml
      16:56:24,687 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/ProcessDefinition.hbm.xml
      16:56:24,703 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.ProcessDefinition -> JBPM_PROCESSDEFINITION
      16:56:24,750 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/Node.hbm.xml
      16:56:24,765 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Node -> JBPM_NODE
      16:56:24,781 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/Transition.hbm.xml
      16:56:24,796 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Transition -> JBPM_TRANSITION
      16:56:24,796 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/Event.hbm.xml
      16:56:24,859 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Event -> JBPM_EVENT
      16:56:24,859 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/Action.hbm.xml
      16:56:24,890 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Action -> JBPM_ACTION
      16:56:24,890 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/SuperState.hbm.xml
      16:56:24,937 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.def.SuperState -> JBPM_NODE
      16:56:24,937 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/def/ExceptionHandler.hbm.xml
      16:56:25,000 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.ExceptionHandler -> JBPM_EXCEPTIONHANDLER
      16:56:25,015 [main] INFO Configuration : Reading mappings from resource: org/jbpm/instantiation/Delegation.hbm.xml
      16:56:25,031 [main] INFO HbmBinder : Mapping class: org.jbpm.instantiation.Delegation -> JBPM_DELEGATION
      16:56:25,046 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/StartState.hbm.xml
      16:56:25,062 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.StartState -> JBPM_NODE
      16:56:25,078 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/EndState.hbm.xml
      16:56:25,093 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.EndState -> JBPM_NODE
      16:56:25,093 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/ProcessState.hbm.xml
      16:56:25,125 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.ProcessState -> JBPM_NODE
      16:56:25,125 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/Decision.hbm.xml
      16:56:25,140 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Decision -> JBPM_NODE
      16:56:25,156 [main] INFO HbmBinder : Mapping collection: org.jbpm.graph.node.Decision.decisionConditions -> JBPM_DECISIONCONDITIONS
      16:56:25,218 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/Fork.hbm.xml
      16:56:25,250 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Fork -> JBPM_NODE
      16:56:25,250 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/Join.hbm.xml
      16:56:25,265 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Join -> JBPM_NODE
      16:56:25,265 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/State.hbm.xml
      16:56:25,281 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.State -> JBPM_NODE
      16:56:25,281 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/node/TaskNode.hbm.xml
      16:56:25,312 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.TaskNode -> JBPM_NODE
      16:56:25,343 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/def/ContextDefinition.hbm.xml
      16:56:25,359 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/def/VariableAccess.hbm.xml
      16:56:25,375 [main] INFO HbmBinder : Mapping class: org.jbpm.context.def.VariableAccess -> JBPM_VARIABLEACCESS
      16:56:25,390 [main] INFO Configuration : Reading mappings from resource: org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml
      16:56:25,468 [main] INFO Configuration : Reading mappings from resource: org/jbpm/taskmgmt/def/Swimlane.hbm.xml
      16:56:25,484 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Swimlane -> JBPM_SWIMLANE
      16:56:25,484 [main] INFO Configuration : Reading mappings from resource: org/jbpm/taskmgmt/def/Task.hbm.xml
      16:56:25,515 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Task -> JBPM_TASK
      16:56:25,515 [main] INFO Configuration : Reading mappings from resource: org/jbpm/taskmgmt/def/TaskController.hbm.xml
      16:56:25,531 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.TaskController -> JBPM_TASKCONTROLLER
      16:56:25,531 [main] INFO Configuration : Reading mappings from resource: org/jbpm/module/def/ModuleDefinition.hbm.xml
      16:56:25,546 [main] INFO HbmBinder : Mapping class: org.jbpm.module.def.ModuleDefinition -> JBPM_MODULEDEFINITION
      16:56:25,546 [main] INFO Configuration : Reading mappings from resource: org/jbpm/bytes/ByteArray.hbm.xml
      16:56:25,609 [main] INFO HbmBinder : Mapping class: org.jbpm.bytes.ByteArray -> JBPM_BYTEARRAY
      16:56:25,609 [main] INFO HbmBinder : Mapping collection: org.jbpm.bytes.ByteArray.byteBlocks -> JBPM_BYTEBLOCK
      16:56:25,609 [main] INFO Configuration : Reading mappings from resource: org/jbpm/file/def/FileDefinition.hbm.xml
      16:56:25,625 [main] INFO HbmBinder : Mapping subclass: org.jbpm.file.def.FileDefinition -> JBPM_MODULEDEFINITION
      16:56:25,625 [main] INFO Configuration : Reading mappings from resource: org/jbpm/scheduler/def/CreateTimerAction.hbm.xml
      16:56:25,640 [main] INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CreateTimerAction -> JBPM_ACTION
      16:56:25,640 [main] INFO Configuration : Reading mappings from resource: org/jbpm/scheduler/def/CancelTimerAction.hbm.xml
      16:56:25,640 [main] INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CancelTimerAction -> JBPM_ACTION
      16:56:25,656 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/exe/Comment.hbm.xml
      16:56:25,656 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Comment -> JBPM_COMMENT
      16:56:25,656 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/exe/ProcessInstance.hbm.xml
      16:56:25,718 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.ProcessInstance -> JBPM_PROCESSINSTANCE
      16:56:25,734 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/exe/Token.hbm.xml
      16:56:25,750 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Token -> JBPM_TOKEN
      16:56:25,765 [main] INFO Configuration : Reading mappings from resource: org/jbpm/graph/exe/RuntimeAction.hbm.xml
      16:56:25,781 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.RuntimeAction -> JBPM_RUNTIMEACTION
      16:56:25,781 [main] INFO Configuration : Reading mappings from resource: org/jbpm/module/exe/ModuleInstance.hbm.xml
      16:56:25,796 [main] INFO HbmBinder : Mapping class: org.jbpm.module.exe.ModuleInstance -> JBPM_MODULEINSTANCE
      16:56:25,796 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/ContextInstance.hbm.xml
      16:56:25,796 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.ContextInstance -> JBPM_MODULEINSTANCE
      16:56:25,796 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/TokenVariableMap.hbm.xml
      16:56:25,812 [main] INFO HbmBinder : Mapping class: org.jbpm.context.exe.TokenVariableMap -> JBPM_TOKENVARIABLEMAP
      16:56:25,828 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/VariableInstance.hbm.xml
      16:56:25,828 [main] INFO HbmBinder : Mapping class: org.jbpm.context.exe.VariableInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,890 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml
      16:56:25,906 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.ByteArrayInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,906 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml
      16:56:25,921 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.DateInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,921 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml
      16:56:25,921 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.DoubleInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,921 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml
      16:56:25,937 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateLongInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,937 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml
      16:56:25,953 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateStringInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,953 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml
      16:56:25,953 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.LongInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,953 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml
      16:56:25,968 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.NullInstance -> JBPM_VARIABLEINSTANCE
      16:56:25,968 [main] INFO Configuration : Reading mappings from resource: org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml
      16:56:26,031 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.StringInstance -> JBPM_VARIABLEINSTANCE
      16:56:26,031 [main] INFO Configuration : Reading mappings from resource: org/jbpm/job/Job.hbm.xml
      Exception in thread "main" org.hibernate.MappingException: Resource: org/jbpm/job/Job.hbm.xml not found
       at org.hibernate.cfg.Configuration.addResource(Configuration.java:478)
       at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1443)
       at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1411)
       at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1392)
       at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1368)
       at org.hibernate.cfg.Configuration.configure(Configuration.java:1288)
       at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90)
       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:76)
       at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:81)
       at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:234)
       at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:539)
       at com.rco.bpm.util.JBPMAccessor.main(JBPMAccessor.java:376)