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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
j2eewhich 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.