Yeah, so it does seem that adding "-javasource 1.5" when compiling this particular Schema causes problems, which is an unfortunate bug :-(. But the good news is that there is a simple workaround (not generating 1.5-specific classes) which you can use while we are fixing the problem.
In answer to your PS question, indeed, the default value is 1.4, which is the Java version XmlBeans is compiled with, but we should have made it explicit. The meaning of 'the source-files are compatible with Java 1.5' is that the source files use Java 1.5-specific features, so you need a compiler >= 1.5 on the path (this also needs clarification in the tool-doc). Radu -----Original Message----- From: Johannes Echterhoff [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 5:26 AM To: [email protected] Subject: Re: Problem compiling a set of schemas with xmlbeans 2.0.0 Well, i successfully compiled my schemas using the following command (hooray): scomp -d classes -src sources -out spsXMLBindings.jar -mx 512M -catalog CustomCatalog.xml <pathToMySchemasThatImportGML> But when i try the following command i get the same errors again: scomp -d classes -src sources -out spsXMLBindings.jar -javasource 1.5 -mx 512M -catalog CustomCatalog.xml <pathToMySchemasThatImportGML> So the problem seems to occur when i use the option '-javasource 1.5'. Now another question could be whether the problem is a result of compiling the schemas that import the GML-schemas or if the GML-schemas cause the error. So i tried to compile the GML-schemas as you did: scomp -d classes -src sources -out gml311.jar -dl -mx 512M gml311/base (this works) scomp -d classes -src sources -out gml311.jar -dl -javasource 1.5 -mx 512M gml311/base (this does not work!) My setup: XMLBEANS_HOME is set to C:\Daten\xmlbeans-2.0.0 JAVA_HOME is set to: C:\Programme\Java\jdk1.5.0_01 CLASSPATH ist set to: C:\Daten\xmlbeans-2.0.0\lib\xbean.jar;C:\Daten\SPS_x2j_test\CatalogManager.properties I suppose my setup is ok. Any suggestions on this? Johannes Echterhoff P.S.: what does the -javasource-tag really mean? The tool-docu says: 'Generate Java source compatible for the specified Java version (1.4 or 1.5).' And the homepage says: 'V2 will provide the option to take advantage of JDK 1.5 Generics and/or Enumerations in XMLBeans generated classes.' Ok, this might be as silly question, but nevertheless: if i compile my schemas without using the -javasource-tag then does this mean i compile for version 1.4 or 1.5? What is the default option and what is the meaning of 'the source-files are compatible with Java 1.5'? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

