You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Daniel Toffetti <dt...@yahoo.com.ar> on 2008/07/30 02:05:55 UTC

ClassNotFoundException with generated code

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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: ClassNotFoundException with generated code

Posted by Jacob Danner <ja...@gmail.com>.
How did you compile the schema?
-jacobd

On Wed, Jul 30, 2008 at 1:05 AM, Daniel Toffetti <dt...@yahoo.com.ar> 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: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org