On Fri, Sep 2, 2011 at 7:34 PM, Michael Vorburger <[email protected]> wrote: > Hello Scott, > > On Tue, Aug 30, 2011 at 4:03 PM, Scott Kurz <[email protected]> wrote: > >>> It looks like it doesn't know that DataObject means SDO. It maybe that >>> the SDO data binding it not fully enabled for some reason. I'll give >>> it a try here an see if I get the same result. > > Any luck? > >> I'm not even looking at your test app, but I can say that this JIRA >> https://issues.apache.org/jira/browse/TUSCANY-3910 >> will give a similar symptom. >> >> A workaround is to add the @RequestWrapper/@ResponseWrapper annotations with >> ...className=commonj.sdo.DataObject". > > I've just tried that (to be specific: added a > @RequestWrapper(className="commonj.sdo.DataObject") & > @ResponseWrapper(className="commonj.sdo.DataObject") on the String > sayHello(DataObject name); method of my Helloworld interface), but > that only instead of the earlier exception leads to a > java.lang.ClassCastException: > org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to > commonj.sdo.DataObject at > org.apache.tuscany.sca.databinding.sdo2om.DataObject2OMElement.transform(DataObject2OMElement.java:44) > > Cheers, > Michael > _______________________ > Michael Vorburger > http://www.vorburger.ch >
Hi Michael Apologies it's taken me a long time to get back to this. I've applied 3937 but not closed it yet as it's taking my a while to unravel what's going on with the properties test. It's currently failing because it's not assigning correct datatypes to properties with non-JAXB java bean types. Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com
