[
https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913088#action_12913088
]
antony commented on TUSCANY-3682:
---------------------------------
Yes. I tried that as well. If i place the service inside the component tag, it
is throwing the below error though i have annotated the interface with
@Remotable. Also tried by annotating the implemented class with @Remotable.
SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent] -
Component type service not found for component service (missing @Remotable
annotation?): Component = TestComponentService = TestService
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
TestComponent] - Component type service not found for component service
(missing @Remotable annotation?): Component = TestComponentService = TestService
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:173)
> SCA RMI registration
> --------------------
>
> Key: TUSCANY-3682
> URL: https://issues.apache.org/jira/browse/TUSCANY-3682
> Project: Tuscany
> Issue Type: Test
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-2.0-M5
> Environment: JSF+JAVA 6+Tuscany SCA 2.0 SNAPSHOT
> Reporter: antony
> Fix For: Java-SCA-2.0-M5
>
>
> I am trying to register the sca service as RMI service. But it is not getting
> exposed as expected. If i do the same using Spring Implementation, the
> service is exposed as RMI service and i am able to access it. Please let me
> know what is going wrong here...
> I am using SCA 2.0 SNAPSHOT.
> JAVA IMPLEMENTATION configuration
> -------------------------------------------------------------
> <service name="TestService" promote="TestComponent">
> <interface.java interface="test.interface" />
> <t:binding.rmi host="localhost" port="8099"
> serviceName="TestRMIService"/>
> </service>
>
> <component name="TestComponent">
> <implementation.java class="test.Impl"/>
> </component>
> SPRING IMPLEMENTATION configuration
> ------------------------------------------------------------
> <component name="TestComponent">
> <implementation.spring location="/WEB-INF/applicationContext.xml"/>
> <service name="TestServices">
> <interface.java interface="test.interface"/>
> <t:binding.rmi host="localhost" port="8099"
> serviceName="TestRMIService"/>
> </service>
> </component>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.