ant elder wrote:
On Tue, Apr 12, 2011 at 6:02 PM, Simon Nash <[email protected]> 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


+1.  The current message is:
Business interface org.rd.qm.impl.QueryServiceImpl is not compatible with 
org.rd.qm.QueryService

It would be clearer to say something like:
Reference interface org.rd.qm.impl.QueryServiceImpl is not compatible with 
service interface org.rd.qm.QueryService

  Simon





Reply via email to