From: Schmilinsky, Remsy <Remsy.Schmilinsky_at_cbsa-asfc.gc.ca>
Date: Mon, 29 Oct 2007 14:45:20 -0400
Hi. I can't compile the wsdl described at the bottom with wsimport, I get these errors:
[WARNING] src-resolve.4.2: Error resolving component 'x:data'. It was detected that 'x:data' is in namespace 'http://mtomserver.sourceforge.net/schemas/soapserver.xsd', but components from this namespace are not referenceable from schema document 'file:/C:/metro/bin/mtomserver.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'x:data' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to file:/C:/metro/bin/mtomserver.wsdl#types?schema1'.
line 40 of file:/C:/metro/bin/mtomserver.wsdl#types?schema1
[WARNING] src-resolve: Cannot resolve the name 'xmime4:contentType' to a(n) 'attribute declaration' component.
line 77 of file:/C:/metro/bin/mtomserver.wsdl#types?schema2
[WARNING] s4s-elt-invalid-content.1: The content of 'Data' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
line 77 of file:/C:/metro/bin/mtomserver.wsdl#types?schema2
[WARNING] src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
line 75 of file:/C:/metro/bin/mtomserver.wsdl#types?schema2
[ERROR] undefined element declaration 'xop:Include'
line 75 of file:/C:/metro/bin/mtomserver.wsdl
[ERROR] undefined attribute 'xmime4:contentType'
line 77 of file:/C:/metro/bin/mtomserver.wsdl
Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:237)
at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2193)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:116)
at com.sun.tools.ws.WsImport.main(WsImport.java:52)