ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EXTERNAL Schmid Markus (Diplomand; CI/TMP)" <external.Markus.Schm...@de.bosch.com>
Subject AW: some Question - calling service defined in xbean.xml by bpel
Date Fri, 14 Dec 2007 10:02:18 GMT
Hi,

thanks for the answer.
I did some theory and included it in my current project but I am not
able to get this running. From my Service I invoke a Service with it's
own bpel and from here I want to call my archiver.

I added an xbean.xml and a corresponding entry in my jbi.xml
I added in my wsdl an additional porttype and an additional
partnerlinktype
In the bpel I added a partnerlink and in the deploy.xml a new invoke for
the partnerlink.

My eclipse is now telling me in the bpel that
"..partnerLinkType >does not have a role "messageArchiver"
although I did this according to my previous (working) Tryout.
If I deploy this I get an error, see error below.
Here my partnerlink RegPartnerLink and ist role "Provider" is identified
as the source of the error, but if I remove my additional parts all is
working fine.
I tried all sorts of namespace-variants to try to figure this out but
couldn't get through.

Can someone please tell me, what I did wrong?
I Added my questionable codefragments at the end of the post
The partnerlink is currently not used, because I wanted to keep the
number of errors small

ERROR:
--------------
10:00:21,671 | ERROR | Timer-5    | BpelC                    |
apache.ode.bpel.compiler.BpelC  346 |
file:/C:/Program%20Files/apache-servicemix/bin/data/smx/service-assembli
es/Simulation-SA/version_1/sus/OdeBpelEngine/anmeldung_bpel_su/anmeldung
_bpel_su.bpel:27: error: [UndeclaredRole] Attempt to reference
undeclared role "Provider" for partnerLink
"{urn:/registrierung_bpel_su.wsdl}RegPartnerLinkType".
10:00:21,687 | ERROR | Timer-5    | BpelC                    |
apache.ode.bpel.compiler.BpelC  346 | null:88: error:
[UndeclaredPartnerLink] Attempt to reference undeclared partner link
"RegPartnerLink".
10:00:21,703 | ERROR | Timer-5    | ProcessStoreImpl         |
che.ode.store.ProcessStoreImpl  168 | Deploy failed; error:
[CompilationErrors] Compilation completed with 2 error(s):
	
file:/C:/Program%20Files/apache-servicemix/bin/data/smx/service-assembli
es/Simulation-SA/version_1/sus/OdeBpelEngine/anmeldung_bpel_su/anmeldung
_bpel_su.bpel:27: error: [UndeclaredRole] Attempt to reference
undeclared role "Provider" for partnerLink
"{urn:/registrierung_bpel_su.wsdl}RegPartnerLinkType".
	null:88: error: [UndeclaredPartnerLink] Attempt to reference
undeclared partner link "RegPartnerLink".

org.apache.ode.bpel.compiler.api.CompilationException: error:
[CompilationErrors] Compilation completed with 2 error(s):
	
file:/C:/Program%20Files/apache-servicemix/bin/data/smx/service-assembli
es/Simulation-SA/version_1/sus/OdeBpelEngine/anmeldung_bpel_su/anmeldung
_bpel_su.bpel:27: error: [UndeclaredRole] Attempt to reference
undeclared role "Provider" for partnerLink
"{urn:/registrierung_bpel_su.wsdl}RegPartnerLinkType".
	null:88: error: [UndeclaredPartnerLink] Attempt to reference
undeclared partner link "RegPartnerLink".

	at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:726)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
	at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
	at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:16
1)
	at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:12
5)
	at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
	at
org.apache.ode.jbi.OdeServiceUnit.deploy(OdeServiceUnit.java:62)
	at org.apache.ode.jbi.OdeSUManager.deploy(OdeSUManager.java:60)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem
bly(DeploymentService.java:527)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:335)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto
ry(AutoDeploymentService.java:646)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut
oDeploymentService.java:62)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl
oymentService.java:609)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)
...

XBean
------------
<beans xmlns:file="http://servicemix.apache.org/file/1.0"
       xmlns:ma="urn:/registrierung_bpel_su.bpel">
<file:sender service="ma:messageArchiver" 
             endpoint="archiver"
             directory="C:\\schmid\\Projekte\\Archiv\\Nachrichtenlog" />
</beans>

WSDL
------------
    <portType name="RegPortType">
        <operation name="RegOperation">
            <input message="tns:RegMessageRequest"/>
            <output message="tns:RegMessageResponse"/>
        </operation>
    </portType>
    
    <portType name="FilePortType">
        <operation name="FileOperation">
            <input message="tns:RegMessageRequest"/>
        </operation>
    </portType>
    
    <plnk:partnerLinkType name="RegPartnerLinkType">
        <plnk:role name="Provider" portType="tns:RegPortType"/>
    </plnk:partnerLinkType>

    <plnk:partnerLinkType name="FilePartnerLinkType">
        <plnk:role name="messageArchiver" portType="tns:FilePortType"/>
    </plnk:partnerLinkType>
</definitions>


BPEL
------------
    <partnerLinks>
        <partnerLink name="RegPartnerLink"
                partnerLinkType="regns:RegPartnerLinkType"
                myRole="Provider" />
        <partnerLink name="FilePartnerLink"
                partnerLinkType="regns:FilePartnerLinkType"
                partnerRole="tns:messageArchiver" />                
    </partnerLinks>

Deploy
------------
	<process name="procns:RegProzess">
		<active>true</active>
		<provide partnerLink="RegPartnerLink">
			<service name="regns:RegService"
port="RegPort"/>
		</provide>
		<invoke partnerLink="FilePartnerLink">
			<service name="messageArchiver"
port="archiver"/>
		</invoke>		
	</process>

Mime
View raw message