tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ant elder <ant.el...@gmail.com>
Subject Re: regards my earlier questions on webapp with multiple composites / components
Date Tue, 12 Apr 2011 18:02:42 GMT
On Tue, Apr 12, 2011 at 6:02 PM, Simon Nash <nash@apache.org> wrote:
> Monosij Dutta-Roy wrote:
>>
>> hi Simon -
>> Thanks for your clarifications. I will try to build upon it.
>>
>> Also I had tried the @Service(QueryService.class) you mentioned and tried
>> it again but I still get the same exception.
>> I did a clean before deploy as well.
>>
>> I am attaching the composite and the interface and the class - just in
>> case I missed anything - but its pretty much same as HelloWorld example
>> webapp with the QuerySevice interface and classes and query.jsp
>>
>> I even tried variation the target from the jsp.
>>        <!--reference name="service"
>> target="QueryServiceComponent/QueryService"/-->
>>        <reference name="service" target="QueryServiceComponent"/>
>>
>> And am attaching the POM as well.
>>
>> Thanks Simon.
>>
> The problem is in the query.jsp file.  You need to change the line
>
> <sca:reference name="service" type="org.rd.qm.impl.QueryServiceImpl" />
>
> to
>
> <sca:reference name="service" type="org.rd.qm.QueryService" />
>

I wonder if Tuscany should have given a better error message for that,
the SCA JEE spec doesn't say much about the value of the type
attribute but i'm not sure a using non-interface class makes much
sense so Tuscany could have said that.

   ...ant

Mime
View raw message