[daisy] xmlbeans
Bruno Dumon
bruno at outerthought.org
Wed Jul 5 05:09:37 CDT 2006
Hi,
do you have the xmlpublic and stax-api jars in the runtime classpath?
(see the dependencies in xmlschema-bindings/project.xml)
On Tue, 2006-07-04 at 23:17 -0400, tim_cranfield at goldenboat.net wrote:
> I am trying to use xmlbeans with the daisy detachment.
>
> I have able to generate the source code from a schema file.
> When I try and run this code:
> DetachmentDocumentDocument1 doc =
> DetachmentDocumentDocument1.Factory.parse(docFile);
>
> I get these errors:
> Exception in thread "main"
> java.lang.ExceptionInInitializerError
> at
> org.outerx.daisy.x10.DetachmentDocumentDocument1.<clinit>(DetachmentDocumentDocument1.java:19)
> at
> org.outerx.daisy.x10.DetachmentDocumentDocument1$Factory.parse(DetachmentDocumentDocument1.java:1224)
> at org.outerj.daisy.detachmentGUI.Main.main(Main.java:25)
> Caused by: java.lang.RuntimeException: Could not instantiate
> SchemaTypeSystemImpl
> (java.lang.reflect.InvocationTargetException): is the version
> of xbean.jar correct?
> at
> schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:12)
> at
> schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.<clinit>(TypeSystemHolder.java:6)
> ... 3 more
> Caused by: java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at
> schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:10)
> ... 4 more
> Caused by: org.apache.xmlbeans.SchemaTypeLoaderException:
> XML-BEANS compiled schema: Could not locate compiled schema
> resource
> schema/system/s6D981B8035E06A1AB11FEAC4CB2A6099/index.xsb
> (schema.system.s6D981B8035E06A1AB11FEAC4CB2A6099.index) - code
> 0
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:1069)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:271)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:151)
> ... 9 more
>
>
> Any help would be appreciated.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list