Hi all,

I am trying to use the example "CreateDataObjectFromXsdAndXmlFiles.java"
from "tuscany-sdo-1.0-incubator-M2-bin"  in my application.
When I run it alone with my xsd and xml files it worked just fine. however
when I rewrite the Main method to a public method and call it from somewhere
else in my project, I got the following error... any idea?

Cheers
HS

Attempting to define types using resource myxsd.xsd
Obtained Input Stream from resoruce
Exception caught defining Types from resoruce stream to myxsd.xsd
java.lang.IllegalArgumentException: org.eclipse.emf.ecore.impl.EDataTypeImpl
java.lang.IllegalArgumentException: org.eclipse.emf.ecore.impl.EDataTypeImpl
   at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java
:213)
   at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java
:172)
   at
com.myapp.system.CreateDataObjectFromXsdAndXmlFiles.defineTypeUsingXsdResource
(CreateDataObjectFromXsdAndXmlFiles.java:49)
   ...

Closed input stream

Reply via email to