You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Andrew Schofield (JIRA)" <tu...@ws.apache.org> on 2007/01/24 15:51:49 UTC
[jira] Created: (TUSCANY-1075) Composite without an implementation
causes BuilderConfigException
Composite without an implementation causes BuilderConfigException
-----------------------------------------------------------------
Key: TUSCANY-1075
URL: https://issues.apache.org/jira/browse/TUSCANY-1075
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core
Affects Versions: Java-M2
Environment: Windows XP SP2, Tuscany M2 distribution
Reporter: Andrew Schofield
Priority: Minor
Fix For: Java-SCA-M3
I've built the webapp/helloworldws sample and deployed it on Tomcat. I've also managed to invoke it using the standalone/helloworldwsclient sample. But, I was surprised to find that there was a (trivial) implementation in the composite of the client (HelloWorldServiceComponent) which just delegates the method calls to the back-end service. I'd really expected to write SCDL for a composite which wired a service directly to a reference with a Web-services binding. This would give a way of connecting an SCA client to an existing Web service without any implementation coding.
Here's the SCDL that I tried:
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT " name="helloworldwsclient">
<dbsdo:import.sdo xmlns:dbsdo=" http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2" location="wsdl/helloworld.wsdl"/>
<service name="HelloWorldServiceComponent">
<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance " interface="http://helloworld#wsdl.interface(HelloWorld) " wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
<reference name="helloWorldService">HelloWorldService</reference>
</service>
<reference name="HelloWorldService">
<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance " interface="http://helloworld#wsdl.interface(HelloWorld) " wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
<binding.ws endpoint=" http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)" location="wsdl/helloworld.wsdl" />
</reference>
</composite>
And here's the exception that I got (using Tuscany Java M2):
Exception in thread "main" org.apache.tuscany.spi.builder.BuilderConfigException: No interceptor for operation [getGreetings]
at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:336)
at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:278)
at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:389)
at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:163)
at org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare(CompositeComponentExtension.java:460)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:86)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.standalone.host.StandaloneRuntimeImpl.initialize(StandaloneRuntimeImpl.java:87)
at org.apache.tuscany.launcher.MainLauncherBooter.main(MainLauncherBooter.java:83)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Closed: (TUSCANY-1075) Composite without an implementation
causes BuilderConfigException
Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Marino closed TUSCANY-1075.
-------------------------------
Resolution: Won't Fix
This is no longer valid with SCA 1.0 promotes syntax
> Composite without an implementation causes BuilderConfigException
> -----------------------------------------------------------------
>
> Key: TUSCANY-1075
> URL: https://issues.apache.org/jira/browse/TUSCANY-1075
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core
> Affects Versions: Java-M2
> Environment: Windows XP SP2, Tuscany M2 distribution
> Reporter: Andrew Schofield
> Priority: Minor
> Fix For: Java-SCA-M3
>
>
> I've built the webapp/helloworldws sample and deployed it on Tomcat. I've also managed to invoke it using the standalone/helloworldwsclient sample. But, I was surprised to find that there was a (trivial) implementation in the composite of the client (HelloWorldServiceComponent) which just delegates the method calls to the back-end service. I'd really expected to write SCDL for a composite which wired a service directly to a reference with a Web-services binding. This would give a way of connecting an SCA client to an existing Web service without any implementation coding.
>
> Here's the SCDL that I tried:
>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT " name="helloworldwsclient">
> <dbsdo:import.sdo xmlns:dbsdo=" http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2" location="wsdl/helloworld.wsdl"/>
> <service name="HelloWorldServiceComponent">
> <interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance " interface="http://helloworld#wsdl.interface(HelloWorld) " wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
> <reference name="helloWorldService">HelloWorldService</reference>
> </service>
> <reference name="HelloWorldService">
> <interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance " interface="http://helloworld#wsdl.interface(HelloWorld) " wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
> <binding.ws endpoint=" http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)" location="wsdl/helloworld.wsdl" />
> </reference>
> </composite>
>
> And here's the exception that I got (using Tuscany Java M2):
>
> Exception in thread "main" org.apache.tuscany.spi.builder.BuilderConfigException: No interceptor for operation [getGreetings]
> at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:336)
> at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:278)
> at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:389)
> at org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java:163)
> at org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare(CompositeComponentExtension.java:460)
> at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:86)
> at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
> at org.apache.tuscany.runtime.standalone.host.StandaloneRuntimeImpl.initialize(StandaloneRuntimeImpl.java:87)
> at org.apache.tuscany.launcher.MainLauncherBooter.main(MainLauncherBooter.java:83)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org