users@jaxb.java.net

JAXB exceptions when compiling standard XML Schemas

From: Sreenivas Munnangi <sreeni_at_iplanet.com>
Date: Thu, 09 Jan 2003 12:50:33 -0800

This message was originally submitted by sreeni_at_IPLANET.COM to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.

----------------- Message requiring your approval (97 lines) ------------------
Hi,

I have downloaded the following J2EE xml schemas from
http://java.sun.com/xml/ns/j2ee/ and when I tried to comiple these XML
schemas to create java bindings, I get the following exceptions.

One would expect that there will be no exceptions while working with
standard XML schema.

Any help is greatly appreciated.

thanks
sreeni


01. application-client_1_4.xsd

munnangi[310]: xjc application-client_1_4.xsd
parsing a schema...
s4s-elt-character: Non-whitespace characters are not allowed in schema
elements other than xs:appinfo and xs:documentation. Saw 'DTD'.
  line 3 of j2ee_web_services_client_1_1.xsd

The element type "meta" must be terminated by the matching end-tag
"</meta>".
  line 5 of j2ee_web_services_client_1_1.xsd

Exception in thread "main"
::http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:5:3:The
element type "meta" must be terminated by the matching end-tag "</meta>".
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:352)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305)


02. j2ee_web_services_client_1_1.xsd

munnangi[313]: xjc j2ee_web_services_client_1_1.xsd
parsing a schema...
src-resolve: Cannot resolve the name 'j2ee:descriptionGroup' to a(n)
group component.
  line 151 of j2ee_web_services_client_1_1.xsd


03. connector_1_5.xsd
parsing a schema...
s4s-elt-character: Non-whitespace characters are not allowed in schema
elements other than xs:appinfo and xs:documentation. Saw 'DTD'.
  line 3 of j2ee_web_services_client_1_1.xsd

The element type "meta" must be terminated by the matching end-tag
"</meta>".
  line 5 of j2ee_web_services_client_1_1.xsd

04. ejb-jar_2_1.xsd
parsing a schema...
s4s-elt-character: Non-whitespace characters are not allowed in schema
elements other than xs:appinfo and xs:documentation. Saw 'DTD'.
  line 3 of j2ee_web_services_client_1_1.xsd

The element type "meta" must be terminated by the matching end-tag
"</meta>".
  line 5 of j2ee_web_services_client_1_1.xsd


05. j2ee_1_4.xsd
parsing a schema...
s4s-elt-character: Non-whitespace characters are not allowed in schema
elements other than xs:appinfo and xs:documentation. Saw 'DTD'.
  line 3 of j2ee_web_services_client_1_1.xsd

The element type "meta" must be terminated by the matching end-tag
"</meta>".
  line 5 of j2ee_web_services_client_1_1.xsd

06. jspxml.xsd
Exception in thread "main" java.lang.NullPointerException

07. web-app_2_4.xsd
parsing a schema...
s4s-elt-character: Non-whitespace characters are not allowed in schema
elements other than xs:appinfo and xs:documentation. Saw 'DTD'.
  line 3 of j2ee_web_services_client_1_1.xsd

The element type "meta" must be terminated by the matching end-tag
"</meta>".
  line 5 of j2ee_web_services_client_1_1.xsd

Exception in thread "main"
::http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd:5:3:The
element type "meta" must be terminated by the matching end-tag "</meta>".