I have been trying to use SDO revision 536345 (for the fix for 
http://issues.apache.org/jira/browse/TUSCANY-1250) to generate data objects for 
use with various revisions of SCA, and have been banging my head against wall 
after wall. I decided to take the helloworld-ws sample from the 0.90 release 
and modify it to use SDO databinding as a simple test, and I am getting a 
NullPointerException at HelperProvider.getDefaultContext. I took the wsdl from 
the sample and modified it as per below, pointed the XSD2JavaGenerator (from 
revision 536345) at it to generate the data objects, modified the 
HelloWorldService interface and impls, and added the dbosdo factory=... to the 
composite file. I have attached a zip with my files, which the mailing list 
will strip out, but I can send to anyone who would like to take a look. If 
anyone can give me some directions it would be much appreciated. 

<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://helloworld"; 
xmlns="http://www.w3.org/2001/XMLSchema";>
<element name="getGreetings">
  <complexType>
    <sequence><element name="greeter" type="tns:Person"/></sequence>
  </complexType>
</element>
...
<xsd:complexType name="Person">
  <xsd:sequence>
    <xsd:element name="name" type="xsd:string" />
  </xsd:sequence>
</xsd:complexType>
</schema>
</wsdl:types>

Reply via email to