Hello,

I've compiled my schema so I've my Java types. But when I test them, I've the following error :

java.lang.ExceptionInInitializerError
at fr.jouve.elscdweb.launcher.transit.beans.TransitDocument$Factory.newInstance(TransitDocument.java:211)
   [...]
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s66B04B8847DD9E1C30DCE7947A16068E.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:781) at fr.jouve.elscdweb.launcher.transit.beans.TransitDocument.<clinit>(TransitDocument.java:20)
   ... 17 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s66B04B8847DD9E1C30DCE7947A16068E.TypeSystemHolder
 [...]
   ... 18 more


So, my schema.system.... package is not generated ? Why ? My Ant task is the following :


<property name="lib" location="lib" />
<property name="schema" location="schema" />

<taskdef name="xmlbean"
       classname="org.apache.xmlbeans.impl.tool.XMLBean"
       classpath="${lib}/xbean.jar:${lib}/jsr173_1.0_api.jar" />

<target name="compileSchema">
       <xmlbean schema="${schema}/transit.xsd" srconly="true"
           srcgendir="src"
           classpath="${lib}/xbean.jar:${lib}/jsr173_1.0_api.jar">
       </xmlbean>
</target>

So, I don't understand why, this package is not generated, and I can't continu my projet without. An idea bout this problem ?

Best Regards,

Johann

PS : sorry for my english ;-)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to