5 Replies Latest reply on Sep 3, 2009 6:42 AM by jbarrez

    Issue with remote client and JBPM 4.1

    luc.boutier

      === Environment ==============================
      - jBPM Version : 4.1
      - Database : HSQL
      - JDK : 1.6.0_15 (Apple)
      - Container : Tomcat
      - Configuration : remote.client.jbpm.cfg.xml provided with the distribution
      - Libraries : From the JBoss maven repository (4.1)

      === Process ==================================
      No process at my stage...

      === API ===================================
      Spring configuration :

      <!-- Connect to the remote JBPM server -->
      <constructor-arg value="remote.client.jbpm.cfg.xml" />


      === Stacktrace ==============================
      Bit long so just put the cause:

      Caused by: org.jbpm.api.JbpmException:
      error: no element parser for tag ejb-remote-command-service in category descriptor [line=18 column=64 ]
      at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:168)
      at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
      at org.jbpm.pvm.internal.xml.Parse.checkErrors(Parse.java:189)
      at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:165)
      at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setInputStream(JbpmConfiguration.java:132)
      at org.jbpm.pvm.internal.cfg.SpringConfiguration.(SpringConfiguration.java:63)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
      ... 49 more

      === Problem description =========================
      I'm not able to have a working remote client.... See stacktrace...
      Issue doesn't seems to come from Spring as it works fine if I use embedded JBPM.

      Thanks for your help

        • 1. Re: Issue with remote client and JBPM 4.1
          kukeltje

          Tomcat and ejb's? Hmm.... don't think that will work.

          • 2. Re: Issue with remote client and JBPM 4.1
            luc.boutier

            Well yes, playing too much with every configurations.... Anyway I was first deploying in JBoss... So this is still an issue...

            Basically the issue just looks as client configuration issue. There is nothing critical as I'm just playing with jbpm and see what I can do or not.

            Thanks for the reply anyway

            • 3. Re: Issue with remote client and JBPM 4.1
              jbarrez

              Can you post the content of remote.client.jbpm.cfg.xml ?

              • 4. Re: Issue with remote client and JBPM 4.1
                luc.boutier

                remote.client.jbpm.cfg.xml : (file in jbpmHome/install/src/cfg/jbpm)

                <?xml version="1.0" encoding="UTF-8"?>
                <jbpm-configuration>
                 <import resource="jbpm.jbossremote.cfg.xml" />
                </jbpm-configuration>
                


                and jbpm.jbossremote.cfg.xml : (found in jbpm-pvm-4.1.jar)
                <?xml version="1.0" encoding="UTF-8"?>
                <jbpm-configuration>
                
                 <process-engine-context>
                
                 <repository-service />
                 <repository-cache />
                 <execution-service />
                 <history-service />
                 <management-service />
                 <task-service />
                 <identity-service />
                
                 <ejb-remote-command-service
                 initial-context-factory="org.jnp.interfaces.NamingContextFactory"
                 provider-url="jnp://localhost"
                 url-pkg-prefixes="org.jboss.naming:org.jnp.interfaces">
                 <retry-interceptor />
                 </ejb-remote-command-service>
                
                 </process-engine-context>
                
                </jbpm-configuration>
                



                • 5. Re: Issue with remote client and JBPM 4.1
                  jbarrez

                  The binding for the Ejb remote command service is in the jbpm.wire.bindings.xml file, so the config file is probably missing some imports.

                  Try to add jbpm.default.cfg.xml, jbpm.jpdl.cfg.xml, etc... and let us know if this helps.