Hi, We are using the same library for generating the classes and during runtime (we have forced the server to load the librairies inside the WEB-INF/lib first). How can you see what version we are using ?
Thanks Best Regards Daniel -----Message d'origine----- De : Godmar Back [mailto:[EMAIL PROTECTED] Envoyé : lundi 2 juillet 2007 14:40 À : [email protected] Objet : Re: [castor-user] [XML] Classloading errors of skipped generated classes You've compiled against Castor 1.0, but you're using a more recent version of Castor in your actual environment. Check your classpath and make sure the two match. (Post-1.0, the Descriptor classes moved in to the descriptors.* subpackage.) - Godmar On 7/2/07, Daniel Perucho <[EMAIL PROTECTED]> wrote: > Hello, > > We are working on a project using Castor 1.0 running on Weblogic 8.1 using > Solaris10. > > We have the folling xml stream coming from a service: > ------ > [...] > <Params Function="API"> > <Action>EntryPoint</Action> > <Name>gare du nord</Name> > <CityName>Paris</CityName> > <QualityClass>80</QualityClass> > </Params> > [...] > ------ > > and we have the following xsd content: > > ------ > <?xml version="1.0" encoding="ISO-8859-1" ?> > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <xs:annotation> > <xs:appinfo> > 1.6.1 > </xs:appinfo> > </xs:annotation> > > <xs:element name="Params"> > <xs:complexType mixed="true"> > <xs:sequence> > <xs:element name="Time" type="xs:string"/> > <xs:element name="Date" type="xs:string"/> > <xs:element name="Mode" type="xs:string"/> > <xs:any processContents="skip" minOccurs="0" > maxOccurs="unbounded"/> > </xs:sequence> > <xs:attribute name="Function" type="xs:string" > use="required" /> > </xs:complexType> > </xs:element> > > </xs:schema> > ------ > > During runtime, the castor framework tries to load the class > "QualityClassDescriptor.class" wich does not exist (this class has not been > generated as espected). > This generates a lot of classloading errors (may be causing a bad > performance impact). We can see those errors using the "truss" command when > lanching the weblogic server. See the sample output of the truss command: > > /37: 623.3681 > stat64("<SOME_PACKAGE>/WEB-INF/classes/QualityClassDescriptor.class", > 0x85AD48A0) Err#2 ENOENT > > We defined a param bean with an instance variable called "qualityClass" as > an Integer (this variable is not used in the application). > > - I wonder if the "processContents" attribute is used during the generation > process but also during runtime. > - Does Castor use reflection in order to discover the class attributes of > the bean and tries to load the "QualityClassDescriptor" class ? > - Is there a way to disable the "QualityClassDescriptor" classloading > without modifying any line of code ? > > Thanx for your help > > Best Regard. > Daniel > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

