Deploying Open ESB JBI Components to other JBI Containers

Hi,

I have a requirement to integrate the Open ESB JBI components like ESB BPEL Engine and ESB SOAP Binding to be inside ServiceMix ESB JBI container running in JBoss AS. Idea is to deploy the BPEL process created using NetBeans IDE (Enterprise pack) into ServiceMix ESB JBI container. In order to get my project working on this stack, I need to install mentioned two JBI components to ServicerMix. Appreciate if someone could help me in this regard.

Thanks, SAT

[481 byte] By [SAT_SCREENa] at [2007-10-3 3:29:45]
# 1

I have achieved to install both components in ServiceMix.

The next step is to deploy a BPEL process created using Netbeans EntPack. I'm trying to deploy the SynchronousSample included in Netbeans examples.

The Service Assembly is successfully deployed in Servicemix, as shows the next log:

java version "1.5.0_11"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)

Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

Starting Apache ServiceMix ESB: 3.1-incubating

Loading Apache ServiceMix from servicemix.xml on the CLASSPATH

INFO - ConnectorServerFactoryBean- JMX connector available at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

INFO - JBIContainer- ServiceMix 3.1-incubating JBI Container (ServiceMix) is starting

INFO - JBIContainer- For help or more informations please see: http://incubator.apache.org/servicemix/

INFO - ComponentMBeanImpl - Initializing component: #SubscriptionManager#

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEBootstrap init

INFO: Calling init method

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setDB_JNDIName

INFO: setting jndiname jdbc/__default

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setDB_Type

INFO: setting type 4

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setDB_URL

INFO: setting dburl jdbc:derby://localhost:1527/derbyDB

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setDB_Password

INFO: setting password pass2

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setDB_UserName

INFO: setting user usr2

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEInstallerConfiguration setPersistenceEnabled

INFO: setting PersistenceEnabled flag false

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEBootstrap init

INFO: init method has been called

21-feb-2007 9:23:47 com.sun.jbi.engine.bpel.BPELSEBootstrap getExtensionMBeanName

INFO: retrieving installation configuration mbean

21-feb-2007 9:23:48 com.sun.jbi.httpsoapbc.bootstrap.HttpSoapBindingBootstrap init

INFO: Registered MBean org.apache.servicemix:ContainerName=ServiceMix,Type=Component,Name=com.sun.httpsoapbc-1.0-2,SubType=BootstrapExtension

INFO - DeploymentService - Restoring service assemblies

INFO - ComponentMBeanImpl - Setting running state for Component: com.sun.bpelse-1.0-2 to Started

INFO - ComponentMBeanImpl - Initializing component: com.sun.bpelse-1.0-2

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSELifeCycle start

INFO: BPEL service engine started

21-feb-2007 9:23:50 com.sun.jbi.engine.bpel.BPELSEInOutThread run

INFO: Started BPEL service engine in-out thread

INFO - ComponentMBeanImpl - Setting running state for Component: com.sun.httpsoapbc-1.0-2 to Started

INFO - ComponentMBeanImpl - Initializing component: com.sun.httpsoapbc-1.0-2

21-feb-2007 9:23:50 com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle start

INFO: HTTP SOAP binding started.

21-feb-2007 9:23:50 com.sun.jbi.httpsoapbc.OutboundReceiver run

INFO: Started receiver

INFO - ComponentMBeanImpl - Setting running state for Component: JavaEEServiceEngine to Shutdown

INFO - ServiceAssemblyLifeCycle- Starting service assembly: SynchronousSample1Application

INFO - ServiceUnitLifeCycle- Initializing service unit: SynchronousSample1Application-SynchronousSample1

21-feb-2007 9:23:51 com.sun.jbi.engine.bpel.BPELSEDeployer init

INFO: Starting BPELSE deploy process

21-feb-2007 9:23:54 com.sun.jbi.engine.bpel.EngineHelper deploy

INFO: Loaded bpel processes to engine

21-feb-2007 9:23:54 com.sun.jbi.engine.bpel.BPELSEDeployer init

INFO: Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/SynchronousSample/SynchronousSample_1}SynchronousSample, endpoint name partnerlinktyperole1_myRole

21-feb-2007 9:23:54 com.sun.jbi.engine.bpel.BPELSEDeployer init

INFO: BPELSE deploy process finished

INFO - ServiceUnitLifeCycle- Initializing service unit: SynchronousSample1Application-com.sun.httpsoapbc-1.0-2

21-feb-2007 9:23:54 com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer init

INFO: Initializing service unit : SynchronousSample1Application-com.sun.httpsoapbc-1.0-2 from /opt/apache-servicemix-3.1-incubating/data/smx/service-assemblies/SynchronousSample1Application/version_1/sus/com.sun.httpsoapbc-1.0-2/SynchronousSample1Application-com.sun.httpsoapbc-1.0-2

Retrieving document at '/opt/apache-servicemix-3.1-incubating/data/smx/service-assemblies/SynchronousSample1Application/version_1/sus/com.sun.httpsoapbc-1.0-2/SynchronousSample1Application-com.sun.httpsoapbc-1.0-2/SynchronousSample.wsdl'.

Retrieving schema at 'SynchronousSample.xsd', relative to 'file:/opt/apache-servicemix-3.1-incubating/data/smx/service-assemblies/SynchronousSample1Application/version_1/sus/com.sun.httpsoapbc-1.0-2/SynchronousSample1Application-com.sun.httpsoapbc-1.0-2/SynchronousSample.wsdl'.

21-feb-2007 9:23:54 com.sun.jbi.httpsoapbc.HttpSoapEndpoint init

ADVERTENCIA: soap action is null

21-feb-2007 9:23:54 com.sun.jbi.httpsoapbc.HttpSoapEndpoint init

INFO: using soap action () as hints for operation operation1

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer init

INFO: Service unit SynchronousSample1Application-com.sun.httpsoapbc-1.0-2 was initialized successfully

INFO - ServiceUnitLifeCycle- Starting service unit: SynchronousSample1Application-SynchronousSample1

INFO - ServiceUnitLifeCycle- Starting service unit: SynchronousSample1Application-com.sun.httpsoapbc-1.0-2

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer start

INFO: Starting suId : SynchronousSample1Application-com.sun.httpsoapbc-1.0-2

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.embedded.EmbeddedServerController startServer

INFO: Attempt to create Grizzly connector at 18.181

21-feb-2007 9:23:55 org.apache.coyote.tomcat5.CoyoteConnector start

INFO: Cannot register MBean for the Protocol

21-feb-2007 9:23:55 com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start

INFO: grizzlyHttpProtocol.selectorRegisterProtocol

21-feb-2007 9:23:55 com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start

INFO: grizzlyHttpProtocol.start

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.embedded.EmbeddedServerController startServer

INFO: Grizzly connector created at 18.181

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle endpointActivated

INFO: Prepared inbound endpoint {http://localhost/SynchronousSample/SynchronousSample}service1,port1,inbound mapped to context /SynchronousSample

21-feb-2007 9:23:55 com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer start

INFO: Started : SynchronousSample1Application-com.sun.httpsoapbc-1.0-2

INFO - JBIContainer- ServiceMix JBI Container (ServiceMix) started

INFO - JDBCAdapterFactory - Database driver recognized: [apache_derby_embedded_jdbc_driver]

INFO - LogTask- log4j system reconfigured

But now I'm trying to send soap messages to the deployed endpoint, and I get following errors in Servicemix:

21-feb-2007 9:32:00 com.sun.jbi.httpsoapbc.util.DebugLog debugLog

INFO: sending normalized msg to component:

<?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:msgns="http://localhost/SynchronousSample/SynchronousSample" name="input1" type="msgns:requestMessage" version="1.0"><jbi:part><syn:typeA xmlns:syn="http://xml.netbeans.org/schema/SynchronousSample">

<syn:paramA>Input</syn:paramA>

</syn:typeA></jbi:part></jbi:message>

21-feb-2007 9:32:00 com.sun.jbi.httpsoapbc.OutboundReceiver run

INFO: Got a message in SOAP binding ID:localhost-57936-1172046226632-3:0

21-feb-2007 9:32:00 com.sun.jbi.httpsoapbc.OutboundAction run

GRAVE: Unexpected exception in processing outbound message

java.lang.NullPointerException

at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyInbound(OutboundMessageProcessor.java:206)

at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:180)

at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:57)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

How can I solve this problem?

Waxtera at 2007-7-14 21:23:38 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

If I try to do the same, but with the AsynchronousSampleApplication, I can deploy successfully on Servicemix too:

INFO - AutoDeploymentService - Directory: deploy: Archive changed: processing AsynchronousSampleApplication.zip ...

