Thanks Simon. Got it.
On Fri, Apr 15, 2011 at 6:07 PM, Simon Nash <[email protected]> wrote:
> Monosij Dutta-Roy wrote:
>
>>
>> I am still having some issues integrating the additional contributions
>> into the webapp. I think the definitions are still not good as I get the
>> errors on mvn jetty:run
>> As I mention below mvn install both work fine.
>> The war is also enclosed.
>>
>> Thank you.
>> ----------------------
>> Below follows the issues:
>>
>> The Web-App composite: qmAppSCA01.composite has a:
>> <reference name="QueryController"
>> target="QueryControllerComponent/QueryController">
>>
>> as in:
>>
>> <component name="QueryServiceComponent">
>> <implementation.java class="org.rd.qm.impl.QueryServiceImpl"/>
>> <service name="QueryService">
>> <interface.java interface="org.rd.qm.QueryService" />
>> </service>
>> <reference name="QueryController"
>> target="QueryControllerComponent/QueryController">
>> <interface.java interface="org.rd.qm.QueryController" />
>> </reference>
>> </component>
>> ----------------------
>> The QueryController composite: qmController.composite declares the service
>> as:
>> <component name="QueryControllerComponent">
>> <implementation.java class="org.rd.qm.impl.QueryControllerImpl"/>
>> <service name="QueryController">
>> <interface.java interface="org.rd.qm.QueryController"/>
>> </service>
>> </component>
>>
>> where the QueryControllerImpl class implements the QueryController service
>> from QueryController interface as:
>> import org.oasisopen.sca.annotation.Service;
>> import org.rd.qm.QueryController;
>>
>> @Service(QueryController.class)
>> public class QueryControllerImpl implements QueryController {... }
>> ----------------------
>>
>> mvn package / install all work fine.
>> On mvn jetty:run I get the error:
>>
>> SEVERE: [ASM50008] Component type reference not found for component
>> reference: Component = QueryServiceComponent Reference = QueryController
>> Apr 15, 2011 1:11:25 PM
>> org.apache.tuscany.sca.builder.impl.EndpointReferenceBuilderImpl [Composite:
>> {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
>> QueryServiceComponent] (ReferenceWithoutTargets)
>> SEVERE: [ASM60033] No targets for reference: Composite = {
>> http://docs.oasis-open.org/ns/opencsa/sca/200912} Reference =
>> queryController
>> Apr 15, 2011 1:11:25 PM
>> org.apache.tuscany.sca.builder.impl.EndpointReferenceBuilderImpl [Composite:
>> {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
>> QueryServiceComponent] (ReferenceWithoutTargets)
>> SEVERE: [ASM60033] No targets for reference: Composite = {
>> http://docs.oasis-open.org/ns/opencsa/sca/200912} Reference =
>> queryController
>> Apr 15, 2011 1:11:25 PM
>> org.apache.tuscany.sca.host.webapp.TuscanyContextListener contextInitialized
>> SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Composite: {
>> http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
>> QueryServiceComponent] - [ASM50008] Component type reference not found for
>> component reference: Component = QueryServiceComponent Reference =
>> QueryController
>> java.lang.IllegalStateException:
>> org.oasisopen.sca.ServiceRuntimeException: [Composite: {
>> http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
>> QueryServiceComponent] - [ASM50008] Component type reference not found for
>> component reference: Component = QueryServiceComponent Reference =
>> QueryController
>> at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
>> at
>> org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
>> at
>> org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
>> at
>> org.apache.tuscany.sca.host.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:39)
>> ----------------------
>> ----------------------
>> ----------------------
>> I have similar issues going from the qmController->QueryExecutor to the
>> domainBCA objects: Person and PhysicalLocation.
>>
>> For example:
>> The QueryController composite: qmController.composite declares the
>> QueryExecutor service as:
>> <component name="QueryExecutorComponent">
>> <implementation.java class="org.rd.qm.impl.QueryExecutorImpl"/>
>> <service name="QueryExecutor">
>> <interface.java interface="org.rd.qm.QueryExecutor" />
>> </service>
>> <reference name="Person" target="PatientComponent/Person">
>> <interface.java interface="com.bca.pearl.domain.Person"/>
>> </reference>
>> </component>
>> ----------------------
>> and domainBCA composite declares PatientComponent as:
>>
>> <component name="PatientComponent">
>> <implementation.java
>> class="com.bca.pearl.domain.impl.PatientImpl"/>
>> <service name="Person">
>> <interface.java interface="com.bca.pearl.domain.Person" />
>> </service>
>> </component>
>> ----------------------
>> I get same errors at QueryExecutor <> Person. I am not understanding where
>> i am missing it.
>>
>> I have tried taking out the service references and just deploying all the
>> composites into the sca-contributions folder and starting jetty and jetty
>> starts fine.
>>
>> So just wondering also why mvn install passes if component definitions are
>> not correct.
>>
>> Of course I am not at accessing them yet - but I am thinking once past
>> this hurdle I should be good? ;-).
>>
>> Thanks again.
>>
>> monosij
>>
> >
> It looks like you're using the wrong reference name in your component
> definitions. The correct name is queryController, not QueryController.
>
> Simon
>
>