[
https://issues.apache.org/jira/browse/TUSCANY-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522141
]
Florian Rosenberg commented on TUSCANY-1560:
--------------------------------------------
I had the same issue as stated above. The first one was a warning as shown
below:
--------------------------------------------------------------
Aug 22, 2007 12:17:38 PM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem
WARNING: [WARNING] No implementation for component: FeedAggregatorComponent
null
--------------------------------------------------------------
The error was in definition of the
org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor file. The
contents of this file is shown below:
com.ibm.sca.implementation.splice.SpliceArtifactProcessor;type=http://www.osoa.org/xmlns/sca/1.0#implementation.splice,model=com.ibm.sca.implementation.splice.SpliceImplementation
but actually the "type=" is now "qname=".
The second exception (show below) can be either a result of the warning above
or a change in the runtime behavior as state by Luciano on the mailing list.
So if you have a getService("ABC") in your client you need to make sure that
the target component has only one service, otherwise you should use
getService("ABC/ServiceName").
--------------------------------------------------------------
Exception in thread "main" org.osoa.sca.ServiceRuntimeException: The component
doesn't have exactly one service
at
org.apache.tuscany.sca.core.component.ComponentContextImpl.createSelfReference(ComponentContextImpl.java:135)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getServiceReference(DefaultSCADomain.java:377)
at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getService(DefaultSCADomain.java:321)
at
com.ibm.sca.implementation.splice.SpliceScaTester.main(SpliceScaTester.java:17)
--------------------------------------------------------------
> A component with multiple services does not work.
> -------------------------------------------------
>
> Key: TUSCANY-1560
> URL: https://issues.apache.org/jira/browse/TUSCANY-1560
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Environment: windows
> Reporter: Zhenghui Lee
> Priority: Critical
> Fix For: Java-SCA-0.99
>
>
> In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line
> 130 :
> if (regularServices.size() != 1) {
> throw new ServiceRuntimeException("The component doesn't have
> exactly one service");
> }
> multiple services per component will be failed by above checking.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]