You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by James Richards <he...@yahoo.com> on 2003/10/16 17:31:08 UTC

Re: New (0.9.5.2) Castor Error

Just out of curiosity, I'm looking into Hibernate at
the moment [www.hibernate.org].  I've used Castor in
the past and I find Hibernate to be more developer
friendly.

Just wondering if others on this list have opinions on
Hibernate vs Castor.

Apologies if this is a little off topic.

Thanks,

James

> 	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)
> 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Re: New (0.9.5.2) Castor Error

Posted by Emmanuel Bernard <ep...@yahoo.fr>.
James Richards wrote:

>Just out of curiosity, I'm looking into Hibernate at
>the moment [www.hibernate.org].  I've used Castor in
>the past and I find Hibernate to be more developer
>friendly.
>
>Just wondering if others on this list have opinions on
>Hibernate vs Castor.
>
>  
>
I've never used Castor JDO for real (only evaluation, 1 year ago)
I'm very confident with Hibernate. Support is very efficient (good doc - 
event for such a complex subject, goods forum), usage is intuitive once 
you understand O/R concepts. Hibernate Team is very aware of real life 
cases and developments are very active.
Well, I'm a happy user.

I don't know about Castor License, but Hibernate is LGPL (can't use it 
on ASL projects).


Re: New (0.9.5.2) Castor Error

Posted by James Richards <he...@yahoo.com>.
Bruce,

Right now I'm plugging Hibernate into an application
so I was interested when I saw the Castor mention.  

I'm still new to Hibernate [hence the query] so I'll
hold off on more detailed questions until I've dug a
little deeper into Hibernate.

Thanks,

James

> JR>Just out of curiosity, I'm looking into Hibernate
> at
> JR>the moment [www.hibernate.org].  I've used Castor
> in
> JR>the past and I find Hibernate to be more
> developer
> JR>friendly.
> JR>
> JR>Just wondering if others on this list have
> opinions on
> JR>Hibernate vs Castor.
> 
> James, 
> 
> If you'd like to ask some specific questions I can
> certainly provide
> some answers. But having never used Hibernate and
> having read very little
> about Hibernate, I don't feel comfortable trying to
> compare and contrast
> the two in general.
> 
> Bruce

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Re: New (0.9.5.2) Castor Error

Posted by Bruce Snyder <fe...@frii.com>.
This one time, at band camp, James Richards said:

JR>Just out of curiosity, I'm looking into Hibernate at
JR>the moment [www.hibernate.org].  I've used Castor in
JR>the past and I find Hibernate to be more developer
JR>friendly.
JR>
JR>Just wondering if others on this list have opinions on
JR>Hibernate vs Castor.

James, 

If you'd like to ask some specific questions I can certainly provide
some answers. But having never used Hibernate and having read very little
about Hibernate, I don't feel comfortable trying to compare and contrast
the two in general.

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html