You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Daniel Rocklein <dr...@ptpusa.com> on 2004/08/10 16:59:27 UTC

XMLBeans jdk1.3 generates jdk1.4 code

I'm new to XMLBeans and hope this is a problem in my configuration.

First, I checked out the jdk 1.3 branch from CVS using the following
command:
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout -r
xmlbeans-jdk13_branch xml-xmlbeans/v1

Second, I built the project using jdk1.3. I used the jdk that comes with
Weblogic 7 - \bea7\jdk131_08.

Finally, I  generated the source code for my xsd files.

I get quite a number of warnings and 2 serious errors. The errors are
the most disturbing. The code generated from the jdk1.3 source uses the
jdk1.4 RuntimeException constructor. The warnings appear to occur on all
classes. See code excerpts below.

Am I doing something wrong? Can I ignore the warnings?
Dan


Error Excerpt:
--------------------
package schema.system.s490E50A146A47E6D60A56EAB3CC1217A;

public final class TypeSystemHolder
{
    private TypeSystemHolder() { }
    public static final org.apache.xmlbeans.SchemaTypeSystem typeSystem
= loadTypeSystem();
    static { typeSystem.resolve(); }
    private static final org.apache.xmlbeans.SchemaTypeSystem
loadTypeSystem()
    {
        try { return
(org.apache.xmlbeans.SchemaTypeSystem)Class.forName("org.apache.xmlbeans
.impl.schema.SchemaTypeSystemImpl", true,
TypeSystemHolder.class.getClassLoader()).getConstructor(new Class[] {
Class.class }).newInstance(new java.lang.Object[] {
TypeSystemHolder.class }); }
        catch (ClassNotFoundException e) { throw new
RuntimeException("Cannot load
org.apache.xmlbeans.impl.SchemaTypeSystemImpl: make sure xbean.jar is on
the classpath.", e); }
        catch (Exception e) { throw new RuntimeException("Could not
instantiate SchemaTypeSystemImpl (" + e.toString() + "): is the version
of xbean.jar correct?", e); }
    }
}



Warning Excerpt:
-------------------------

 Warning:  line (352)
parse(org.apache.xmlbeans.xml.stream.XMLInputStream,org.apache.xmlbeans.
SchemaType,org.apache.xmlbeans.XmlOptions) in
org.apache.xmlbeans.SchemaTypeLoader has been deprecated     Warning:
line (355)
parse(org.apache.xmlbeans.xml.stream.XMLInputStream,org.apache.xmlbeans.
SchemaType,org.apache.xmlbeans.XmlOptions) in
org.apache.xmlbeans.SchemaTypeLoader has been deprecated     Warning:
line (358)
newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStrea
m,org.apache.xmlbeans.SchemaType,org.apache.xmlbeans.XmlOptions) in
org.apache.xmlbeans.SchemaTypeLoader has been deprecated     Warning:
line (361)
newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStrea
m,org.apache.xmlbeans.SchemaType,org.apache.xmlbeans.XmlOptions) in
org.apache.xmlbeans.SchemaTypeLoader has been deprecated 

Daniel Rocklein
Palisades Technology Partners
440 Sylvan Ave
Englewood Cliffs, NJ 07632
drocklein@ptpusa.com
(201)816-1255 ext 240
(201)816-1786 fax