You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by David Booz <bo...@us.ibm.com> on 2009/10/01 15:21:49 UTC
strange contribution resolution error
Hi,
I'm on rev 820618
My testcase is complex and I'm trying to test an error case, not a working
case. Here's the top level composite:
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
targetNamespace=
"http://docs.oasis-open.org/ns/opencsa/scatests/200903"
xmlns:test=
"http://docs.oasis-open.org/ns/opencsa/scatests/200903"
name="TEST_JCA_3003">
<component name="TestClient">
<implementation.composite name="test:TestClient_0002"/>
<service name="TestInvocation">
<interface.wsdl interface=
"http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
<binding.ws/>
</service>
<reference name="reference1" target=
"TEST_JCA_3003Component1/Service1" />
<property name="testName">JCA_3003</property>
</component>
<component name="TEST_JCA_3003Component1">
<implementation.java class=
"org.oasisopen.sca.test.service1CallbackImpl"/>
<service name="Service1">
<interface.java interface="org.oasisopen.sca.test.Service1"/>
</service>
<reference name="reference1" target="TEST_JCA_3003Component2">
<interface.java interface=
"org.oasisopen.sca.test.Service3WithCallback"
callbackInterface=
"org.oasisopen.sca.test.Service3Callback"/>
</reference>
<property name="serviceName">service1</property>
</component>
<!-- Component which doesn't specify the fully qualified callback interface
name -->
<component name="TEST_JCA_3003Component2">
<implementation.java class="org.oasisopen.sca.test.service3Impl1"/>
<service name="Service3WithCallback">
<interface.java interface=
"org.oasisopen.sca.test.Service3WithCallback"
callbackInterface="Service3Callback"/>
</service>
<property name="serviceName">service3</property>
</component>
</composite>
There is an intentional error in here. Look at component
TEST_JCA_3003Component2, the callbackInterface on the service is not fully
qualified. The test case works fine when the callback interface is
properly configured.
This composite lives in a contribution called JCA_3003. It uses Java
artifacts from a contribution called JCA_General_POJO.
Here's the error I get:
Oct 1, 2009 9:05:44 AM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tuscany.apache.org
2009-10-01 09:05:45.528::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
Oct 1, 2009 9:05:47 AM
org.apache.tuscany.sca.endpoint.wrapper.EndpointRegistryWrapper start
INFO: EndpointRegistry found:
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl
Oct 1, 2009 9:05:49 AM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/C:/wscode/oasistests/TestCases/JCA_3003/target/JCA_3003.zip
Oct 1, 2009 9:05:49 AM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/C:/wscode/oasistests/TestCases/JCA_General_POJO/target/JCA_General_POJO.zip
Exception during startup:
org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
Processing composite
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3003: Found
class org.apache.tuscany.sca.monitor.Monitor, but interface was expected
Exception received during startup - detail:
org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
org.apache.tuscany.sca.contribution.processor.ContributionResolveException:
Processing composite
{http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3003: Found
class org.apache.tuscany.sca.monitor.Monitor, but interface was expected
Oct 1, 2009 9:05:49 AM org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
Any help is appreciated. Monitor is an internal Tuscany class, it's not
present in either of my contributions. Something seems to be screwed up in
the error reporting?
Thanks
Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093 or 8-295-6093
e-mail:booz@us.ibm.com
Re: strange contribution resolution error
Posted by Simon Laws <si...@googlemail.com>.
Yeah, I find the real killer is when you see that something has been
deleted. That usually causes problems for me.
Simon
Re: strange contribution resolution error
Posted by David Booz <bo...@us.ibm.com>.
Yep. That did it. Thanks. I need to remember to do that whenever I
upgrade my Tuscany build (which is what I did this AM to pick up another
fix).
Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093 or 8-295-6093
e-mail:booz@us.ibm.com
Simon Laws <si...@googlemail.com> wrote on 10/01/2009 11:05:38 AM:
> [image removed]
>
> Re: strange contribution resolution error
>
> Simon Laws
>
> to:
>
> user
>
> 10/01/2009 11:07 AM
>
> Please respond to user
>
> Sounds like a very strange error. Before we start to investigate can
> you do a "mvn clean install" to make sure everything is
> compiled/installed correctly.
>
> Regards
>
> Simon
Re: strange contribution resolution error
Posted by Simon Laws <si...@googlemail.com>.
Sounds like a very strange error. Before we start to investigate can
you do a "mvn clean install" to make sure everything is
compiled/installed correctly.
Regards
Simon