Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@www.apache.org Received: (qmail 16745 invoked from network); 16 Oct 2003 20:35:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Oct 2003 20:35:27 -0000 Received: (qmail 12910 invoked by uid 500); 16 Oct 2003 20:35:09 -0000 Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 12739 invoked by uid 500); 16 Oct 2003 20:35:08 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 12726 invoked from network); 16 Oct 2003 20:35:07 -0000 Received: from unknown (HELO www.princetongames.org) (66.250.40.202) by daedalus.apache.org with SMTP; 16 Oct 2003 20:35:07 -0000 Received: from localhost (ammulder@localhost) by www.princetongames.org (8.11.6/8.11.6) with ESMTP id h9GKcFf18221 for ; Thu, 16 Oct 2003 16:38:15 -0400 X-Authentication-Warning: www.princetongames.org: ammulder owned process doing -bs Date: Thu, 16 Oct 2003 16:38:15 -0400 (EDT) From: Aaron Mulder X-X-Sender: ammulder@www.princetongames.org To: geronimo-dev@incubator.apache.org Subject: Re: New (0.9.5.2) Castor Error In-Reply-To: <3F8F0024.1AEBF6C0@intalio.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I don't see a "castor.properties" file -- is it in the JAR or something? If I need to create one, where do I put it? Thanks, Aaron On Thu, 16 Oct 2003, Keith Visco wrote: > Hi Aaron, > > This is the issue Arnaud was talking about in his previous post. It > happens with newer versions of Xerces, but not the older ones. Xerces is > calling the "startPrefixMapping" method with the "xml" prefix. > Personally I don't think they should be doing that, but they are, so we > checked in some code to ignore the mapping in the Castor CVS. > > For more information you can see this thread: > > http://www.mail-archive.com/castor-dev%40exolab.org/msg15353.html > > There is a simple workaround for Castor 0.9.5.2, just enable namespace > processing on the parser in the castor.properties file. > > in the castor.properties file change the following line: > > org.exolab.castor.parser.namespaces=false > > to: > > org.exolab.castor.parser.namespaces=true > > > --Keith > > > Aaron Mulder wrote: > > > > I tried Castor 0.9.5.2 on my DD Schemas, and I get the stack trace > > below. The error is complaining that I've tried to map "xml" as a > > namespace, but I'm pretty sure I haven't -- I've looked through the files > > and grepped for "xmlns:xml" and "xml=" and so on and found nothing. If > > someone from Castor wants me to send them the schemas for further > > investigation, I'd be happy to. It would really help to get a file name > > and line number in these errors! > > > > Thanks, > > Aaron > > > > [echo] Generating sources for > > /home/ammulder/cvs/geronimo/modules/xbeans/src/schema/geronimo-application-client.xsd > > [java] -- Disabling generation of Marshalling framework methods > > (marshall, unmarshall, validate). > > [java] Exception in thread "main" java.lang.IllegalArgumentException: > > The prefix 'xml' is reserved (XML 1.0 Specification) and cannot be > > declared. > > [java] at > > org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130) > > [java] at > > org.exolab.castor.xml.UnmarshalHandler.startPrefixMapping(UnmarshalHandler.java:1953) > > [java] at > > org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown > > Source) > > [java] at > > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > > [java] at > > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) > > [java] at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown > > Source) > > [java] at > > org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown > > Source) > > [java] at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown > > Source) > > [java] at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > > Source) > > [java] at > > org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > > [java] at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown > > Source) > > [java] at > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > [java] at > > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:583) > > [java] at > > org.exolab.castor.builder.binding.BindingLoader.loadBinding(BindingLoader.java:130) > > [java] at > > org.exolab.castor.builder.binding.BindingLoader.createBinding(BindingLoader.java:250) > > [java] at > > org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:746) >