[castor-dev] dependent objects/inheritance bug?

2003-02-13 Thread Woolly Mammoth
Hi all, i am having trouble with some dependent objects of a subclass (both java & castor inheritance). The super class (Content) works fine, but its subclass (Folder) never loads any dependent objects, if only loads the class & super class attributes... any ideas ? btw it does write the depend

[castor-dev] SourceGenerator set the data type of an attribute to its ownclass

2003-02-13 Thread Liheng Qiao
Hi! I just started to use Castor today. Classes generated from the XML schema file look great. But all attributes are defined using their own "classes" as their data types. Is there any way that I can tell SourceGenerator to use String as the data type for all attributes? -- cheers, Qiao Lihen

[castor-dev] [XML] newlines and indenting

2003-02-13 Thread Paul Christmann
I have my marshalling configured to turn indenting on to produce easier-to-read-in-a-plain-text-editor xml (mostly for debugging purposes): org.exolab.castor.indent=true But I'm marshalling strings that contain embedded newlines: "multiline\nstring". In this environment, the newline gets swall

Re: [castor-dev] Generated XSD from mapping file or Source?

2003-02-13 Thread Keith Visco
I'd also like to mention that one of my colleagues at Intalio is working on such a tool to create an XML Schema from Java classes using Castor's introspector + descriptors. He's doing this for an internal project, but he mentioned to me that he'll be contributing it back to the project when he's f

[castor-dev] SourceGenerator test fails

2003-02-13 Thread Chad Skeeters
Hey, I'm researching castor for a project my company is developing. First off, I think the Source Generator is a great idea and should save allot of development time for my company. Any way, I downloaded the Full CVS snapshot and ran the test.sh located in /src/examples/SourceGenerator. Castor ge

Re: [castor-dev] Generated XSD from mapping file or Source?

2003-02-13 Thread Arnaud Blandin
Actually Castor has a tool to create an XML schema from an XML file. It is not perfect of course but it does a very good job in most of the cases. Please take a look at org.exolab.castor.xml.schema.util.XMLInstance2Schema and let us know how it works for you. Thanks, Arnaud > -Original Messa

Re: [castor-dev]

2003-02-13 Thread John McDonald
>> I recommend opening up an enhancement request for this.. Done. Bugzilla Bug 1210. Thank you Keith. -john:m -Original Message- From: Keith Visco [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] It's definately bee

Re: [castor-dev]

2003-02-13 Thread Keith Visco
It's definately been asked before, and I think it's a good idea. That's why I created the transient attribute for bind-xml a long time ago. I can certainly add the changes for the sql element, but this would be better suited for someone from the JDO team since they are more familiar with the JDO

Re: [castor-dev] Generated XSD from mapping file or Source?

2003-02-13 Thread Phil Pinel
Hi, Not having this requirement, I haven't looked too deeply into it, but I know that there are tools for inferring an XSD from several XML files. Since you can marshal the JavaBeans into XML from Castor, you could use this to create some sample data and then use an inference tool. One tool which

Re: [castor-dev] namespace(two schemas) question

2003-02-13 Thread Dean Hiller
thanks keith, sorry about asking an xsd question here.  Believe it or not I think I know castor better than I do xsd's.  Up until now I was completely new to xsd's. dean Keith Visco wrote: Hi Dean, You need to import your other schema into the one you're trying to generate the code for as

Re: [castor-dev]

