[castor-user] Codehaus Castor mailing list relocations after Codehaus shutdown

2015-05-07 Thread Werner Guttmann
Hi, IF YOU RECEIVE THIS MAIL, BEWARE THAT THIS MEANS YOU’RE SUBSCRIBED TO A MAILING LIST THAT WILL SOON DISAPPEAR. Read below if you want to know more. This mail is indeed a reminder that as Codehaus is closing, all the existing mailing lists of the Castor project at Codehaus will soon

[castor-user] Migration of Castor to github - Part II

2015-04-05 Thread Werner Guttmann
/castor-data-binding/castor/labels/project%20site Thanks Werner On 22.03.2015 22:55, Werner Guttmann wrote: Hi all, as already mentioned by Ralf the other day, The Codehaus is coming to its End of Life [EOL] within a few days. As such, I have started to migrate major parts of Castor to Github

[castor-user] Migration of Castor to github - Part I

2015-03-22 Thread Werner Guttmann
requests as needed. Kind Regards Werner Guttmann --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com - To unsubscribe from this list, please visit: http

Re: [castor-user] Re: [castor-dev] Castor mapping jar packaging issues with castor-1.3.3-core.jar, castor-1.3.3-xml.jar, and castor-1.3.3.jar

2014-02-15 Thread Werner Guttmann
}/ pathelement location=${commonsLang}/ or do re-packaging, as Jeff has proposed. Just try it your self! Best regards, Dmytro On Fri, Feb 14, 2014 at 7:58 PM, Werner Guttmann wgut...@codehaus.org mailto:wgut...@codehaus.org wrote: Hi Jeff, you should NOT have the castor-1.3.3

Re: [castor-user] Maulti wrap elements with location attribute without any extra java classes

2014-02-14 Thread Werner Guttmann
Hi, what precisely is your question ? You have attached a lot of artefacts (classes, mapping, ...), but what is your problem ? Kind Regards Werner On 12.02.2014 23:24, Arava, Srinivas wrote: Hi, I have also attached the sample project. Here is sample mapping. ?xmlversion=/1.0/

Re: [castor-user] How to map the following usecase - Pls assist.

2013-10-18 Thread Werner Guttmann
Hi, this is not easy to achieve with a standard mapping approach. It would be a lot easier if you could introduce an additional XML artefact that wraps act and leg instances. Would that be an option ? Kind Regards Werner On 10.10.2013 01:36, Titus Rakkesh wrote: Dear Friends, We have

Re: [castor-user] Source Generation Question

2013-09-27 Thread Werner Guttmann
Hi, On 26.09.2013 13:58, Matthew Pontius wrote: Hello, I am trying to generate source for a schema using the Ant task and Castor v1.3.3-rc1 (I have also tried Castor v1.3.2). The schema has an Import, and I have told the ant task not to generate code for the import. I also have a binding file

Re: [castor-user] Issue with generating schema object

2013-09-11 Thread Werner Guttmann
Hi Sherwin, I am not sure whether this is actually allowed by the XML Schema spec, but for the Castor XML source generator, this is currently something which is not supported. Kind Regards Werner On 30.08.2013 22:15, Sherwin wrote: Hi, I have been using castor for the last few months and

Re: [castor-user] lazy mappings always load their data

2013-06-28 Thread Werner Guttmann
Hi Justin, On 23.05.2013 20:56, Justin Case wrote: Hello group, I really don't get the idea of lazy loading. From the Castor site I read the following: Per definition, when an instance of Department is loaded through e.g. Database.load(), Castor will not (pre-)load the Employee instance

Re: [castor-user] No Introspector defined in properties!

2013-05-31 Thread Werner Guttmann
Hi Alvaro, that sounds odd to me. Given that the GET Resource does its job just fine, and that the expected XML is being returned, I don't think the problem actually is with castor in this case. I'd raise a question with the Spring OXM guys at their forum(s), and maybe post a link to the

Re: [castor-user] Lazy loaded collections not read-only

