Hi Nate

The xmlbeans ant task has an attribute, classgendir, which controls
where the .xsb files get generated. You should include this directory on
your compile classpath if you are taking responsibility for compiling
the generated code yourself and on the runtime classpath as well.

.xsb files bear the same relationship to .xsd files as .class files do
to .java i.e. they are a compiled format of the schema(s). The
TypeSystemHolder class is the gateway between the .class files and the
.xsb files.

Cheers,

Lawrence

> -----Original Message-----
> From: Nate Reed [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 24, 2006 1:31 PM
> To: [email protected]
> Subject: where is .xsb file?
> 
> One of the generated schema objects appears to be looking for an
> "index.xsb"
> file, but I don't see this in the generated code.
> 
> The generated source tree looks like:
> 
> com/foo (our generated Java classes)
> schema/system/s18393419346C7982F9F908EC0D0397A4/TypeSystemHolder.java
> 
> This was generated by the xmlbeans ant task, but when I used the
command
> line
> 'scomp' it generated a bunch of other stuff, such as .xsb files.  I'm
not
> sure what this is for or how to get the ant task to generate all
these.
> 
> Any ideas?
> 
> Here's the exception:
> 
> Caused by: java.lang.RuntimeException: Could not instantiate
> SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is
the
> version of xbean.jar correct?
>       at
>
schema.system.s18393419346C7982F9F908EC0D0397A4.TypeSystemHolder.loadTyp
eS
> ystem(Unknown
> Source)
>       at
>
schema.system.s18393419346C7982F9F908EC0D0397A4.TypeSystemHolder.<clinit
>(
> Unknown
> Source)
>       ... 63 more
> Caused by: java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>       at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
cc
> essorImpl.java:39)
>       at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tr
> uctorAccessorImpl.java:27)
>       at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>       ... 65 more
> Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS
> compiled
> schema: Could not locate compiled schema resource
> schema/system/s18393419346C7982F9F908EC0D0397A4/index.xsb
> (schema.system.s18393419346C7982F9F908EC0D0397A4.index) - code 0
>       at
>
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(Sc
he
> maTypeSystemImpl.java:1069)
>       at
>
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(Sche
ma
> TypeSystemImpl.java:271)
>       at
>
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSy
st
> emImpl.java:151)
>       ... 69 more
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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

Reply via email to