ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "von Arx, Matthias" <matthias.von_...@siemens.com>
Subject Creating a deploy.xml file for a BPEL process for ServiceMix
Date Thu, 09 Nov 2006 13:42:07 GMT
Hi,

We are using the ODE JBI service engine installed on ServiceMix. My
problem is now, how to address other services deployed in ServiceMix,
e.g. a JSR181 compliant service.

I guess, for that reason the attribute initializePartnerRole="yes" has
to be set on each partner link declaration and a corresponding partner
link declaration is required in the deploy.xml descriptor (like in the
ping-pong example).

With the following deploy.xml

    <process name="pns:CriminalRegisterProcess">
        <active>true</active>
        <provide partnerLink="criminalRegisterPartnerLink">
            <service name="sns:CriminalRegisterService"
port="CriminalRegisterPort"/>
        </provide>
        <invoke partnerLink="federalCriminalRegisterPartnerLink">
            <service name="fcr:FederalCriminalRegisterService"
port="JbiEndpoint"/>
        </invoke>
    </process>

I receive the following Exception after the deployment of the bpel
process:

14:29:41,277 | INFO  | Thread-10  | AutoDeploymentService    |
mework.AutoDeploymentService$2  589 | Directory: deploy: Archive
changed: processing sa-criminalregister.zip ...
14:29:46,124 | ERROR | Thread-10  | BpelServer               |
ode.bpel.engine.BpelServerImpl  654 | Deployment of process
"{http://husky.siemens.com/xml/ns/services/criminalregister/bpel}Crimina
lRegisterProcess" from
"D:\servicemix-3.0\husky\data\smx\service-assemblies\CriminalRegisterSer
viceAssembly\version_1\sus\OdeBpelEngine\CriminalRegisterOde" failed.
org.apache.ode.bpel.iapi.ContextException: Unkown endpoint:
{http://husky.siemens.com/xml/ns/services/federalcriminalregister}Federa
lCriminalRegisterService:JbiEndpoint
	at
org.apache.ode.jbi.BindingContextImpl.createPartnerRoleChannel(BindingCo
ntextImpl.java:77)
	at
org.apache.ode.bpel.engine.BpelProcess.activate(BpelProcess.java:737)
	at
org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineImpl
.java:166)
	at
org.apache.ode.bpel.engine.BpelServerImpl.doActivateProcess(BpelServerIm
pl.java:603)
	at
org.apache.ode.bpel.engine.BpelServerImpl.deploy(BpelServerImpl.java:739
)
	at
org.apache.ode.bpel.engine.BpelServerImpl.deploy(BpelServerImpl.java:649
)
	at
org.apache.ode.jbi.OdeServiceUnit.deploy(OdeServiceUnit.java:61)
	at org.apache.ode.jbi.OdeSUManager.deploy(OdeSUManager.java:59)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem
bly(DeploymentService.java:527)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:295)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
14:29:46,144 | ERROR | Thread-10  | OdeServiceUnit           |
.apache.ode.jbi.OdeServiceUnit   64 | Error deploying process described
by deployment descriptor
"D:\servicemix-3.0\husky\data\smx\service-assemblies\CriminalRegisterSer
viceAssembly\version_1\sus\OdeBpelEngine\CriminalRegisterOde" for
service unit "CriminalRegisterOde".
org.apache.ode.bpel.iapi.BpelEngineException: Deployment of process
"{http://husky.siemens.com/xml/ns/services/criminalregister/bpel}Crimina
lRegisterProcess" from
"D:\servicemix-3.0\husky\data\smx\service-assemblies\CriminalRegisterSer
viceAssembly\version_1\sus\OdeBpelEngine\CriminalRegisterOde" failed.
	at
org.apache.ode.bpel.engine.BpelServerImpl.deploy(BpelServerImpl.java:655
)
	at
org.apache.ode.jbi.OdeServiceUnit.deploy(OdeServiceUnit.java:61)
	at org.apache.ode.jbi.OdeSUManager.deploy(OdeSUManager.java:59)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem
bly(DeploymentService.java:527)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:295)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.ode.bpel.iapi.ContextException: Unkown endpoint:
{http://husky.siemens.com/xml/ns/services/federalcriminalregister}Federa
lCriminalRegisterService:JbiEndpoint
	at
org.apache.ode.jbi.BindingContextImpl.createPartnerRoleChannel(BindingCo
ntextImpl.java:77)
	at
org.apache.ode.bpel.engine.BpelProcess.activate(BpelProcess.java:737)
	at
org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineImpl
.java:166)
	at
org.apache.ode.bpel.engine.BpelServerImpl.doActivateProcess(BpelServerIm
pl.java:603)
	at
org.apache.ode.bpel.engine.BpelServerImpl.deploy(BpelServerImpl.java:739
)
	at
org.apache.ode.bpel.engine.BpelServerImpl.deploy(BpelServerImpl.java:649
)
	... 8 more
