4 Replies Latest reply on Mar 12, 2008 5:27 AM by Sara Rodríguez Dorrego

    deployment problem

    abdenour hamdaoui Newbie

      If some one can help me, I have a problem when I try to deploy my process using this code

      public static void main(String[] args){

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

      } finally {
      jbpmContext.close();
      }



      I have this error



      xception 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 deploypackage.deploy.main(deploy.java:38)
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
      15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
      15:39:50,171 [main] DEBUG JbpmConfiguration : loading specific configuration...
      15:39:50,249 [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 deploypackage.deploy.main(deploy.java:38)
      Nested exception:

        • 1. Re: deployment problem
          Mark Jeffery Newbie

          Why are you parsing your hibernate config file ?

          jbpmConfiguration = JbpmConfiguration.parseResource("hibernate.cfg");

          It has nothing to do with the JBPMConfiguration file.

          Try

          jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");

          Thanks

          • 2. Re: deployment problem
            abdenour hamdaoui Newbie

            I already tried to parse "hibernate.cfg.xml" and I have en error whhich says


            Exception in thread "main" org.jbpm.util.XmlException: couldn't parse xml
            at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:68)
            at org.jbpm.configuration.ObjectFactoryParser.parseElementsStream(ObjectFactoryParser.java:109)
            at org.jbpm.JbpmConfiguration.parseObjectFactory(JbpmConfiguration.java:303)
            at org.jbpm.JbpmConfiguration.parseResource(JbpmConfiguration.java:334)
            at com.sample.action.Dep.main(Dep.java:37)
            Caused by: java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.Socket.connect(Socket.java:516)
            at java.net.Socket.connect(Socket.java:466)
            at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
            at sun.net.www.http.HttpClient.(HttpClient.java:214)
            at sun.net.www.http.HttpClient.New(HttpClient.java:287)
            at sun.net.www.http.HttpClient.New(HttpClient.java:299)
            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748)
            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:917)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
            at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
            at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:66)
            ... 4 more



            please can some one help me

            • 3. Re: deployment problem
              abdenour hamdaoui Newbie

              Sorry I mean when I try to parse "jbpm.cfg.xml" I have the same error


              :11:15,684 [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:38)
              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:38)
              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:38)

              • 4. Re: deployment problem
                Sara Rodríguez Dorrego Novice

                Hello, how do you solucionate this problem?