Hello,

I am working with a couple static SDO's built using the XSD2JavaGenerator. I 
created a separate java class that uses the two static SDOs. Then, I created a 
composite that binds a web service using the separate class. When I try to 
launch the composite, it tries to generate a wsdl and throws the following 
exception:

Starting ...
Dec 15, 2009 8:46:21 AM org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: myproject.composite
Dec 15, 2009 8:46:22 AM org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: 
file:/C:/Work/eclipse/workspace/myeclipseproject/bin/
Dec 15, 2009 8:46:28 AM 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator
WARNING: Exception while generating WSDL for myclass/myService
Dec 15, 2009 8:46:28 AM 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator
SEVERE: Exception thrown was: java.lang.RuntimeException: No XSD found for 
namespace http://localhost:8080/myproject/myxsd.xsd
Exception in thread "main" org.osoa.sca.ServiceRuntimeException: 
org.apache.tuscany.sca.monitor.MonitorRuntimeException: 
java.lang.RuntimeException: No XSD found for namespace 
http://localhost:8080/myproject/myxsd.xsd
 at org.apache.tuscany.sca.node.impl.NodeImpl.analyzeProblems(NodeImpl.java:711)
 at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:634)
 at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:200)
 at 
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromClassLoader(NodeFactoryImpl.java:37)
 at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:178)
 at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:100)
 at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:182)
 at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:63)
 at launch.Launch.main(Launch.java:8)
Caused by: org.apache.tuscany.sca.monitor.MonitorRuntimeException: 
java.lang.RuntimeException: No XSD found for namespace 
http://localhost:8080/myproject/myxsd.xsd
 ... 9 more
Caused by: java.lang.RuntimeException: No XSD found for namespace 
http://localhost:8080/myproject/myxsd.xsd
 at 
org.apache.tuscany.sca.databinding.sdo.SDOTypeHelper.addResolvedXSDs(SDOTypeHelper.java:158)
 at 
org.apache.tuscany.sca.databinding.sdo.SDOTypeHelper.getSchemaDefinitions(SDOTypeHelper.java:232)
 at 
org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:342)
 at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:307)
 at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:205)
 at 
org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:163)
 at 
org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
 at 
org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.buildServiceBindings(ComponentServiceBindingBuilderImpl.java:68)
 at 
org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.build(ComponentServiceBindingBuilderImpl.java:48)
 at 
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:259)
 at 
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.buildComposite(RuntimeBootStrapper.java:255)
 at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:632)
 ... 7 more

I looked at the SDOTypeHelper source and it looks like the 'schema' object is 
null. I tried to trace back into the code to see if this object ever gets set. 
I cannot find it. It may never get set. Does anyone know where this is supposed 
to get set? I tried changing my URI to a file/: location as well. Nothing seems 
to help. Please let me know if someone can help.

Thank you.

-Rob Corbin

Reply via email to