14:29:46,144 | ERROR | Thread-10  | OdeSUManager             |
rg.apache.ode.jbi.OdeSUManager   61 | Error deploying service unit
"CriminalRegisterOde".
14:29:46,855 | INFO  | Thread-10  | ServiceAssemblyLifeCycle |
ework.ServiceAssemblyLifeCycle  109 | Starting service assembly:
CriminalRegisterServiceAssembly
14:29:46,855 | INFO  | Thread-10  | ServiceUnitLifeCycle     |
framework.ServiceUnitLifeCycle   78 | Initializing service unit:
CriminalRegisterOde
14:29:46,855 | INFO  | Thread-10  | ServiceUnitLifeCycle     |
framework.ServiceUnitLifeCycle   78 | Initializing service unit:
CriminalRegisterHttp
14:29:46,855 | INFO  | Thread-10  | ServiceUnitLifeCycle     |
framework.ServiceUnitLifeCycle   97 | Starting service unit:
CriminalRegisterOde
14:29:46,855 | INFO  | Thread-10  | ServiceUnitLifeCycle     |
framework.ServiceUnitLifeCycle   97 | Starting service unit:
CriminalRegisterHttp
14:29:46,865 | INFO  | Thread-10  | jetty                    |
ervicemix.http.jetty.JCLLogger   80 | jetty-6.0.0rc4
14:29:46,865 | WARN  | Thread-10  | jetty                    |
ervicemix.http.jetty.JCLLogger   98 | failed SelectChannelConnector @
localhost:8192
14:29:46,865 | WARN  | Thread-10  | jetty                    |
ervicemix.http.jetty.JCLLogger   98 | failed Server@543937
14:29:46,895 | INFO  | Thread-10  | DeploymentService        |
bi.framework.DeploymentService  376 | Error in start
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
	<component-name>servicemix-http</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>start</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token/>
					<loc-message>Address already in
use: bind</loc-message>
	
<stack-trace><![CDATA[java.net.BindException: Address already in use:
bind
	at sun.nio.ch.Net.bind(Native Method)
	at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119
)
	at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector
.java:152)
	at
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:313)
	at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnec
tor.java:124)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at org.mortbay.jetty.Server.doStart(Server.java:217)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createServer(JettyC
ontextManager.java:326)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createContext(Jetty
ContextManager.java:143)
	at
org.apache.servicemix.http.processors.ConsumerProcessor.start(ConsumerPr
ocessor.java:111)
	at
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:351)
	at
org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:50)
	at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUni
tManager.java:149)
	at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUn
itLifeCycle.java:103)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:130)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
]]></stack-trace>
				</msg-loc-info>
			</exception-info>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:121)
	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:107)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:144)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
14:29:46,895 | ERROR | Thread-10  | AutoDeploymentService    |
ramework.AutoDeploymentService  308 | Failed to update Service Assembly:
CriminalRegisterServiceAssembly
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
	<component-name>servicemix-http</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>start</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token/>
					<loc-message>Address already in
use: bind</loc-message>
	
<stack-trace><![CDATA[java.net.BindException: Address already in use:
bind
	at sun.nio.ch.Net.bind(Native Method)
	at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119
)
	at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector
.java:152)
	at
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:313)
	at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnec
tor.java:124)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at org.mortbay.jetty.Server.doStart(Server.java:217)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createServer(JettyC
ontextManager.java:326)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createContext(Jetty
ContextManager.java:143)
	at
org.apache.servicemix.http.processors.ConsumerProcessor.start(ConsumerPr
ocessor.java:111)
	at
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:351)
	at
org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:50)
	at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUni
tManager.java:149)
	at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUn
itLifeCycle.java:103)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:130)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
]]></stack-trace>
				</msg-loc-info>
			</exception-info>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:121)
	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:107)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:144)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
14:29:46,905 | WARN  | Thread-10  | AutoDeploymentService    |
mework.AutoDeploymentService$2  596 | Directory: deploy: Automatic
install of D:\servicemix-3.0\husky\deploy\sa-criminalregister.zip failed
javax.jbi.management.DeploymentException: Failed to update Service
Assembly: CriminalRegisterServiceAssembly
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:309)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
	<component-name>servicemix-http</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>start</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token/>
					<loc-message>Address already in
use: bind</loc-message>
	
<stack-trace><![CDATA[java.net.BindException: Address already in use:
bind
	at sun.nio.ch.Net.bind(Native Method)
	at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119
)
	at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector
.java:152)
	at
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:313)
	at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnec
tor.java:124)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at org.mortbay.jetty.Server.doStart(Server.java:217)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createServer(JettyC
ontextManager.java:326)
	at
org.apache.servicemix.http.jetty.JettyContextManager.createContext(Jetty
ContextManager.java:143)
	at
org.apache.servicemix.http.processors.ConsumerProcessor.start(ConsumerPr
ocessor.java:111)
	at
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:351)
	at
org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:50)
	at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUni
tManager.java:149)
	at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUn
itLifeCycle.java:103)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:130)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDepl
oymentService.java:592)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)
	at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
]]></stack-trace>
				</msg-loc-info>
			</exception-info>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:121)
	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management
Support.java:107)
	at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:144)
	at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:297)
	... 4 more 


Can someone tell me what's wrong?

Regards, Matthias

Mime
View raw message