Deploying service unit : AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2 from /home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

Retrieving document at '/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSample.wsdl'.

Retrieving schema at 'AsynchronousSample.xsd', relative to 'file:/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSample.wsdl'.

Retrieving document at '/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSampleClient.wsdl'.

Retrieving document at 'AsynchronousSample.wsdl', relative to 'file:/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSampleClient.wsdl'.

Retrieving schema at 'AsynchronousSample.xsd', relative to 'file:/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSample.wsdl'.

Retrieving schema at 'AsynchronousSample.xsd', relative to 'file:/home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2/AsynchronousSampleClient.wsdl'.

soap action is null

soap action is null

soap action is null

INFO - ServiceAssemblyLifeCycle- Starting service assembly: AsynchronousSampleApplication

INFO - ServiceUnitLifeCycle- Initializing service unit: AsynchronousSampleApplication-AsynchronousSample

Starting BPELSE deploy process

Loaded bpel processes to engine

Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/AsynchronousSample}partnerLinkA, endpoint name serviceProvider_myRole

Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/AsynchronousSampleClient}partnerLinkA, endpoint name AsynchronousClientProvider_myRole

Activated an endpoint. Service name {http://enterprise.netbeans.org/bpel/AsynchronousSampleClient}partnerLinkB, endpoint name serviceRequestor_myRole

BPELSE deploy process finished

INFO - ServiceUnitLifeCycle- Initializing service unit: AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

Initializing service unit : AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2 from /home/intecna/OpenESB/domains/domain1/applications/j2ee-modules/servicemix-web-3.1-incubating/wdir/service-assemblies/AsynchronousSampleApplication/version_1/sus/com.sun.httpsoapbc-1.0-2/AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

Service unit AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2 was initialized successfully

INFO - ServiceUnitLifeCycle- Starting service unit: AsynchronousSampleApplication-AsynchronousSample

INFO - ServiceUnitLifeCycle- Starting service unit: AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

Starting suId : AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

Prepared inbound endpoint {http://enterprise.netbeans.org/bpel/AsynchronousSampleClient}AsynchronousClientService,AsynchronousClientPortName,inbound mapped to context /AsynchronousSampleClient

Prepared inbound endpoint {http://enterprise.netbeans.org/bpel/AsynchronousSample}AsynchronousSample_asyncService,AsynchronousSample_asyncPortName,inbound mapped to context /AsynchronousSample

Prepared inbound endpoint {http://enterprise.netbeans.org/bpel/AsynchronousSample}AsynchronousClient_asyncCallbackService,AsynchronousClient_asyncCallbackPortName,inbound mapped to context /AsynchronousSampleCallback

Started : AsynchronousSampleApplication-com.sun.httpsoapbc-1.0-2

INFO - AutoDeploymentService - Directory: deploy: Finished installation of archive: AsynchronousSampleApplication.zip

But when I run a test sending a soap message, I get following errors:

sending normalized msg to component:

<?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:msgns="http://enterprise.netbeans.org/bpel/AsynchronousSampleClient" type="msgns:requestMessageClient" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part><asy:typeA xmlns:asy="http://enterprise.netbeans.org/bpel/AsynchronousSampleSchemaNamespace">

<paramA>Hello Asynchronous World</paramA>

<id>18</id>

</asy:typeA></jbi:part></jbi:message>

Sending a one way outbound message to the NMR. MessageExchangeId is ID:localhost-36525-1172217545475-10:0, service name is {http://enterprise.netbeans.org/bpel/AsynchronousSampleClient}partnerLinkB, endpoint name is serviceProvider_partnerRole.

The contents of the message are :

javax.xml.transform.dom.DOMSource@5027c8

Sending status ID:localhost-36525-1172217545475-10:0status Done

Sending a one way outbound message to the NMR. MessageExchangeId is ID:localhost-36525-1172217545475-10:1, service name is {http://enterprise.netbeans.org/bpel/AsynchronousSample}partnerLinkA, endpoint name is serviceRequestor_partnerRole.

The contents of the message are :

javax.xml.transform.dom.DOMSource@147511f

caught exception while processing message

java.lang.NullPointerException

at com.sun.jbi.engine.bpel.impl.EndpointStatisticsHelper.getOutboundEndpointStatus(EndpointStatisticsHelper.java:80)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processStatus(BPELSEInOutThread.java:475)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:209)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:138)

Waxtera at 2007-7-14 21:23:38 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...