2013-05-08 Thread Werner Guttmann
Thanks, Justin. It looks like all required artefacts are in place, indeed. Werner On 03.05.2013 13:55, Justin Case wrote: Hi all, test case project created as attachment bug3248.zip and attached to JIRA. It uses HSQLDB in memory you only have to start it (it's a Maven project). HOW TO TEST: -

Re: [castor-user] Lazy loaded collections not read-only

2013-04-29 Thread Werner Guttmann
Hi 'user', mind creating a Jira issue at http://jira.codehaus.org/browsse/CASTOR and attach a fully working test case ? Whilst I have not been maintaining Castor JDO for a long time, I should still have some familiarity with that code area. Kind Regards Werner On 26.04.2013 01:33,

Re: [castor-user] Global field handler without mapping file

2013-04-19 Thread Werner Guttmann
Hi Howard, right now, such solution does not exist. Can I ask you what you are trying to achieve ? Kind Regards Werner On 19.04.2013 14:02, Mr. Howard Hill wrote: Hi, newbie here Is there a possibility of a global field handler without a castor mapping file, how can this be injected.

Re: [castor-user] Castor XML 1.3.1 marshals null Collections

2013-01-25 Thread Werner Guttmann
Hi Marc, can you please open Jira Issues for both problems ? Kind regards Werner On 23.01.2013 16:09, Marc Eyrignoux wrote: Up to now my project used an old version of Castor, like 0.9+, and I am working on a migration to the latest release, ie. 1.3.2 or 1.3.3-RC1. I am facing two problems:

Re: [castor-user] is this solution acceptable?

2012-12-20 Thread Werner Guttmann
Hi, just drop the 'inner' commit() and begin()s, as using one transaction across the complete loop should be just fine. Kind Regards Werner Guttmann On 20.12.2012 00:48, olmec wrote: db.begin(); while ( results.hasMore() ){ product = (model.objects.Product)results.next

Re: [castor-user] Is there exist built-in iteration over generated source in castor ?

2012-11-21 Thread Werner Guttmann
Hi, have you ever looked at Castor's source generator, which generates POJOs (+ XML bindings) from your XML schema. Any time your XML schema changes, simply re-generate the Java classes, and you should be set. Kind Regards Werner Guttmann On 15.11.2012 11:17, Yair Rinot wrote: Hi I'm

Re: [castor-user] Is there exist built-in iteration over generated source in castor ?

2012-11-21 Thread Werner Guttmann
a i r R i n o t From: Werner Guttmann wgut...@codehaus.org To: user@castor.codehaus.org, Cc: Yair Rinot/Haifa/IBM@IBMIL Date: 21/11/2012 03:17 PM Subject: Re: [castor-user] Is there exist built-in iteration over generated source in castor

Re: [castor-user] FW: castro 1.2 with Java 7

2012-11-06 Thread Werner Guttmann
Hi, I cannot see a reason why that should not work, but having said that, please note that's it's several years ago that I have touched Castor 1.2. I suppose you'll have to try things. Regards Werner On 01.11.2012 16:38, paris strikos wrote: Hello Team, I'm working on a project

Re: [castor-user] Broken links to castor reference guide

2012-10-23 Thread Werner Guttmann
Gerry, the junked HTML reference guide is now available. Regards Werner On 22.10.2012 02:42, Gerry Tan wrote: Dear Castor website admin, Just want to bring into attention that the links to Castor reference guide specified here: http://www.castor.org/reference-guide.html appears to be broken.

Re: [castor-user] Broken links to castor reference guide

2012-10-22 Thread Werner Guttmann
HI Gerry, can you please raise a Jira tciket, and I will fix this asap. Regards Werner On 22.10.2012 02:42, Gerry Tan wrote: Dear Castor website admin, Just want to bring into attention that the links to Castor reference guide specified here: http://www.castor.org/reference-guide.html

Re: [castor-user] NullPointer using XMLInstance2Schema

2012-09-12 Thread Werner Guttmann
Hi Alejandro, as attachments frequently get stripped off by mailing list servers, can I please ask you to create a new Jira issue at http://jira.codehaus.org/browse/CASTOR and attach all relevant files and/or instructions there ? Kind Regards Werner Guttmann On 11.09.2012 23:17, Alejandro

Re: [castor-user] NullPointer using XMLInstance2Schema

2012-09-11 Thread Werner Guttmann
Hi Alejandro, yes, this looks like a bug. But please do not forget to attach all relevant artefacts required so that we can easily replay your problem. In addition, please strip down the XML files as much as possible. Kind Regards Werner Guttmann On 11.09.2012 07:45, Alejandro Salas wrote

Re: [castor-user] Fwd: Problem with unmarshalling if xml file contains information about xsd

2012-09-06 Thread Werner Guttmann
schema using Castor's source generator, and you'll get that validation as part of the descriptor classes generated. Kind regards Werner Guttmann On 21.08.2012 11:01, Małgorzata Wolniewicz wrote: -- Wiadomość oryginalna -- Temat: Problem with unmarshalling if xml file contains

Re: [castor-user] How to map a collection within a nested tag?

2012-07-04 Thread Werner Guttmann
Hi John, ignoring that your clas mappings below do not define map-to / directives, the field mapping for Cart's itemsList property should be as follows: field name=itemsList collection=arraylist type=Item bind-xml name=item location=foo/items-list / /field This should do it. Regards

Re: [castor-user] [upgrade 0.9.x - 1.3.2] unmarshalling fails

2012-06-22 Thread Werner Guttmann
Hi Thomas, can I kindly to ask you to try things against the RC of Castor 1.3.3, where a few regression issues have been fixed that are in the context of the *ElementProcessor classes. If that does not improve things, we will have to look into this in more detail. Kind Regards Werner On

Re: AW: [castor-user] [upgrade 0.9.x - 1.3.2] unmarshalling fails

2012-06-22 Thread Werner Guttmann
Hi, in that case I'd like to see a test case that provides us with a minimal set of XML schema definitions and XML documents to replay the problem, and have them attached to a Jira issue. Please note the term *minimal* above. Kind Regards Werner On 22.06.2012 11:10, Papendieck, Thomas

Re: [castor-user] Unmarshalling sequence with optional elements

2012-06-20 Thread Werner Guttmann
Hi, assuming that you are using Castor's code generator to generate Java code from the XML schema definitions (correct me if I am wrong here), you'll get a batch of Java POJOs that more or less mirror the structures defined in your schema. Given that you've got some complexity in there

Re: [castor-user] Problem reading namespace (newbie)

2012-06-12 Thread Werner Guttmann
Hi Curt, please do not try to map 'attributes' such as 'xmlns:xsi' or 'xsi:schemaLocation', as those are handled by Castor internally (and completely automatically). As those are mainly namespace definitions, please leave this to Castor XML to handle. Once you remove those from your

Re: [castor-user] An immediate fix required on CASTOR-3222

2012-06-12 Thread Werner Guttmann
Hi John, I suppose you have seen my comments at http://jira.codehaus.org/browse/CASTOR-3222 ? Regards Werner On 07.06.2012 19:40, J p wrote: Hi Werner, As i am working on a hot project, i need an immediate response on the bug http://jira.codehaus.org/browse/CASTOR-3222. then only i can go

Re: [castor-user] Problem reading namespace (newbie)

2012-06-12 Thread Werner Guttmann
about the schemaLocation attribute, have a look at http://www.castor.org/javadoc/org/exolab/castor/xml/Marshaller.html#setSchemaLocation(java.lang.String) That should do the trick. Kind regards Werner Thanks for the help. Curt Werner Guttmann-6 wrote: Hi Curt, please do not try to map

[castor-dev] Re: [castor-user] An immediate fix required on CASTOR-3222

2012-06-11 Thread Werner Guttmann
? * If you supply me with a patch for the issue in question, I am more than happy to assess it and commit it (if possible). * Otherwise, please consider taking up professional services if you really need urgent help. Kind Regards Werner Guttmann On 07.06.2012 19:40, J p wrote: Hi Werner, As i am

Re: [castor-user] Not able to generate mapping files using MappingTool

2012-06-05 Thread Werner Guttmann
Hi, can you please raise a new ticket at Jira (http://jira.codehaus.org/browse/CASTOR), and attach the class that causes problems during creation of the mapping files. Please try to keep things at a minimum in general, as it will help us to track down the problem. Kind Regards Werner On

Re: [castor-user] xsi:type and hierarchy definition

2012-06-05 Thread Werner Guttmann
Hi, if that's your opinion, feel free to have it. But maybe you'd rather read up on a tool you are about to use *before* asking questions in the future. Asking questions is one thing, asking educated questions something completely different. Kind regards Werner On 30.05.2012 02:30, J p

Re: [castor-user] xsi:type and hierarchy definition

2012-06-05 Thread Werner Guttmann
Hi, if that's your opinion, feel free to have it. But maybe you'd rather read up on a tool you are about to use *before* asking questions in the future. Asking questions is one thing, asking educated questions something completely different. Kind regards Werner On 30.05.2012 02:30, J p

Re: [castor-user] Castor newbie: Codegen for CityGML fails ...

2012-06-05 Thread Werner Guttmann
, Peter On 06/04/2012 12:40 PM, Werner Guttmann wrote: Hi Peter, I'd need to look into this in more detail. Can I ask you to create a Jira issue and attach an absolute minimalistic XML schema set that allows me to replay your problem. Please refrain from attaching all XML schemas, as I am

Re: [castor-dev] XML Validation with its XSD Schema when marshalling and unmarshalling

2012-06-04 Thread Werner Guttmann
Hi, On 28.05.2012 02:54, J p wrote: Hi Werner, i neeed to validate pojo xml ( not mapping xml ) with its xsd when marshalling and unmarshalling with castor. How can i validate xml with xsd on castor? Why don't you generate java sources from the XML schema, and rely on Castor and its

Re: [castor-user] Castor newbie: Codegen for CityGML fails ...

2012-06-04 Thread Werner Guttmann
Hi Peter, I'd need to look into this in more detail. Can I ask you to create a Jira issue and attach an absolute minimalistic XML schema set that allows me to replay your problem. Please refrain from attaching all XML schemas, as I am not in a position to cross-check things when there's

[castor-dev] Re: [castor-user] namespace issue

2012-06-04 Thread Werner Guttmann
Hi, On 29.05.2012 02:57, J p wrote: Marshaller marshaller = context.createMarshaller(); marshaller.setMapping(mapping); marshaller.setWriter(writer); marshaller.setNamespaceMapping(,http://www.books.com/120;); marshaller.setSuppressNamespaces(true); the xml

Re: [castor-user] [castor-dev] Unmarshalling with different namespaces

2012-05-16 Thread Werner Guttmann
: This doesn't solve my issue. I don't have a problem with the clc-prefixed elements, they are unmarshalled correctly, only with the default namespace elements (ID, year, quarter, amount). Werner Guttmann-6 wrote: Hi, switching this conversation to the user list, as that's where it should take

[castor-user] First release candidate for castor 1.3.3

2012-04-24 Thread Werner Guttmann
Hi, I have just made available a first release candidate for Castor 1.3.3. Please report any regression issues at the Jira instance at the Codehaus [1]. In addition, please test the issues already fixed in this release as indicated [2] and close if appropriate. Kind Regards Werner Guttmann

Re: [castor-user] First release candidate for castor 1.3.3

2012-04-24 Thread Werner Guttmann
regards Werner On 24.04.2012 18:14, xzh...@yahoo.com wrote: Hi Werner, castor-xml is Java 6 binary. Are you dropping Java 6 support? Thanks, Xiaohong --Original Message-- From: Werner Guttmann To: annou...@castor.codehaus.org To: user@castor.codehaus.org ReplyTo: user@castor.codehaus.org

Re: [castor-user] issues with setting the default name space

2012-04-20 Thread Werner Guttmann
You are welcome. Kind Regards Werner On 19.04.2012 17:27, Priya B wrote: You are right, I was not mapping all the classes, looks like I have to do that. Now I get the correct namespace. Thankyou, Prioya Date: Thu, 19 Apr 2012 09:15:20 +0200 From: wgut...@codehaus.org To:

Re: [castor-user] xsi namespace not added

2012-04-20 Thread Werner Guttmann
Hi Sebastian, what version of castor are you using ? And can you show us the code that you use to produce the XML ? And the relevant mapping file fragment ? Kind Regards Werner On 20.04.2012 00:48, Sebastian Montero wrote: Hi, I'm having a problem with castor marshaller, its producing an

Re: [castor-user] issues with setting the default name space

2012-04-19 Thread Werner Guttmann
Hi, have you mapped *all* classes of your domain to a namespace (uri) ? Regards Werner On 18.04.2012 22:02, Priya B wrote: This does not work. I had tried that earlier but with the below suggestion my output xml has a empty xmlns= as an attribute to some of the tags. mapping class

[castor-user] Snapshot release for Castor 1.3.3

2012-04-17 Thread Werner Guttmann
Hi everybody, I am in the process of uploading a new snapshot release of Castor 1.3.3 to the Codehaus' snapshot repository. Hopefully, this will be the last snapshot being built before making available a first release candidate for Castor 1.3.3 within the next two days. As always, any

Re: [castor-user] Failing to unmarshall

2012-04-16 Thread Werner Guttmann
why we are seeing these issues, configuration, setup a known bug? Sorry, but that questions is not clear to me. What is it that you wanted to know ? Regards Werner Thanks Mike. -Original Message- From: Werner Guttmann [mailto:wgut...@codehaus.org] Sent: 03 April 2012 19:43 To: user

Re: [castor-user] Regular expression evaluator from default castor.properties not defined

2012-04-13 Thread Werner Guttmann
Message- From: Werner Guttmann [mailto:werner.guttm...@gmx.net] Sent: Tuesday, April 03, 2012 2:40 PM To: user@castor.codehaus.org Cc: Stevens, Gary (NC627A) Subject: Re: [castor-user] Regular expression evaluator from default castor.properties not defined Hi, did you add the JAR

Re: [castor-user] issues with setting the default name space

2012-04-13 Thread Werner Guttmann
Hi, Why are you trying to map one namespace uri (hl7-org:v3/voc) more than once, i.e. to an explicit namespace prefix *and* the default namespace ? Kind regards Werner On 08.04.2012 22:02, Priya B wrote: Below are the first few lines of the xml I get and the mapping. I do not understand why

Re: [castor-user] One Array List Collection Field Multiple XML Elements

2012-04-09 Thread Werner Guttmann
Hi Tim, I don't think that's actually possible with Castor XML. Kind Regards Werner On 06.04.2012 23:55, Tim Milstead wrote: I have a single array list collection field, e.g. addressLines that I want to unmarshall from multiple XML elements, e.g.C_ADDRESS1, C_ADDRESS2, etc. Each XML element

Re: [castor-user] Regular expression evaluator from default castor.properties not defined

2012-04-03 Thread Werner Guttmann
Hi, did you add the JAR for the Jakarta libraries ? Can I take it that the problem actually occurs upon (un-)marshalling ? Kind regards Werner On 22.03.2012 17:46, Stevens, Gary (NC627A) wrote: Hi all, I am trying to update the version of Castor my application uses from 0.9.5.3 to 1.3.2. I

Re: [castor-user] Failing to unmarshall

2012-04-03 Thread Werner Guttmann
Hi Mike, can I please ask you to test against current TRUNK and report back your findings ? I am suprised that you had those issues with 1.3.1 (when I would have expected to see 1.3.2 mentioned here), but current trunk has seen a lot of bug fixes applied. Kind Regards Werner On 28.03.2012

Re: [castor-user] Unmarshalling a stream with no mappable element should return null or throw an exception

2012-03-15 Thread Werner Guttmann
is not expected. Other than that ... there's nothing right now. Regards Werner Guttmann I could parse the String myself, looking for amyBean tag, but I would prefer the tag name to stay configurable in the Castor mapping file. Thanks in advance and many thanks for your great Castor library. Arnaud Dumont

Re: [castor-user] castor 1.3.3

2012-02-29 Thread Werner Guttmann
No, it hasn't. But yes, you are right, it is quote over-due. Regards Werner On 25.02.2012 15:18, xzh...@yahoo.com wrote: Hi, Has 1.3.3 been released yet? According to JIRA, it should've been out 12/JUL/11 which iis more than 6 months ago. We really need the fix for CASTOR-3114 to upgrade

Re: [castor-user] castor mapping generation throwing error : Unable to resolve ID for instance of class 'java.lang.String'

2012-02-21 Thread Werner Guttmann
Hi, I am not sure, but it could be that support for the XML schema construct is faulty/incomplete. Why not look at the sources and at least identify the culprit ? Cheers Werner On 22.02.2012 02:10, Pradeep_s83 wrote: While generating castor mapping and classes , i am getting following

Re: [castor-user] How to marshall null fields and empty collections to empty elements

2012-02-15 Thread Werner Guttmann
Hi, I'd have to try this myself first to give you a precise answer, but you could have a look at the 'required' attribute. Regards Werner On 07.02.2012 18:23, Alessandro wrote: Hello everybody, I started using Castor a few weeks ago, quite happily until now. But I came across an issue I

Re: [castor-user] Trying to unmarshall Map when mixed with non-matching sibling nodes

2012-02-15 Thread Werner Guttmann
Hi, as I don't know anythign baout your Java classes, this is hard to tell. But it it looks like within bind-xml name=item.value node=element / 'item.value' is causing your problems. Regards Werner On 31.01.2012 17:25, Stacy Young wrote: Hi All, I'm trying to unmarshall the portion

Re: [castor-user] Castors not pooling the parsers - causes performance issues under extreme load

2012-02-15 Thread Werner Guttmann
, it dies, indeed. Though thinking about this a little bit longer, I cannot think of an easy and intuitive way of approaching said subject. But feel free to raise a Jira issue and share your thoughts with us Kind Regards Werner Guttmann Following is snapshot thread blocking I mentioned

Re: [castor-user] Castor marshalling xmlns not coming for enum type

2011-11-08 Thread Werner Guttmann
Hi, can you please open a new issue at Castor's Jira, and attach a working test case that allows us to replay the problem at hand. Kind Regards Werner On 03.11.2011 19:14, Pradeep_s83 wrote: Hi, I am using spring castor marshalling . In the generated xml , for enum types xmlns attribute is

Re: [castor-user] Ant task classpathref for castor.class.path should be set what?

2011-11-08 Thread Werner Guttmann
Oops, sorry, my fault. You are looking at the right documentation. Kind Regards Werner Guttmann On 03.11.2011 12:44, Kayode Odeyemi wrote: On Thu, Nov 3, 2011 at 11:27 AM, Werner Guttmann wgut...@codehaus.org mailto:wgut...@codehaus.org wrote: Hi, On 03.11.2011 10:30, Kayode Odeyemi

Re: [castor-user] Ant task classpathref for castor.class.path should be set what?

2011-11-03 Thread Werner Guttmann
Werner Guttmann On 02.11.2011 19:33, Kayode Odeyemi wrote: Hello all, First time poster here. Please what is castor.class.pathin ant build file meant to be set to for castor? Thanks -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde

Re: [castor-user] Ant task classpathref for castor.class.path should be set what?

2011-11-03 Thread Werner Guttmann
Hi, On 03.11.2011 10:30, Kayode Odeyemi wrote: On Thu, Nov 3, 2011 at 8:51 AM, Werner Guttmann wgut...@codehaus.org mailto:wgut...@codehaus.org wrote: Hi, looking at the documentation for the Ant task for the XML code generator at http://castor.org/reference/__html

Re: [castor-user] Any node conflicting element with exsiting descriptor

2011-10-28 Thread Werner Guttmann
Solutions Limited, Barrington House, Heyes Lane, Alderley Edge, Cheshire. SK9 7LA Registered in England and Wales No: 04678711 On 27/10/2011 13:05, Werner Guttmann wrote: Hi, could you please create a new Jira ticket and attach all this information, incl. the test case. Kind Regards Werner

Re: [castor-user] XSD - Java data type mapping

2011-10-27 Thread Werner Guttmann
Hi Alex, On 26.10.2011 02:03, Alex Milanovic wrote: Hi, I noticed that Castor 1.3.2 SourceGenerator mapped both nonNegativeInteger and positiveInteger (in XSD) to long (in Java). However, the SourceGenerator User Document states that nonNegativeInteger and positiveInteger map to int. As I

Re: [castor-user] Any node conflicting element with exsiting descriptor

2011-10-27 Thread Werner Guttmann
Hi, could you please create a new Jira ticket and attach all this information, incl. the test case. Kind Regards Werner Guttmann On 25.10.2011 23:02, seper...@planet.nl wrote: I have added a test case in the form of an Eclipse project (adjust classpath settings). Furthermore I have done

Re: [castor-user] substitutionGroup and Source Generator‏

2011-10-20 Thread Werner Guttmann
class? It will, as global element defs will still be considered. There's even s small section on precisely this in the reference guide. Kind Regards Werner Thanks, Alex -Original Message- From: Werner Guttmann [mailto:wgut...@codehaus.org] Sent: Wednesday, October 19, 2011 12:42 AM

Re: [castor-user] How to avoid generating Java classes for element groups?

2011-10-19 Thread Werner Guttmann
off the generation of Java classes for element groups? No, not to my knowledge. Having said that, though, does it really make a difference, when the XML produced/parsed matches the XML schema given ? Or do you need the classes generated for other things as well ? Regards Werner Guttmann

Re: [castor-user] Globally overriding data type mapping in SourceGenerator

2011-10-19 Thread Werner Guttmann
Hi Alex, On 18.10.2011 21:11, Alex Milanovic wrote: Hi, Is there a way to globally override the data type mapping in Source Generator? No, it is not possible. But I cannot think of a reason why this could no be added to the feature set. Kind Regards Werner For sure one can do it on a

Re: [castor-user] Globally overriding data type mapping in SourceGenerator

2011-10-19 Thread Werner Guttmann
Hi Alex, On 18.10.2011 21:11, Alex Milanovic wrote: Hi, Is there a way to globally override the data type mapping in Source Generator? No, it is not possible. But I cannot think of a reason why this could no be added to the feature set. Kind Regards Werner For sure one can do it on a

Re: [castor-user] substitutionGroup and Source Generator‏

2011-10-19 Thread Werner Guttmann
/ /elementBinding I looked at the documentation of SourceGenerator and the Castor Reference Guide but didn't find a way to work around this problem. Should I open a bug/CR report? Thanks Alex -Original Message- From: Werner Guttmann [mailto:wgut...@codehaus.org] Sent: Friday, December

Re: [castor-user] SourceGenerator - don't prompts the user on identical local elements

2011-10-19 Thread Werner Guttmann
seetings on euser might apply during code generation. Having said that, I am more than willing to work with anybody on such feature to gain a better understanding. Thanks Alex Kind Regards Werner Guttmann - To unsubscribe

Re: [castor-user] Line breaks during Unmarshall process

2011-10-18 Thread Werner Guttmann
in later released. Kind Regards Werner Guttmann On 17.10.2011 09:00, Mohit Raj wrote: Recently I found a work around for this problem, so wanted to share this across. 1. Replace xercesImpl.jar with sax.jar from http://www.saxproject.org 2. Upgrade castor-1.0.2.jar to castor-1.2.jar 3. Configure

Re: [castor-user] Unmarshall raw xml segment with right namespace

2011-10-18 Thread Werner Guttmann
Hi, have you got a test case that I could use to debug your problem ? If yes, please create a new Jira issue and attach the test case (including all required files). Kind Regards Werner Guttmann On 17.09.2011 12:31, seper...@planet.nl wrote: Hello, I have a question about marshalling raw

Re: [castor-user] Castor Performance Degradation - Can INFO messages, .cdr file or lot's of classes be the cause of it?

2011-10-03 Thread Werner Guttmann
Hi, what is the actual size of of the String before unmarshalling ? Regards Werner Guttmann On 29.09.2011 23:30, Richard2011 wrote: Sure, I'm having around 29 Objects that are filled up when I unmarshalled a big String. Those Objects are parsed out using a mapping.xml file, like

Re: [castor-user] description in mapping files and Castor 1.3.2

2011-09-29 Thread Werner Guttmann
Hi Stevo, I remember that we had a small issue with an inconsistence between DTSs and Xml schema for the mapping file after the 1.3.2 release, but that has been fixed. I have never seen what you are seeing, to be honest ? Can you show me a sample mapping file where yoou are seeing this

Re: [castor-user] Castor Performance Degradation - Can INFO messages, .cdr file or lot's of classes be the cause of it?

2011-09-28 Thread Werner Guttmann
with generated POJOs ? Kind Regards Werner Guttmann By the way, I'm using castor.1.3.2. Does Xerces/Xalan newest versions will have any improvement if I set it up in my project? Anyway, thank you for your help! Thom Hehl-2 wrote: Hi, Richard! If you look through the documentation

Re: [castor-user] Castor Performance Degradation - Can INFO messages, .cdr file or lot's of classes be the cause of it?

2011-09-27 Thread Werner Guttmann
Hi, I can only second that statement about the (non-) cost of logging. Having said that, what kind of degradation are you actually observing ? Can you share some information with us on this subject ? Kind Regards Werner Guttmann On 26.09.2011 20:42, Thom Hehl wrote: Hi, Richard! If you

Re: [castor-user] using Queue as a collection

2011-09-16 Thread Werner Guttmann
Hi Alan, why not create a feature request over at http://jira.codehaus.org/browse/CASTOR, and work with us on gettin this collection type potentially added. Kind Regards Werner Guttmann On 16.09.2011 17:29, Alan Hawrelak wrote: I am trying to use castor 1.3.1, where a collection

Re: [castor-user] Castor mapping file neded or not

2011-08-28 Thread Werner Guttmann
Hi, On 26.08.2011 08:33, Pradeep_s83 wrote: Hi, I have generated java classes from xsd using castor source generation. Now for marshalling and unmarshalling do i need to use a castor mapping file? No, as during source code generation both POJOs and descriptor classes have been generated.

Re: [castor-user] XML entity encoding

2011-08-23 Thread Werner Guttmann
Hi, that's actually not Casto's job to do. Internally, Castor relies on Xerces XML serializing capabilities, so there's no way to 'force things'. What does your Xml actually look like ? Cheers Werner On 22.08.2011 20:59, Papendieck, Thomas wrote: Hi, how do I force castor-xml to convert

Re: [castor-user] [XML-Codegeneration] let setters return 'this'

2011-08-19 Thread Werner Guttmann
Ho Thomas, I had a couple of thoughts on a similar subject (adding more fluency to Castor at a general level), but can I please ask you to defer this discussion to until GSoC has finished completely (which is not more than a few days off). I am not really in favour of simply changing all

Re: [castor-user] [1.3.1] marshaller.setProperty(org.exolab.castor.indent, true); not working

2011-08-09 Thread Werner Guttmann
Hi, as far as I remember, there were a lot of refactorings that got integrated into the 1.3.1 release, one of which rendered that feature useless again .. :-(. Now to my knowledge it was fixed for 1.3.2 again (a quick look into Jira should clear this up), and as part of 1.3.3 we are giving that

Re: [castor-user] I need to use combination of keys in HashMap

2011-08-04 Thread Werner Guttmann
Not to my knowledge. Cheers Werner On 04.08.2011 15:33, Giriraj Bhojak wrote: Can the field named key in the class mapping of org.exolab.castor.mapping.MapItem to point to more than one key? I mean I want to use two concatenated strings (fields )as the key in the hashmap. Thanks,

Re: [castor-user] Unmarshalling multiple xml to one class

2011-07-14 Thread Werner Guttmann
that is *not* ambiguous. In your case, the mapping information you provide would be sufficient for the unmarshalling side of things, but would be AMBIGUOUS for marshalling (see my question below). As such, this is currently not supported out of the box. Regards Werner Guttmann On 14.07.2011 11

Re: Rv: Re: [castor-user] Re: Castor 1.3.1 is not available on MvnRepository

2011-07-12 Thread Werner Guttmann
Hi, can I ask you a simple question ? Are you just downloading the JARs from those Maven repository pages, or are you really using Maven as a build tool ? It looks like you are not using Maven, as if you specified the dependency to castor-xml, Maven would download all (transitive) dependencies

Re: [castor-user] Unmarshalling to empty string

2011-05-31 Thread Werner Guttmann
Hi, On 31.05.2011 11:03, ranbaab wrote: Hi all, I am working on a web based application deployed on tomcat and planning to move to geronimo. The application was deploy to geronimo tomcat and run successfully(partially). Some of the page are having issue due to null pointer exception

Re: [castor-user] Re: [user-castor] - Lack of ValidationMessages resource bundle

2011-05-16 Thread Werner Guttmann
Hi, that issue has already been fixed as part of 1.3.3 (on-going). Regards Werner On 16.05.2011 13:14, João Antunes wrote: Ok, got stuck at the mvn jar which gave me the output: [INFO] Invalid task 'jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or

Re: [castor-user] cannot find method setPattern

2011-05-10 Thread Werner Guttmann
Hi Anca, On 09.05.2011 17:18, Anca Dobrescu wrote: Hi everyone - I'm trying to use Castor XML Code generator 1.3.2 in my project. I'm invoking it through the Maven 2 plugin. What version are you using here ? I'm having the following error: *cannot find symbol symbol : method

Re: [castor-user] - Castor and Java annotations

2011-05-09 Thread Werner Guttmann
Hi Joao, On 09.05.2011 09:05, João Antunes wrote: Hello! First of all, thanks for the contribute given to the O.S. community that the castor lib represents; also, please accept my apologies if an answer for this question already exists, meaning that I didn't search thoroughly enough for

Re: [castor-user] Re: [castor-dev] Thinking about Castor 1.3.3

2011-05-03 Thread Werner Guttmann
feedback and input during the last few weeks. And please do not hesitate to ask questions as a result of this email. Kind Regards Werner Guttmann - To unsubscribe from this list, please visit: http://xircles.codehaus.org

Re: [castor-user] castor unmarshalling with xmlns and xmlns:xsi in root elemet with a mapping file

2011-04-28 Thread Werner Guttmann
Hi Patrick, let's have a look at the root element of your XML instance: content xmlns=http://www.eclipse.org/jubula/client/archive/schema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; ... /content Clearly, you want the content element to be in the

[castor-user] First snapshot release for 1.3.3

2011-04-28 Thread Werner Guttmann
., in other words anything that *substantially* eases our lives as committers. Kind Regards Werner Guttmann [1]: http://nexus.codehaus.org/snapshots/org/codehaus/castor [2]: http://jira.codehaus.org/browse/CASTOR

Re: [castor-user] Line breaks during Unmarshall process

2011-04-23 Thread Werner Guttmann
the 14111 character position(mentioned in earlier in thread) as that was the position reported of tab delimited file from which the attached XML has been generated. Thanks, Mohit Raj -Original Message- From: Werner Guttmann [mailto:wgut...@codehaus.org] Sent: Wednesday, January 05

Re: [castor-user] [XML] Is it possible for Castor to generate POJOs AND mapping file from .xsd?

2011-04-20 Thread Werner Guttmann
Hi Matthew, On 14.04.2011 23:50, Matthew Erler wrote: I have an Eclipse project that uses the Maven jaxb2 plugin to generate POJOs from an .xsd. Castor then uses those POJOs to pass data into a method in my web service application. So now when the .xsd is updated a quick 'mvn package'

[castor-user] Thinking about Castor 1.3.3

2011-04-20 Thread Werner Guttmann
questions as a result of this email. Kind Regards Werner Guttmann - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Re: 答复: [castor-user] Exception while mapping a java.util.List attribute

2011-04-19 Thread Werner Guttmann
What kind of objects does your list actually hold ? Are there subclasses of Vehicles ? What XML are you actually getting, and what XML artefacts would you like to see produced ? Cheers Werner On 19.04.2011 13:02, Jose Antonio wrote: Thank you for your reply. It works fine, but now, I'm having

Re: [castor-user] Re: UnmarshalHandlerMessages ValidationMessages

2011-04-15 Thread Werner Guttmann
Yes, you are right, they should be in those files. And the Maven JARs uploaded to the Codehaus repo (and replicated globally) have those resource file included. It's only with the regular JARS available at http://dist.codehaus.org/castor that seem to have these problems. And I guess this is a

[castor-user] Re: [castor-announce] [ANNOUNCEMENT] Castor 1.3.2 Released

2011-04-12 Thread Werner Guttmann
Hola Victor, I have just re-uploaded the JARs for the XML and DDLGEN parts of Castor so that all files are 1.5-compliant. Kind Regards Werner Guttmann On 07.04.2011 19:54, Werner Guttmann wrote: Hola Victor, let me look into this in detail. The Maven build is definitely configured

Re: [castor-user] Castor xml: some problems of using the include of mapping element.

2011-04-07 Thread Werner Guttmann
Hi, is this actually a regression issue with Castor 1.3.2, or are you reporting an issue that has been in place already with previous versions as well ? Anyhow, please raise a Jira issue with this information. Kind Regards Werner On 07.04.2011 06:35, 吕晓一 wrote: The attached is my test code.

Re: [castor-user] Castor XML: how to reuse the field-handler by implementintg the ClonableFieldHandler

2011-04-07 Thread Werner Guttmann
Hi Craig, Hi ?, the test case used in this issue used to work for me before applying that patch. So in case there's still code that does not work, I'd love to know. Kind Regards Werner On 07.04.2011 16:27, Craig Tataryn wrote: Hello, this is a known issue. We thought we might have had a

Re: [castor-user] Unable to find the Field description for an XML simple type element

2011-04-07 Thread Werner Guttmann
Hi Mark, can I please ask you to attach those files to a Jira issue, and even better, provide me with one more more test cases that enable us to replay the problem(s) at hand. Thanks in advance Werner On 07.04.2011 17:51, Mark Harvey wrote: We are currently using Castor to un/marshal our XML,

  1   2   3   4   5   6   7   8   9   10   >