2003-02-13 Thread John McDonald
Rhett, Well, that's a lot easier, and far less error prone, than the way I'm doing it today. Thanks for the creative solution. -john:m -Original Message- From: Rhett Sutphin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:57 AM To: [EMAIL PROTECTED] Subject: Re: [castor-de

Re: [castor-dev] Marshalling Date's to XML

2003-02-13 Thread Keith Visco
> Jeremy Nix wrote: > > I have a few objects that contain date variables that I wish to be > marshalled out to prospective XML documents. Is it possible to set > the date format that the marshalling process should use? I realize > there are other options such as creating formatted accessors i

Re: [castor-dev]

2003-02-13 Thread Rhett Sutphin
On Thursday, February 13, 2003, at 01:08 PM, John McDonald wrote: All, Are there any plans for implementation of this functionality? I'm getting weary having to manage two, 25,000 line, mappings files. One for my incoming XML and one for the database. It would be _really_ nice if I could simpl

Re: [castor-dev] namespace(two schemas) question

2003-02-13 Thread Keith Visco
Hi Dean, You need to import your other schema into the one you're trying to generate the code for as such: http://a-standard-protocol"; schemaLocation="..."/> --Keith Dean Hiller wrote: > > Sorry if this is a stupid question for those more knowledgable about > schemas > > I have a schem

[castor-dev] Generated XSD from mapping file or Source?

2003-02-13 Thread Darren Govoni
Hi, Is there an easy way to generate a schema XSD from either a castor mapping file or set of JavaBeans? Thanks! Darren --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe cast

[castor-dev]

2003-02-13 Thread John McDonald
All, Are there any plans for implementation of this functionality? I'm getting weary having to manage two, 25,000 line, mappings files. One for my incoming XML and one for the database. It would be _really_ nice if I could simply mark a sql field as transient and castor would simply ignore reading

Re: [castor-dev] ORA-00020: maximum number of processes (150) exceeded

2003-02-13 Thread bryan davis
This is an issue with your database server exceeding the maximum allowed number of processes to service user requests.  To increase this parameter, you'll have to edit your init.ora or spfile and increase the processes parameter.  This will require a restart of the database. - Origina

[castor-dev] ORA-00020: maximum number of processes (150) exceeded

2003-02-13 Thread Phillip Tricoli
What do I have to set in oracle to get around this error?

[castor-dev] Bug 1045

2003-02-13 Thread Ralf Joachim
Hallo Mickael, after searching Bugzilla I found that you are assigned to bug 1045. Can you please tell me about the status of the fix? As we need this for our application, I can contribute to the fix if you want me to. Regards Ralf ---

[castor-dev] unmarshalling and remarshalling with type method???

2003-02-13 Thread Dean Hiller
I unmarshall and object that was generated using the type method using Unmarshaller u = new Unmarshaller((Class)null); Object o = u.unmarshal(Reader r); Now how do I know what object I just unmarshalled such that I can marshall it back when it comes time. Maybe there should be a public ObjectI

Re: [castor-dev] namespace(two schemas) question

2003-02-13 Thread Dean Hiller
never mind, that was an xsd question not a castor question, sorry I am a beginner at this schema stuff. thanks, dean Dean Hiller wrote: Sorry if this is a stupid question for those more knowledgable about schemas I have a schema with targetNamespace="http://www.avaya.com/something"; xmlns:

[castor-dev] More Info About Feature!

2003-02-13 Thread Gaspar Gonzalez Oliva
Hi All, In < Status, To Do\ What's missing > Section i read : "Work *was* under way on a direct SQL->XML bridge ..." I want to work on this, but i need to know if someone know about previous work & any information related with it, like white paper, ideas, UML Diagram, Code or any other thing tha

[castor-dev] namespace(two schemas) question

2003-02-13 Thread Dean Hiller
Sorry if this is a stupid question for those more knowledgable about schemas I have a schema with targetNamespace="http://www.avaya.com/something"; xmlns:xxx="http://a-standard-protocol"; xmlns:ava="http://www.avaya.com/something"; I have already generated code for the standard schema so

Re: [castor-dev] Please remove me from this mailing list

2003-02-13 Thread Dean Hiller
you sent to wrong e-mail It is [EMAIL PROTECTED] dean Ashish Kulkarni wrote: Hi, How do i unsubscribe from this mailing list, i did send a mail to [EMAIL PROTECTED] with unsubscribe castor-dev but the mail bounced Ashish __ Do you Yahoo!?

Re: [castor-dev] SourceGenerator Question

2003-02-13 Thread Dean Hiller
use type generation vs. element generation. The web documentation is pretty good on this and so is the pdf. Dean Richard Jones wrote: I have te following schema and I used the source generator with the following command "java org.exolab.castor.builder.SourceGenerator -i Protocol.xsd -f -types

[castor-dev] Please remove me from this mailing list

2003-02-13 Thread Ashish Kulkarni
Hi, How do i unsubscribe from this mailing list, i did send a mail to [EMAIL PROTECTED] with unsubscribe castor-dev but the mail bounced Ashish __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com

Re: [castor-dev] Differences between type-method and element-methodgeneration

2003-02-13 Thread Dean Hiller
yes, that is definitely a pretty good document, but I don't think it captures the intracacies I tried to capture below. Below I am trying to point out two things I had wish I known early on that the pdf does not point out(The disadvantage of each method I had noted). Don't get me wrong, that

[castor-dev] SourceGenerator Question

2003-02-13 Thread Richard Jones
I have te following schema and I used the source generator with the following command "java org.exolab.castor.builder.SourceGenerator -i Protocol.xsd -f -types j2 -package test" When the source generator was finished it had generated 42 java files. My question is : Is this natural and is there

[castor-dev] Marshalling Date's to XML

2003-02-13 Thread Jeremy Nix
Title: Marshalling Date's to XML I have a few objects that contain date variables that I wish to be marshalled out to prospective XML documents.  Is it possible to set the date format that the marshalling process should use?  I realize there are other options such as creating formatted access

Re: [castor-dev] Differences between type-method and element-method generation

2003-02-13 Thread Arnaud Blandin
Hi Dean, I thought I included such an example in the documentation I wrote for the Source Generator (the pdf one available online, the latest revision is dated from July 2001 but it still presents the functionalities of the Source Generator.). If it is not in the doc, I will update it. Thanks, A

Re: [castor-dev] Source Generator Binding File not valid

2003-02-13 Thread Arnaud Blandin
Hi Serg, This bug is listed in our bugzilla and will be closed very soon http://bugzilla.exolab.org/show_bug.cgi?id=1207 Arnaud > -Original Message- > From: Serg Maslyukov [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 3:06 PM > To: [EMAIL PROTECTED] > Subject: [castor-d

[castor-dev] Question about LockNotGrantedException

2003-02-13 Thread Ken Burcham
Hi everyone,     We’re having a problem in a system that’s in production using castor JDO.  We are getting the following exception intermittently:   org.exolab.castor.jdo.LockNotGrantedException: persist.deadlock   at org.exolab.castor.persist.ObjectLock.detectDeadlock(Unknown Sour

[castor-dev] Source Generator Binding File not valid

2003-02-13 Thread Serg Maslyukov
Hi -//EXOLAB/Castor Binding Schema Version 1.0//EN http://castor.exolab.org/binding.xsd is not valid. Line 149 Can you check this? Serg = WebMill - Free XML/XSLT java-based portlet engine. http://webmill.askmore.info __ Do you Yahoo!? Y

Re: [castor-dev] Differences between type-method and element-methodgeneration

2003-02-13 Thread Dean Hiller
Loïc,                 My answer is below.  Hopefully it is pretty accurate. Castor team,                 Can someone copy this to the website(after correcting possibly)?  I know this would have helped me tremendously from the beginning if I knew this up front. Example XSD.        

Re: [castor-dev] improve performance further by ... times

2003-02-13 Thread Dean Hiller
well my 5 times perf. fix is exactly that, I need a hook to put in crimson which does not exist today. For large files you will probably get 5 times the perf. also(Try doing what I said in the source code and run some benchmarks for large files). The more people that ask the castor team to

Re: [castor-dev] UML Diagrams / Design docs for Castor ?

2003-02-13 Thread Dean Hiller
It is not that bad. Start with a few small bugs. You start to get the hang of where things are. I have not gotten to the point where the UML is in my head just yet, but I think I am very close. I am sure castor developers would be glad to give you some small bugs to fix. Also, as far as th

[castor-dev] Differences between type-method and element-method generation

2003-02-13 Thread Loïc Bertholet
hi,   I don't really understand the differences between these 2 ways of generating sources with the sourceGenerator. What is considered as a "top-level type" and a "top-level complexType" ?   A simple example of a XmlSchema which obtains 2 differents source code after these 2 kind of generati

Re: [castor-dev] XML problem with binding and SourceGenerator

2003-02-13 Thread Phil Pinel
Dear Arnaud, Many thanks for your quick response. In answer to your question, when my definition looks like this:

Re: [castor-dev] XML mapping to additional methods

2003-02-13 Thread Mike OConnell
Hmm I dont quite explain properly; When i use the SourceGenerator to create the beans i need to to create a method toString(); which returns a specific name of the element. All my beans are created on the fly, with no human interaction involved, so i'm using methods like, obj.getClass().getMethod(

[castor-dev] XML mapping to additional methods

2003-02-13 Thread Mike OConnell
Hi all My program is finally beginning to form, but i know there is an easier way to do what i need to. I'm using castor 0.9.4.3 with j2sdk 1.4.1_01 My program generates and compiles the java beans on the fly, i then add the beans to a tree structure for easy editing and access, at the moment i