4 Replies Latest reply on Dec 4, 2009 3:37 PM by kukeltje

    Problem to run jBPM under jBoss and searching for PVM docume

    -silver-

      Hi all and nice to meet you!
      I'm new here but I think that I'll write many many posts!
      I started work of my master thesis based on jBPM so I hope to find support here :) !

      To start I've two questions:

      1) I installed manually jBPM version 4.2 on jBoss 5.1.0GA then I went to folder "C:\jboss-5.1.0GA\bin\" and typed "run -c jbpm". I received the follow error message:

      Calling C:\jboss-5.1.0.GA\bin\run.conf.bat
      ===============================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: C:\jboss-5.1.0.GA
      
       JAVA: c:\program files (x86)\java\JDK1.6.0_17\bin\java
      
       JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun
      .rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg
      .jboss.resolver.warning=true -server
      
       CLASSPATH: C:\jboss-5.1.0.GA\bin\run.jar
      
      ===============================================================================
      
      20:58:52,953 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      20:58:52,956 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build:
      SVNTag=JBoss_5_1_0_GA date=200905221634)
      20:58:52,957 INFO [ServerImpl] Bootstrap URL: null
      20:58:52,959 INFO [ServerImpl] Home Dir: C:\jboss-5.1.0.GA
      20:58:52,960 INFO [ServerImpl] Home URL: file:/C:/jboss-5.1.0.GA/
      20:58:52,961 INFO [ServerImpl] Library URL: file:/C:/jboss-5.1.0.GA/lib/
      20:58:52,962 INFO [ServerImpl] Patch URL: null
      20:58:52,963 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.1.0.GA/common/
      
      20:58:52,964 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.1.0.GA/comm
      on/lib/
      20:58:52,965 INFO [ServerImpl] Server Name: jbpm
      20:58:53,019 INFO [ServerImpl] Server Base Dir: C:\jboss-5.1.0.GA\server
      20:58:53,020 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.1.0.GA/server/
      
      20:58:53,022 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.1.0.GA/serve
      r/jbpm/conf/
      20:58:53,023 INFO [ServerImpl] Server Home Dir: C:\jboss-5.1.0.GA\server\jbpm
      20:58:53,024 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.1.0.GA/server/
      jbpm/
      20:58:53,026 INFO [ServerImpl] Server Data Dir: C:\jboss-5.1.0.GA\server\jbpm\d
      ata
      20:58:53,027 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.1.0.GA/serv
      er/jbpm/lib/
      20:58:53,032 INFO [ServerImpl] Server Log Dir: C:\jboss-5.1.0.GA\server\jbpm\lo
      g
      20:58:53,033 INFO [ServerImpl] Server Native Dir: C:\jboss-5.1.0.GA\server\jbpm
      \tmp\native
      20:58:53,089 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.1.0.GA\server\jbpm\t
      mp
      20:58:53,091 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.1.0.GA\server
      \jbpm\tmp\deploy
      20:58:54,137 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/j
      boss-5.1.0.GA/server/jbpm/conf/bootstrap.xml
      Failed to boot JBoss:
      java.lang.RuntimeException: Error unmarshalling file:/C:/jboss-5.1.0.GA/server/j
      bpm/conf/bootstrap.xml
       at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60
      )
       at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java
      :123)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
      450)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/
      C:/jboss-5.1.0.GA/server/jbpm/conf/bootstrap.xml
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:177)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
      :119)
       at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53
      )
       ... 5 more
      Caused by: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\jbpm\conf\boo
      tstrap.xml
       at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnecti
      on.java:105)
       at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLC
      onnection.java:112)
       at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
      urce)
       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 Sour
      ce)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:173)
       ... 7 more
      20:58:54,314 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
      20:58:54,343 INFO [ServerImpl] Shutdown complete
      Shutdown complete
      Halting VM
      Press a key to continue . . .
      


      I know that I probably have a problem with my java path (I'm running java 32 under windows 7 64bit and something is wrong with path) could be this the problem?

      2)Where could I find detailed PVM developer's documentation?

      Thanks a lot!








































































































        • 1. Re: Problem to run jBPM under jBoss and searching for PVM do
          kukeltje

          1: Caused by: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\jbpm\conf\bootstrap.xml

          Please try a clean JBoss AS server instance first before adding jBPM to it. Such an error has nothing to do with jBPM

          2: What is detailed? Have you checked here: http://www.jboss.org/jbossjbpm/pvm/ And jBPM-JPDL itself is a great example of how to use the pvm

          • 2. Re: Problem to run jBPM under jBoss and searching for PVM do
            -silver-

            Hi kukeltje, first of all thanks for the reply :)

            1) I tried a clean jboss 5.1.0 AS and it starts without problems, then I installed jbpm and there are a lot of exception.
            This is the first one:

            11:40:08,195 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
            org.jboss.resource.JBossResourceException: Could not create connection; - 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.MysqlXADataSource from BaseClassLoader@17704b7{VFSClassLoaderPolicy@d6c6a0{name=vfsfile:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/ domain=ClassLoaderDomain@eb67e8{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@867e89} roots=[MemoryContextHandler@9068528[path= context=vfsmemory://5c4o03-4x3cun-g2stpfuk-1-g2stpzvd-17 real=vfsmemory://5c4o03-4x3cun-g2stpfuk-1-g2stpzvd-17], FileHandler@10536304[path=jbpm/jbpm-service.sar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/], DelegatingHandler@16936351[path=jbpm/jbpm-service.sar/freemarker.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@7016550[path=jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], DelegatingHandler@16898138[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@2304605[path=jbpm/jbpm-service.sar/jbpm-console-integration.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar], DelegatingHandler@11682775[path=jbpm/jbpm-service.sar/juel-engine.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel-engine.jar], DelegatingHandler@25425762[path=jbpm/jbpm-service.sar/juel-impl.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel-impl.jar], DelegatingHandler@15102430[path=jbpm/jbpm-service.sar/juel.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel.jar], DelegatingHandler@20824308[path=jbpm/jbpm-service.sar/livetribe-jsr223.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.odysseus.el.tree.impl, freemarker, 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-jsr223, freemarker.ext.jython, javax.script, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console-integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.odysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, javax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.util, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el, freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarker.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMPTY}}))
             at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:465)
             ....
            


            I think that there's some problem with the mysql connection.
            Mysql is correctly running on port 3306, what could cause this excepiton? Does JBoss search for connection libraries in a wrong path?
            Doesn't JBoss have the correct privileges to access the database?
            Anything else?
            What could I do to solve?

            2) I saw the documentation that you suggested, but I need documentation about the internal pvm's operation. For example, does it work like a state machine or like an Artificial Neural Network? etc.

            • 3. Re: Problem to run jBPM under jBoss and searching for PVM do
              kukeltje

              Try adding the mysql driver jar manually to the classpath. This is missing in 4.2 (and there is a jira issue for it)

              • 4. Re: Problem to run jBPM under jBoss and searching for PVM do
                kukeltje

                Oh, and about 2:

                It's not an Artificial Neural Network, it's based on superposition and entanglement and touches on EPR

                But on a more serious note, it is an advanced statemachine for process graphs.