I don´t have specific problem right now but I´ll start to work on project where I´ll have to deal with anyType and
Since I had problems with anyType mapping (took time) I want to know if it supports it like it should. I had those problems with JAXB 1.0, before, then tried XMLBeans 2.2 which "supports" that type but If I may say in "restricted" way. Couldn't get anyType as object with get method... I heard that JAXB 2.0 don´t cause that problems and I guess since Castor has some restrictions that It is better to stick with JAXB 2.0 that has support for anyType... That is the reason why I asked... Thank you! ________________________________ From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: 10. maj 2007 15:51 To: [email protected] Subject: [castor-user] AW: Support for <xs:anyType> Yes, it does. Though as far as I remember, there's a few restrictions with regards to those special namespaces such as #other et alias. Do you have any specific problems you are suffering from, or are you just inquiring about its feature completeness? Werner ________________________________ Von: Amir Alagic [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Mai 2007 15:41 An: [email protected] Betreff: RE: AW: [castor-user] [XML] unable to instantiate [I; java.lang.ClassNotFoundException: [I Hi Werner, I have one question about Castor framework. Does it supports anyType like JAXB 2.0 ? Regards, Amir ________________________________ From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: 10. maj 2007 15:22 To: [email protected] Subject: AW: AW: [castor-user] [XML] unable to instantiate [I; java.lang.ClassNotFoundException: [I Not really, to be honest, ut maybe somebody else can provide his (historical) views. Personally, I would be very surprised to find Java-specific notations in an xsi:type attribute ..... what surprises me is that it seems to work. Werner ________________________________ Von: Christophe Assemat [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Mai 2007 12:34 An: [email protected] Betreff: Re: AW: [castor-user] [XML] unable to instantiate [I; java.lang.ClassNotFoundException: [I Hi Werner, I'm indeed using a mapping file (i can extract from it mapping information related to the xml showned in my email). But first, could you tell me if the 'xsi:type="java:[I"' notation found in the xml is (seems) correct ? Thanks, Chris Werner Guttmann wrote: That's truly an odd one .. ;-). A few random questions, just to establish a context for me. Are you using a mapping file ? If not, is this discussion based upon Java classes that have been generated from an XML schema ? Or are you using Castor XML without a mapping file, relying on default introspection ? Werner -----Ursprüngliche Nachricht----- Von: Christophe Assemat [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Mai 2007 11:34 An: [email protected] Betreff: [castor-user] [XML] unable to instantiate [I; java.lang.ClassNotFoundException: [I Hi, I have an application running perfectly with jre 1.5.xx but which fails when i try to use jre 1.6. While trying to 'unmarshal' an xml previously marshalled object, it fails : unable to instantiate [I; java.lang.ClassNotFoundException: [I ... Part of the xml concerned looks like : <targetmap internalkey="33"> <range xsi:type="java:[I"> <integer>12345</integer> <integer>34567</integer> </range> <range ...> ... </range> ... </targetmap> I'm still using 'castor-1.0.2' version and i'm planning to move to 'castor-1.1.1' but anyhow i would like to understand why this problem arises. Cheers C.ASSEMAT GenomeQuest Inc. --------------------------------------------------------------------- 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

