I am getting
"src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component."
this error in my xsd file.
Please help me to solve this.
The error means that the descriptionType is an XML Schema type (simple or complex) that is being referenced in your XSD, something like type="j2ee:descriptionType"
. Your XSD needs to reference (using an import or include) the XSD file which contains this definition.
To find out which might be, you use the URI mapped with j2ee
which will give you the target namespace of the schema you need. If that is different than of your XSD's, then you need to use something like <xsd:import namespace="j2ee uris goes here" schemaLocation="where is it?"/>
; otherwise, is an <xsd:include schemaLocation="where is it?"/>
If you already have that import/include in your XSD, then the schema location is your problem; check that it resolves to something. This is where things might get tricky, since it depends on how you're getting the error, of which you said nothing.
If it's an editor, then it depends; maybe you need to configure some catalog that resolves namespace references, maybe you just copy the file over to your file system, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With