Re: [castor-dev] Obtaining refernceto Parent class-Castor limitation??

2004-02-18 Thread Keith Visco
Keith Visco wrote: > > Hi Jim, > > Yes you need to change the input XML, which must contain the "foo" > reference: > > It should look something like the following: > > > hello world > > That should read: hello world I do have a working example of this

Re: [castor-dev] How is schema instance supported in castor framework?

2004-02-18 Thread Liu, Scott
Hi, Keith, I just downloaded 0.9.5.3 RC1 (specifically castor-0.9.5.3-xml.jar). The version numbers in all the generated server classes are updated. There were changes in generated classes involving enum constants. But I did not see any change involving xsi:type (in my case the "Record", "RecordD

[castor-dev] test

2004-02-18 Thread marc-antoine_parent
The message contains MIME-encoded graphics and has been sent as a binary attachment. <>

Re: [castor-dev] Obtaining refernceto Parent class-Castor limitation??

2004-02-18 Thread Keith Visco
Hi Jim, Yes you need to change the input XML, which must contain the "foo" reference: It should look something like the following: hello world When you marshal from Castor you'll see that Castor creates the XML like this. Currently this is the only way to get Castor to automat

Re: [castor-dev] Obtaining refernceto Parent class-Castor limitation??

2004-02-18 Thread Jim Otte
Keith, Thanks again for your suggestions. I tried your ideas- and have found: 1. I listed the identity=id in the element of Foo - and the parent field under Bar as yet I still do not get the expected result- just a null pointer when referencing the parent fields. Does the input xml have to chang

[castor-dev] need help installing

2004-02-18 Thread Dewey Alaska
Could someone help me how to install castor step by step? I have read some of the old archive email, but i still don't know how to install it. How do i put the jar into classpath. And what is class path? is it like path in unix? Thanks __ Do you Yahoo!? Yahoo!

Re: [castor-dev] How is schema instance supported in castor framework?

2004-02-18 Thread Keith Visco
Hi Scott, Have you tried 0.9.5.3 RC1? An xsi:type bug affecting root elements was fixed in that release and it may solve the problem you face. Thanks, --Keith "Liu, Scott" wrote: > > Hi, all, > > I am using castor framework in a web service project. I have built a > prototype involving Axi

[castor-dev] How is schema instance supported in castor framework?

2004-02-18 Thread Liu, Scott
Hi, all, I am using castor framework in a web service project. I have built a prototype involving Axis, castor and .NET, which worked pretty well. Thanks to all, who has contributed to the success of the castor project. I have moved from prototyping to the actual project recently and generated

Re: [castor-dev] Castor Unmarshalling problem

2004-02-18 Thread Vamsi Mohun/AT-Austin/3M/US
Hi Keith, Thanks for the prompt response. Actually, I currently am using the unmarshaller.setIgnoreExtraElements(true); This works fine, for instance, when I add a tag at any level to my XML. There are no problems with the unmarshalling. It does not work ONLY when, for instance, is mapp

Re: [castor-dev] Error unmarshalling with autonaming="deriveByClass" and classnames that closely match element names

2004-02-18 Thread Brent Picasso
Keith- It was the latter. I was trying to unmarshal a test doc. Ok. I created the equivalent instance to marshal. Received the same error! Should I log a bug? Thanks, Brent --- There was 1 error: 1) testMarshalling(FoodMappingTest)java.lang.NoClassDefFoundError: Saltyfood (wrong

Re: [castor-dev] java.util.Map support

2004-02-18 Thread Keith Visco
Hi Jeremy Some upgrades were included in the 0.9.5.3 RC. When using default introspection, you should notice these changes right away, as both the key and value are now output by default. When using a mapping file you need to specify this by using Castor's built-in wrapper: Try the following

Re: [castor-dev] StackOverflowError for invalid choice

2004-02-18 Thread Henning Moll
On Wednesday 18 February 2004 19:49, Keith Visco wrote: > Can you report this via bugzilla, looks a problem in the validator. Ok, will do that tomorrow. Just wanted to hear other opinions before... Henning --- If you wish to unsubscribe f

[castor-dev] Castor Unmarshalling problem

2004-02-18 Thread Vamsi Mohun/AT-Austin/3M/US
All, I posted this originally on 09/10/2003 ( http://www.mail-archive.com/[EMAIL PROTECTED]/msg15104.html) but never got any responses. Hoping for a response this time. Thanks in Advance Vamsi I have this xsd. http://www.w3.org/2001/XMLSchema"; targetNamespace = "http://www

Re: [castor-dev] StackOverflowError for invalid choice

2004-02-18 Thread Keith Visco
Hi Henning, Can you report this via bugzilla, looks a problem in the validator. http://bugzilla.exolab.org Thanks, --Keith Henning Moll wrote: > > Hi! > > In my opinion, the following issue is a bug. Do you agree? > Here is a minimal example: > > The following schema is used by the Source

Re: [castor-dev] Marshall direct to HttpServletResponse OutputStream

2004-02-18 Thread Keith Visco
Just wrap the OutputStream in an OutputStreamWriter and pass the writer to the marshal method. --Keith Antonio Carlos da Graça Mota Durão d e Souza wrote: > > Hi all, > > I'm trying to marshall a class into the OutputStream's > HttpServletResponse. Is this possible? > > Thanx, > by AC >

[castor-dev] Error unmarshalling with autonaming="deriveByClass" and classnames that closely match element names

2004-02-18 Thread Brent Picasso
Title: Message (sorry if this is a duplicate- the last send apparently failed)    Hello-   I may have found a potential bug. When unmarshalling the test XML doc below, I receive the following error:   1) testMapping(FoodMappingTest)java.lang.NoClassDefFoundError: Saltyfood (wrong name: Sal

[castor-dev] Nonsensical InvocationTargetException

2004-02-18 Thread Glenn.Nelson
InvocationTargetException I'm getting this error when unmarshalling, but there really doesn't seem to be a problem, i.e. unmarshalling apprently continues successfully. I strongly suspect that Castor or Xerces has a static initialization problem (read below), but I'm totally new to Castor, so p

Re: [castor-dev] Pooling marshaller/unmarshaller objects

2004-02-18 Thread Inderdeep Dhir
Thanks for the info. ~ Inder >>-Original Message- >>From: Keith Visco [mailto:[EMAIL PROTECTED] >>Sent: Sunday, February 15, 2004 5:23 AM >>To: [EMAIL PROTECTED] >>Subject: Re: [castor-dev] Pooling marshaller/unmarshaller objects >> >> >> >> >>For some performance improving tips, see

[castor-dev] Generated unmarshal methods in org.exolab.castor.builder.SourceFactory

2004-02-18 Thread Christian Landbo \(Presys A/S\)
Is there any way to automatically generate a static unmarshal method that takes a 'org.w3c.dom.Node' a parameter? The Unmarshaller class has such a method so it would be nice if the generated classes supported this. I have personally extendend the org.exolab.castor.builder.SourceFactory.createUnm

[castor-dev] StackOverflowError for invalid choice

2004-02-18 Thread Henning Moll
Hi! In my opinion, the following issue is a bug. Do you agree? Here is a minimal example: The following schema is used by the SourceGenerator without additional mapping. That works fine. Read on after the schema... snip example.xsd-

Re: [castor-dev] Mapping for attribute and element with same name...

2004-02-18 Thread Achim Ohlenschlager
Hello all, I've a similar problem as described by Jim which I tried to solve by renaming a XML attribute using a binding file. Hoever I had no success. I read the link below, but couldn't manage the attributeBinding. It would be great, if somebody has an example. Thanks a lot, Achim -Origin

[castor-dev] Marshall direct to HttpServletResponse OutputStream

2004-02-18 Thread Antonio Carlos da Graça Mota Durão de Souza
Hi all, I'm trying to marshall a class into the OutputStream's HttpServletResponse. Is this possible? Thanx, by AC --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe ca

[castor-dev] using wrapper classes&Fieldhandlers for XML mapping and container="true" resulting with StackOverFlow

2004-02-18 Thread Yaldiz, Sunay
Hello, I am using Castor 0.9.5.2. I have a problem when I try to use wrapper classes&Fieldhandlers and container="true" feature together. I got an StackOverFlow exception whenever I used it, so I had to set container="false" always. Is such an exception known? And is there a solution for this st