2 Replies Latest reply on Oct 6, 2006 7:43 PM by leonel valenzuela

    jBPM BPEL Designer - Bonjour Example

    Rainer Schuster Newbie

      Hi folks,
      I wanted to set up an example for a bridge between the jBPM and the Eclipse BPEL Designer.
      I found a description of an example here http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmBpelDesigner. this is a perfect documentation (Congratulation to the Author!!!!) I did everything step by step. But when I wanted to deploy the application I got stuck and some exceptions where thrown:

      1)Process Files can not be read (but they are packed in the folder 'build" as bonjour.par
      ************************************************************

      15:50:03,628 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
      oss.jca:service=DataSourceBinding,name=jbpmBpelDS' to JNDI name 'java:jbpmBpelDS
      '
      15:50:03,628 INFO [JbpmConfiguration] using jbpm configuration resource 'jbpm.c
      fg.xml'
      15:50:03,675 INFO [TomcatDeployer] deploy, ctxPath=/jbpm-bpel, warUrl=.../tmp/d
      eploy/tmp18892jbpm-bpel.sar-contents/jbpm-bpel-exp.war/
      16:08:39,706 INFO [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=null
      16:08:39,706 ERROR [[/jbpm-bpel]] processDeployServlet: could not read process file: null
      java.net.MalformedURLException
       at java.net.URL.<init>(URL.java:601)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jbpm.bpel.web.ProcessDeployServlet.doGet(ProcessDeployServlet.jav
      a:38)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)



      2.)Error in the process.template.xml
      **********************************
      Sometimes(!!!!!) I get an error here - then eclipse can not find these classes (strange)

      <taskdef name="webdeploy" classname="org.jbpm.bpel.ant.WebDeployTask">
       <classpath refid="webtask.classpath" />
       </taskdef>
       <taskdef name="servicegen" classname="org.jbpm.bpel.ant.ServiceGeneratorTask">
       <classpath refid="servicegen.classpath" />
       </taskdef>



      3.)Versions
      *****************************************
      I am using the following versions:
      jBoss 4.0.4.GA
      jbpm-bpel-1.1-beta2

      --> when I wanted to use build1 (because I thought this may be the problem) I got the following errormessage, when I wanted to deploy the .sar file from bpel at the jBoss AS. --> which means I could not even get the build1 run on jBoss:
      16:19:27,859 INFO [TomcatDeployer] undeploy, ctxPath=/jbpm-bpel, warUrl=.../tmp
      /deploy/tmp18892jbpm-bpel.sar-contents/jbpm-bpel-exp.war/
      16:19:27,859 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager '
      jboss.jca:service=DataSourceBinding,name=jbpmBpelDS' from JNDI name 'java:jbpmBp
      elDS'
      16:19:28,078 INFO [HypersonicDatabase] Database standalone closed clean
      16:19:28,812 ERROR [MainDeployer] Could not create deployment: file:/C:/Programm
      e/Java/jboss-4.0.4.GA/server/default/deploy/jbpm-bpel.sar
      org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jbpm.db
      .jmx.JbpmService; - nested throwable: (java.lang.ClassNotFoundException: No Clas
      sLoaders found for: org.jbpm.db.jmx.JbpmService)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :196)
       at org.jboss.system.ServiceController.install(ServiceController.java:226
      )
       at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:610)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jbpm
      .db.jmx.JbpmService
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
      assLoader.java:511)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
      oader.java:405)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
      1204)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
      286)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
      344)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
      tor.java:449)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :171)
       ... 33 more
      





      *******************************************
      THANKS FOR YOUR HELP!!!
      *******************************************

      Cheers Rainer



        • 1. Re: jBPM BPEL Designer - Bonjour Example
          Alejandro Guizar Master

          Hi Rainer,

          Note that Burr wrote those instructions for jPBM BPEL 1.1-beta1. I suggest you try that version first, then switch to Beta2 when you become more familiar with the software.

          When switching versions, be sure to clean everything up (your app server, your database, etc.). Otherwise you might encounter some weird exceptions.

          • 2. Re: jBPM BPEL Designer - Bonjour Example
            leonel valenzuela Newbie

            im following the document jbossBPEL_Designer_GettingStarted.pdf but i can't complete correctly the step 2 "Start Eclipse 3.2 and use the Import Existing Projects into Workspace feature from the
            File menu. "

            because when i press "finish" eclipse is trying to build the project, and i can se the structure imported but with two errors....

            The project cannot be built until build class path errors are resolved

            and

            Unbound classpath container: 'JBoss 4.0.4' in project jbpm.bpel

            i download the jbpm-bpel-1.1.Beta2