1 Reply Latest reply on Jan 24, 2007 4:28 PM by aguizar

    jBPM BPEL Hello example

    brunoduarte

      I'm having some problems deploying BPEL Hello example!

      I get this exception:

      18:44:36,440 INFO [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=file:/C:/workspace/jbpm-bpel-1.1.Beta2/
      doc/examples/hello/output/hello-process.zip
      18:44:36,846 INFO [BpelReader] read wsdl definitions: hello.wsdl
      18:44:36,971 INFO [BpelReader] read bpel process: hello.bpel
      18:44:37,096 INFO [[/jbpm-bpel]] processDeployServlet: deployed process definition: HelloWorld
      18:44:53,675 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deploy/tmp5554hello-exp.war/
      18:44:54,019 ERROR [[/hello]] Servlet /hello threw load() exception
      org.jbpm.bpel.xml.BpelException: could not retrieve jms destination: caller
       at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.getDestination(PartnerLinkEntriesBuilder.java:148)
       at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.buildEntry(PartnerLinkEntriesBuilder.java:134)
       at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.visit(PartnerLinkEntriesBuilder.java:90)
       at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.visit(PartnerLinkEntriesBuilder.java:70)
       at org.jbpm.bpel.integration.jms.IntegrationControl.createPartnerLinkEntries(IntegrationControl.java:424)
       at org.jbpm.bpel.integration.jms.IntegrationControl.enableInboundMessageActivities(IntegrationControl.java:295)
       at org.jbpm.bpel.integration.jms.IntegrationServlet.init(IntegrationServlet.java:54)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
       at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)


      I don't find anything in the wiki and in the forum! Anyone have any clues?

      Thanks in advance,
      Bruno

        • 1. Re: jBPM BPEL Hello example
          aguizar

          Hi Bruno,

          Two hints:

          1. Did you modify file src/config/jbpm.cfg.xml? It should look like this:

          <jbpm-configuration>
          
           <jbpm-context>
           <service name="persistence" factory="org.jbpm.bpel.persistence.db.DbPersistenceServiceFactory" />
           <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
           <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
           <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
           <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
           <service name="integration">
           <factory>
           <bean class="org.jbpm.bpel.integration.jms.JmsIntegrationServiceFactory">
           <field name="defaultDestinationName">
           <string>queue/testQueue</string>
           </field>
           <field name="defaultConnectionFactoryName">
           <string>java:ConnectionFactory</string>
           </field>
           </bean>
           </factory>
           </service>
           </jbpm-context>
          
           <!-- hibernate configuration resources -->
           <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
          
           <!-- configuration resources in jbpm-{version}.jar -->
           <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
           <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
           <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
           <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
          
           <!-- configuration resources in jbpm-bpel-{version}.jar -->
           <string name="resource.default.modules" value="org/jbpm/bpel/def/modules.properties" />
           <string name="resource.parsers" value="org/jbpm/bpel/par/parsers.xml" />
           <string name="resource.varmapping" value="org/jbpm/bpel/variable/exe/varmapping.xml" />
           <string name="resource.activity.readers" value="org/jbpm/bpel/xml/activity.readers.xml"/>
           <string name="resource.catalog.readers" value="org/jbpm/bpel/xml/catalog.readers.xml" />
           <string name="resource.endpoint.factories" value="org/jbpm/bpel/integration/exe/endpoint.factories.xml" />
          
          </jbpm-configuration>

          2. Notice the jbpm-configuration/jbpm-context/service[@name='integration']/factory/bean/field[@name='defaultDestinationName'] element in the configuration above. It specifies the JNDI name of the default JMS queue to use for handling incoming web service requests. Did you delete this queue or otherwise modified your JBoss AS installation?

          jBPM BPEL 1.1.Beta2 was tested under JBoss AS 4.0.3.SP1 and 4.0.4.GA in the default server configuration.