It seems the jar contains all the files generated with the -d option, and also the class you mention. I'll use the jar and have the source at hand in case I'm curious about the code. Thanks for your help !!!
Cheers, Daniel ----- Mensaje original ---- De: Jacob Danner <[EMAIL PROTECTED]> Para: user@xmlbeans.apache.org Enviado: martes 29 de julio de 2008, 22:13:34 Asunto: Re: ClassNotFoundException with generated code I would stick with the -jar option. Can you open the jar and verify a TypeSystemHolder.class file exists? Which servlet container are you using? Does this error occur for you outside of the servlet container, ie, POJO class? Thanks, -jacobd On Wed, Jul 30, 2008 at 2:08 AM, Daniel Toffetti <[EMAIL PROTECTED]> wrote: > 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: user@xmlbeans.apache.org > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____________________________________________________________________________________ ¡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]