3 Replies Latest reply on Nov 24, 2008 6:11 AM by kukeltje

    problem of deployment

    abdenourh

      I have a problem when I try to deploy my process "processdefinition.xml"
      when I execute this code





      public static void main(String[] args){

      jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
      ProcessDefinition P = ProcessDefinition.parseXmlResource("simple/processdefinition.xml");
      JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
      try {
      jbpmContext.deployProcessDefinition(P);

      } finally {
      jbpmContext.close();
      }






      I have this error message





      15:42:05,060 [main] DEBUG JbpmConfiguration : creating jbpm configuration from resource 'jbpm.cfg.xml'
      15:42:05,075 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
      15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
      15:42:05,341 [main] DEBUG JbpmConfiguration : loading specific configuration...
      15:42:05,403 [main] INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
      15:42:05,403 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
      15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
      15:42:05,435 [main] DEBUG JbpmConfiguration : loading specific configuration...
      Exception in thread "main" org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
      at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
      at com.sample.action.Dep.main(Dep.java:39)
      15:42:05,482 [main] ERROR JpdlXmlReader : couldn't parse process definition
      org.dom4j.DocumentException: null Nested exception: null
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
      at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
      at com.sample.action.Dep.main(Dep.java:39)
      Nested exception:
      java.net.MalformedURLException
      at java.net.URL.(URL.java:601)
      at java.net.URL.(URL.java:464)
      at java.net.URL.(URL.java:413)
      at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
      at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.dom4j.io.SAXReader.read(SAXReader.java:465)
      at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
      at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
      at com.sample.action.Dep.main(Dep.java:39)



        • 1. Re: problem of deployment
          johan.parent

          Hi,

          Make sure that the directories (not the files themselves) containing jbpm.cfg.xml and simple/processdefinition.xml are in your classpath.

          Hope this solves it.

          Regards,

          Johan

          • 2. Re: problem of deployment
            mash

            Hi Johan,

            i am having the same fault as abdenourh and i found your reply. i am having the processdefinition in the folder /myProcess in the root of the EAR Project as well as the jbpm.cfg.xml. Is this location right? What is exactly meant to put the processdefinition in my classpath?

            I am pretty new to jee and jboss. i read a lot of documentation and tutorials but none of them shows the right project structure. I am using jBPM 3.2.3.

            regards, marcel

            • 3. Re: problem of deployment
              kukeltje

               

              What is exactly meant to put the processdefinition in my classpath?

              Literally what it says.... can't be more explicit then this.

              The root of the ear project is not on the classpath if you deploy an ear.