OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] JAXB alternatives

[ Lists Home | Date Index | Thread Index ]


Castor seems like a promising alternative, and our company has toyed 
around with it in the past.  However I run into other issues when I try 
to use it with the complex ( large, lots and lots of external schema 
references ) Schemas.

Version 0.9.3 - As the parser traverses the imported schemas, the 
location of the schema is managed by concatenating the next schemas 
relative path with the last schemas relative path.  So if there are a 
lot of schemas being referenced then the location of the file becomes 
very, very long ( say 500+ or 1000+ characters, maybe more, it spits 
out a file path about 20 lines long for me... ) and the file system 
eventually will not return the file.  Runtime error is file not found, 
but by copying and pasting the path it is using by hand, the OS gives 
me a file name to large error.  So no go with that version.

Version 0.9.5.2 - The latest version stops before it even gets started. 
  Somewhere our complex schema structure must be causing an infinite 
loop for the castor execution.  Every time I run this version I get a 
StackOverflowError.  Increasing the stack size as much as the OS will 
allow does not stop the error.

So still a no go.. At any rate, thank you all for your help.

Jim

On Thursday, February 19, 2004, at 09:13 AM, Chiusano Joseph wrote:

> You might want to check out Castor [1] - however I can't speak to its
> support of specific schema constructs vs. JAXB.
>
> Kind Regards,
> Joe Chiusano
> Booz | Allen | Hamilton
> Strategy and Technology Consultants to the World
>
> [1] http://www.castor.org/
>
> Jim Beard wrote:
>>
>> Howdy Folks,
>>
>>         I've been working with JAX B to generate java classes based 
>> on a set
>> of Schemas.  However I have stumbled across a problem which may 
>> prevent
>> me from using JAX B.  It doesn't handle complexType inheritance  well.
>>         Are there any alternatives to JAX B out there for generating 
>> java
>> classes from Schema?  Has anyone used them?  Is one better then the
>> other?  Any insight would be very appreciated.
>>
>> Jim Beard
>> counterclaim.com, Inc
>> http://www.counterclaim.com
>> http://openefm.sourceforge.net
>> (800) 264-8145
>>
>> -----------------------------------------------------------------
>> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>> initiative of OASIS <http://www.oasis-open.org>
>>
>> The list archives are at http://lists.xml.org/archives/xml-dev/
>>
>> To subscribe or unsubscribe from this list use the subscription
>> manager: <http://www.oasis-open.org/mlmanage/index.php>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
>
>
Jim Beard
counterclaim.com, Inc
http://www.counterclaim.com
http://openefm.sourceforge.net
(800) 264-8145





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS