You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Malisetti, Ramanjaneyulu" <Ra...@ca.com> on 2010/01/18 07:07:46 UTC
exposing service on multiple bindings
Hi,
I want to bind service (JMSConnectorService) on JMS and Web
services. I specified composite like below. But, it is not working.
Throwing exception like "Multiple bindings with the same name for a
service: Service = JMSConnectorService Binding name =
JMSConnectorService" . What is wrong with this composite? Could you
suggest correct one?
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
targetNamespace="http://itest"
name="ExternalServiceComposite">
<component name="JMSConnectorService">
<implementation.java
class="org.apache.tuscany.sca.binding.jms.JMSConnectorServiceImpl"/>
<service name="JMSConnectorService">
<binding.jms
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory" jndiURL="tcp://localhost:61616">
<destination jndiName="DestQueueA" create="always"/>
<response>
<destination jndiName="RespQueueA" create="always"/>
</response>
</binding.jms>
<binding.ws/>
</service>
</component>
</composite>
Regards
Raman
Re: exposing service on multiple bindings
Posted by Simon Laws <si...@googlemail.com>.
No problem. Glad to hear it started behaving.
Simon
RE: exposing service on multiple bindings
Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Simon, yes, it works. Sorry it was my stupidity.
Thanks a lot.
Regards
Raman
-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Monday, 18 January 2010 8:27 PM
To: user@tuscany.apache.org
Subject: Re: exposing service on multiple bindings
Hi
The problem may be because the dependency I suggested referred to the
2.0-SNAPSHOT version of the web service feature. Looking back at your
previous post your using 2.0-M4 so we need to get the right version in
there. Can you try...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-feature-webservice</artifactId>
<type>pom</type>
<version>2.0-M4</version>
</dependency>
I just tried adding a ws binding to my local copy of the test. The
composite file is...
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
targetNamespace="http://itest"
name="ExternalServiceComposite">
<component name="HelloWorldService">
<implementation.java
class="org.apache.tuscany.sca.binding.jms.HelloWorldServiceImpl"/>
<service name="HelloWorldService">
<binding.jms name="myJMSBinding"
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory"
jndiURL="tcp://localhost:61616">
<destination jndiName="DestQueueA" create="always"/>
<response>
<destination jndiName="RespQueueA" create="always"/>
</response>
</binding.jms>
<binding.ws name="myWSBInding"/>
</service>
</component>
</composite>
When run mvn I see the following test output...
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.binding.jms.ExternalBrokerTestCase
- Using Persistence Adapter: MemoryPersistenceAdapter
- ActiveMQ 5.2.0 JMS Message Broker (localhost) is starting
- For help or more information please see: http://activemq.apache.org/
- Listening for connections at: tcp://L3AW203:61616
- Connector tcp://L3AW203:61616 Started
- ActiveMQ JMS Message Broker (localhost,
ID:L3AW203-2716-1263826192218-0:0) sta
rted
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tu
scany.apache.org
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContri
butions
INFO: Loading contribution:
file:/D:/sca-java-2.x/itest/jms/externalBroker/targe
t/classes/
18-Jan-2010 14:49:54
org.apache.tuscany.sca.binding.jms.host.DefaultJMSServiceLi
stener registerListerner
INFO: JMS service 'HelloWorldService' listening on destination
DestQueueA
18-Jan-2010 14:49:54
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@33468166)Endpoint: URI =
HelloWorldService#service-bindi
ng(HelloWorldService/myJMSBinding)
2010-01-18 14:49:54.765::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
- No JMS connection factories are defined.Will not listen for any JMS
messages
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: jetty-6.1.19
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:8080
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer
addServletMap
ping
INFO: Added Servlet mapping:
http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@1340668)Endpoint: URI =
HelloWorldService#service-bindin
g(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@18686163)Endpoint: URI =
HelloWorldClient#service-bindin
g(HelloWorldService/HelloWorldService)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@33468166)Endpoint: URI =
HelloWorldService#service-bi
nding(HelloWorldService/myJMSBinding)
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@1340668)Endpoint: URI =
HelloWorldService#service-bin
ding(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer
removeServlet
Mapping
INFO: Removed Servlet mapping:
/HelloWorldService/HelloWorldService/myWSBInding
18-Jan-2010 14:49:55
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@18686163)Endpoint: URI =
HelloWorldClient#service-bin
ding(HelloWorldService/HelloWorldService)
- ActiveMQ Message Broker (localhost, ID:L3AW203-2716-1263826192218-0:0)
is shut
ting down
- Connector tcp://L3AW203:61616 Stopped
- ActiveMQ JMS Message Broker (localhost,
ID:L3AW203-2716-1263826192218-0:0) sto
pped
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.5 sec
The important line is....
INFO: Added Servlet mapping:
http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding
This is the web service being exposed. Haven't actually tried calling
the web service but this looks like it's doing the right thing so far.
Regards
Simon
Re: exposing service on multiple bindings
Posted by Simon Laws <si...@googlemail.com>.
Hi
The problem may be because the dependency I suggested referred to the
2.0-SNAPSHOT version of the web service feature. Looking back at your
previous post your using 2.0-M4 so we need to get the right version in
there. Can you try...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-feature-webservice</artifactId>
<type>pom</type>
<version>2.0-M4</version>
</dependency>
I just tried adding a ws binding to my local copy of the test. The
composite file is...
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
targetNamespace="http://itest"
name="ExternalServiceComposite">
<component name="HelloWorldService">
<implementation.java
class="org.apache.tuscany.sca.binding.jms.HelloWorldServiceImpl"/>
<service name="HelloWorldService">
<binding.jms name="myJMSBinding"
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"
jndiURL="tcp://localhost:61616">
<destination jndiName="DestQueueA" create="always"/>
<response>
<destination jndiName="RespQueueA" create="always"/>
</response>
</binding.jms>
<binding.ws name="myWSBInding"/>
</service>
</component>
</composite>
When run mvn I see the following test output...
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.binding.jms.ExternalBrokerTestCase
- Using Persistence Adapter: MemoryPersistenceAdapter
- ActiveMQ 5.2.0 JMS Message Broker (localhost) is starting
- For help or more information please see: http://activemq.apache.org/
- Listening for connections at: tcp://L3AW203:61616
- Connector tcp://L3AW203:61616 Started
- ActiveMQ JMS Message Broker (localhost, ID:L3AW203-2716-1263826192218-0:0) sta
rted
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 domain: tu
scany.apache.org
18-Jan-2010 14:49:52 org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContri
butions
INFO: Loading contribution: file:/D:/sca-java-2.x/itest/jms/externalBroker/targe
t/classes/
18-Jan-2010 14:49:54 org.apache.tuscany.sca.binding.jms.host.DefaultJMSServiceLi
stener registerListerner
INFO: JMS service 'HelloWorldService' listening on destination DestQueueA
18-Jan-2010 14:49:54 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@33468166)Endpoint: URI = HelloWorldService#service-bindi
ng(HelloWorldService/myJMSBinding)
2010-01-18 14:49:54.765::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
- No JMS connection factories are defined.Will not listen for any JMS messages
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: jetty-6.1.19
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:8080
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer addServletMap
ping
INFO: Added Servlet mapping: http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding
18-Jan-2010 14:49:55 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@1340668)Endpoint: URI = HelloWorldService#service-bindin
g(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl addEndpoint
INFO: Add endpoint - (@18686163)Endpoint: URI = HelloWorldClient#service-bindin
g(HelloWorldService/HelloWorldService)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
18-Jan-2010 14:49:55 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@33468166)Endpoint: URI = HelloWorldService#service-bi
nding(HelloWorldService/myJMSBinding)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@1340668)Endpoint: URI = HelloWorldService#service-bin
ding(HelloWorldService/myWSBInding)
18-Jan-2010 14:49:55 org.apache.tuscany.sca.http.jetty.JettyServer removeServlet
Mapping
INFO: Removed Servlet mapping: /HelloWorldService/HelloWorldService/myWSBInding
18-Jan-2010 14:49:55 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
mpl endpointRemoved
INFO: Remove endpoint - (@18686163)Endpoint: URI = HelloWorldClient#service-bin
ding(HelloWorldService/HelloWorldService)
- ActiveMQ Message Broker (localhost, ID:L3AW203-2716-1263826192218-0:0) is shut
ting down
- Connector tcp://L3AW203:61616 Stopped
- ActiveMQ JMS Message Broker (localhost, ID:L3AW203-2716-1263826192218-0:0) sto
pped
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.5 sec
The important line is....
INFO: Added Servlet mapping: http://L3AW203:8080/HelloWorldService/HelloWorldSer
vice/myWSBInding
This is the web service being exposed. Haven't actually tried calling
the web service but this looks like it's doing the right thing so far.
Regards
Simon
RE: exposing service on multiple bindings
Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Nope, I am getting different error. If I revert below change and
ws-binding, testcase works as used to be.
-------------------------------------------------------
Running org.apache.tuscany.sca.binding.jms.ExternalBrokerTestCase
- Using Persistence Adapter: MemoryPersistenceAdapter
- ActiveMQ 5.2.0 JMS Message Broker (localhost) is starting
- For help or more information please see: http://activemq.apache.org/
- Listening for connections at: tcp://malra09-xp1:61616
- Connector tcp://malra09-xp1:61616 Started
- ActiveMQ JMS Message Broker (localhost,
ID:malra09-xp1-4425-1263817895770-0:0)
started
Jan 18, 2010 6:01:36 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tu
scany.apache.org
Jan 18, 2010 6:01:36 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadCon
tributions
INFO: Loading contribution:
file:/C:/tuscany-sca-2.0-M4-src/itest/jms/externalBr
oker/target/classes/
- ActiveMQ Message Broker (localhost,
ID:malra09-xp1-4425-1263817895770-0:0) is
shutting down
- Connector tcp://malra09-xp1:61616 Stopped
- ActiveMQ JMS Message Broker (localhost,
ID:malra09-xp1-4425-1263817895770-0:0)
stopped
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 23.64
sec <<< FA
ILURE!
testHelloWorldCreate(org.apache.tuscany.sca.binding.jms.ExternalBrokerTe
stCase)
Time elapsed: 23.609 sec <<< ERROR!
java.lang.IllegalStateException: java.lang.AbstractMethodError
at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176)
at
org.apache.tuscany.sca.binding.jms.ExternalBrokerTestCase.init(Extern
alBrokerTestCase.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
lable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
thod.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:73)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:46)
at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at
org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:1009)
Caused by: java.lang.AbstractMethodError
at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$
LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderF
actoryEx
tensionPoint.java:246)
at
org.apache.tuscany.sca.binding.sca.provider.RuntimeSCAServiceBindingP
rovider.<init>(RuntimeSCAServiceBindingProvider.java:96)
at
org.apache.tuscany.sca.binding.sca.provider.RuntimeSCABindingProvider
Factory.createServiceBindingProvider(RuntimeSCABindingProviderFactory.ja
va:53)
at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$
LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderF
actoryEx
tensionPoint.java:246)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.addS
erviceBindingProvider(CompositeActivatorImpl.java:286)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti
vate(CompositeActivatorImpl.java:262)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti
vateComponent(CompositeActivatorImpl.java:148)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti
vate(CompositeActivatorImpl.java:109)
at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:145)
... 28 more
Results :
Tests in error:
testHelloWorldCreate(org.apache.tuscany.sca.binding.jms.ExternalBrokerTe
stCase
)
Regards
Raman
-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Monday, 18 January 2010 3:40 PM
To: user@tuscany.apache.org
Subject: Re: exposing service on multiple bindings
Ok, try adding the following dependency...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-feature-webservice</artifactId>
<type>pom</type>
<version>2.0-SNAPSHOT</version>
</dependency>
Alongside the JMS dependency in the pom.xml file. The JMS dependency
looks like...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-binding-jms-runtime</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
Regards
Simon
Re: exposing service on multiple bindings
Posted by Simon Laws <si...@googlemail.com>.
Ok, try adding the following dependency...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-feature-webservice</artifactId>
<type>pom</type>
<version>2.0-SNAPSHOT</version>
</dependency>
Alongside the JMS dependency in the pom.xml file. The JMS dependency
looks like...
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-binding-jms-runtime</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
Regards
Simon
RE: exposing service on multiple bindings
Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Thanks Simon. Yes I am running from JUnit testcase. I am playing with
tuscany-sca-2.0-M4-src\itest\jms\externalBroker.
Regards
Raman
-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Monday, 18 January 2010 2:53 PM
To: user@tuscany.apache.org
Subject: Re: exposing service on multiple bindings
It looks like the runtime can't find the binding-ws-axis2-runtime
module. What mechanism are you using to start the runtime? From the
stack it looks like you're using a JUnit test case
(JMSConnectorTestCase). Are you running this from Maven? If so you
need to update the pom.xml file to include a dependency on the web
services binding. I can look up details for you if this is what you're
doing.
Regards
Simon
Re: exposing service on multiple bindings
Posted by Simon Laws <si...@googlemail.com>.
It looks like the runtime can't find the binding-ws-axis2-runtime
module. What mechanism are you using to start the runtime? From the
stack it looks like you're using a JUnit test case
(JMSConnectorTestCase). Are you running this from Maven? If so you
need to update the pom.xml file to include a dependency on the web
services binding. I can look up details for you if this is what you're
doing.
Regards
Simon
RE: exposing service on multiple bindings
Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
Now, it is giving the following error... what does it mean? Did I miss
anything in configuration.
java.lang.IllegalStateException:
org.apache.tuscany.sca.runtime.ActivationException:
org.apache.tuscany.sca.runtime.ActivationException:
java.lang.IllegalStateException: Provider factory not found for binding:
{http://docs.oasis-open.org/ns/opencsa/sca/200903}binding.ws
at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176)
at
org.apache.tuscany.sca.binding.jms.JMSConnectorTestCase.init(JMSConnecto
rTestCase.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet
hod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab
le.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho
d.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav
a:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:73)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner
.java:46)
at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at
org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at
org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav
a:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
tReference.java:45)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
Caused by: org.apache.tuscany.sca.runtime.ActivationException:
org.apache.tuscany.sca.runtime.ActivationException:
java.lang.IllegalStateException: Provider factory not found for binding:
{http://docs.oasis-open.org/ns/opencsa/sca/200903}binding.ws
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activat
e(CompositeActivatorImpl.java:112)
at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:145)
... 24 more
Caused by: org.apache.tuscany.sca.runtime.ActivationException:
java.lang.IllegalStateException: Provider factory not found for binding:
{http://docs.oasis-open.org/ns/opencsa/sca/200903}binding.ws
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activat
eComponent(CompositeActivatorImpl.java:157)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activat
e(CompositeActivatorImpl.java:109)
... 25 more
Caused by: java.lang.IllegalStateException: Provider factory not found
for binding:
{http://docs.oasis-open.org/ns/opencsa/sca/200903}binding.ws
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.addServ
iceBindingProvider(CompositeActivatorImpl.java:299)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activat
e(CompositeActivatorImpl.java:262)
at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.activat
eComponent(CompositeActivatorImpl.java:148)
... 26 more
Regards
Raman
-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Monday, 18 January 2010 1:57 PM
To: user@tuscany.apache.org
Subject: Re: exposing service on multiple bindings
Hi.
You can give names to bindings so that each binding in a reference or
service can be individually identified. Try adding a name attribute to
each binding, for example,
<binding.jms name="myJMSBinding" >... </binding.jms>
<binding.ws name="myWSBinding" />
See if that helps.
Regards
Simon
Re: exposing service on multiple bindings
Posted by Simon Laws <si...@googlemail.com>.
Hi.
You can give names to bindings so that each binding in a reference or
service can be individually identified. Try adding a name attribute to
each binding, for example,
<binding.jms name="myJMSBinding" >... </binding.jms>
<binding.ws name="myWSBinding" />
See if that helps.
Regards
Simon