Hi, I had the same problem and changing the property solved it for me. The castorbuilder.properties file should go to org/exolab/castor/builder/castorbuilder.properties
Inside the JAR file. Another problem can be that the original castor JAR file is in your CLASSPATH before the modified version. Gergely > -----Original Message----- > From: Harshawardhan Gadgil [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 2:21 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Castorbuilder.properties file > > Hello, > > I'm having problem running castor9.5.2 > > So running > <?xml version='1.0' encoding="UTF-8" ?> > <schema xmlns="http://www.w3.org/2001/XMLSchema"> > > <complexType name="A"> > <sequence> > <element name="B" type="string"/> > <element name="C" type="string"/> > </sequence> > </complexType> > > </schema> > > This gives an XML exception: > Exception in thread "main" java.lang.IllegalArgumentException: The > prefix 'xml' is reserved (XML 1.0 Specification) and cannot be declared. > at > org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130) > ... > ... > I did see a couple of posts on the mailing list to workaround this > problem particularly about these settings... > > org.exolab.castor.parser.namespaces=false > org.exolab.castor.builder.javaclassmapping=type > > I made these changes in the castorbuilder.properties file and rebuilt > the jar... > This would not work... even putting the castorbuilder.properties in the > classpath won't work. Where exactly should the castorbuilder.properties > file go ? > > Have I missed something or was I on the right track ? > > Thanks, > -- > Harshawardhan > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
