I've tried both jar and source as shown in scomp reference examples:

scomp -out MySchema.jar MySchema.xsd

scomp -srconly -src .\src MySchema.xsd


    Now I'm using the generated source included in my project, because I hope 
the generated source code will allow me to understand better what's happening 
under the hood, but the jar gave me more or less the same error in the same 
place.

Cheers,

Daniel



----- Mensaje original ----
De: Jacob Danner <[EMAIL PROTECTED]>
Para: [email protected]
Enviado: martes 29 de julio de 2008, 21:24:24
Asunto: Re: ClassNotFoundException with generated code

How did you compile the schema?
-jacobd

On Wed, Jul 30, 2008 at 1:05 AM, Daniel Toffetti <[EMAIL PROTECTED]> wrote:
> Hi !
>
>    I've compiled an xsd and I'm getting an error while trying to use the 
> generated classes like this:
>
>            MyStandardDocument td = MyStandardDocument.Factory.newInstance();
>            MyRootElement tdi = td.addNewMyRootElement();
>            tdi.setCreator("Daniel");
>            ...............
>
>    The error is this:
>
> GRAVE: Servlet.service() for servlet default threw exception 
> java.lang.ClassNotFoundException: 
> schemaorg_apache_xmlbeans.system.s8531D468835C899837F8F10B834D344C.TypeSystemHolder
>
>     And points to this place in the generated code:
>
>    public static final org.apache.xmlbeans.SchemaType type = 
> (org.apache.xmlbeans.SchemaType)
>        
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(MyStandardDocument.class.getClassLoader(),
>  
> "schemaorg_apache_xmlbeans.system.s8531D468835C899837F8F10B834D344C").resolveHandle("traceabilitydocument3d16doctype");
>
>    Now, what is 
> "schemaorg_apache_xmlbeans.system.s8531D468835C899837F8F10B834D344C" ??  OK, 
> I understand the string represents a SchemaTypeSystem, but how do I interpret 
> its meaning ??
>
>    Any other hints ?
>
> Cheers,
>
> Daniel
>
>


      
____________________________________________________________________________________
¡Buscá desde tu celular!

Yahoo! oneSEARCH ahora está en Claro

http://ar.mobile.yahoo.com/onesearch

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

Reply via email to