Re: [castor-dev] 2nd try: Castor and EJB

2002-01-17 Thread Rickard
Should I interpret the lack of response as: "there's no solution" or "we don't know" or "thinking, hang on"? Thanks, RIckard Rickard wrote: > Hey > > I'm still trying to get Castor to work in an EJB environment, especially > getting Castor to let me resolve EJB2EJB references, but no luck

[castor-dev] Problem with using JDO object across transactions / null identity

2002-01-17 Thread Michael Snebang
Title: Problem with using JDO object across transactions / null identity I have a 2 objects Configuration and ConfigurationId with a 1:m relation. If i load a ConfigurationId in one transaction, and uses it to create a new Configuration in another transaction, i get a "Cannot insert the

Re: [castor-dev] simple question

2002-01-17 Thread "Fernández García, Cesar"
Thanks for your help Arnaud, Ecuse me for my poor english vocabulary, because I have not explained it well. I want to obtain from schema this class (Myclass), class myclass { ... myclass _previous; ... } but I obtain two classes (Myclass and Previous) with that schema

[castor-dev] unmarshalling Aggregated objects

2002-01-17 Thread Sayan Chowdhury
Hi All , I have started using the Castor-XML recently. I have a requirement in which I need to unmarshall an xml file into an class like this class b{ private int i; public void setI(int i){this.i=i; } public int getI(){return i;} } class a ( private b test; private int aint; public b getTest(){

[castor-dev] unmarshalling

2002-01-17 Thread HANKE,JUERGEN (HP-Germany,ex1)
Hi, I'm using CASTOR to unmarshal and marshal XML messages for a while and everything works fine. Now 4 optional fields where added to the XML. With the new XML message I get an unmarshal exception that it can't find the FieldDescriptor for the new fields. Do I always have to regenerate the java

Re: [castor-dev] More on running the examples]]

2002-01-17 Thread Nacho Mayorga
Hi again Bruce, > Sorry about that. I forgot to explain how to make them executable, > but it seems you got it. Did that work for you? Did the build script > run properly? Nope. It didn't make any difference. I mean, the problems I reported happened _after_ changing the mode of the file(s). Tha

Re: [castor-dev] More on running the examples]

2002-01-17 Thread Bruce Snyder
This one time, at band camp, Nacho Mayorga said: NM >Mmm, guess I did it ;-) NM >$ chmod ugo+x *.sh NM > NM >(Sorry: I didn't specify 'how' I chmoded the files) NM > NM >I dunno if that was enough. Nacho, Sorry about that. I forgot to explain how to make them executable, but it seems you got it

[castor-dev] Castor-JDO Docs

2002-01-17 Thread Rainer Mueller
Hello! Are there beside the documentation on the homepage any further resources concerning the Castor JDO? I am interested in many-to-many relations. I read such relations are possible, but do I need an extra table which holds the keys of the two tables? Do I have to implement a vector in bo

Re: [castor-dev] More on running the examples]

2002-01-17 Thread Nacho Mayorga
Hi Bruce, and all, > Nacho, > > It seems that you need to make the build.sh executable before > attempting to run it. Mmm, guess I did it ;-) $ chmod ugo+x *.sh (Sorry: I didn't specify 'how' I chmoded the files) I dunno if that was enough. Thanks, Nacho ---

Re: [castor-dev] More on running the examples]

2002-01-17 Thread Nacho Mayorga
Hi Ned (and you all!), Ned Wolpert wrote: > Which OS and version are you running? (Linux RedHat7.2?) Rite! and Java 1.3.1_01. Did you have the same problem? Thanks, Nacho - José Ignacio MAY

[castor-dev] 2nd try: Castor and EJB

2002-01-17 Thread Rickard
Hey I'm still trying to get Castor to work in an EJB environment, especially getting Castor to let me resolve EJB2EJB references, but no luck. Here's what I have: Bean A has a public field that references a Bean B. The XML for A contains the id/primary key to B. So, when Castor is loading the

Re: [castor-dev] More on running the examples

2002-01-17 Thread Bruce Snyder
This one time, at band camp, Nacho Mayorga said: NM >Hullo again, NM > NM >First of all, accept my apologies: I've discovered that there were a CVS NM >tarball to download. NM > NM >After decompressing the bunch I've found the build.sh (among many other NM >files). When trying to run it (of cours

Re: [castor-dev] [Fwd: Cannot download]

2002-01-17 Thread Bruce Snyder
This one time, at band camp, Annette Sündermann said: AS > I have just tried a download of castor-0.9.3.9.jar and AS > castor-0.9.3.9-xml.jar, and both resulted in a corrupt jar file on my AS > side. Next I tried downloading the castor-0.9.3.9.zip and unpacked the AS > jars from it, and all my to

Re: [castor-dev] More on running the examples

2002-01-17 Thread Ned Wolpert
Which OS and version are you running? (Linux RedHat7.2?) --- Nacho Mayorga <[EMAIL PROTECTED]> wrote: > Hullo again, > > First of all, accept my apologies: I've discovered that there were a CVS > tarball to download. > > After decompressing the bunch I've found the build.sh (among many other >

[castor-dev] ignoring xml elements during unmarshalling

2002-01-17 Thread Sayan Chowdhury
Hi All , I have a xml file with m elements. I have a Java Class (existing) with n attributes. I want to map only a few of the xml elements into the Java Object's attributes. How do I specify that in the mapping file that I provide to the unmarshaller? I was unable to find any documentation regar

[castor-dev] More on running the examples

2002-01-17 Thread Nacho Mayorga
Hullo again, First of all, accept my apologies: I've discovered that there were a CVS tarball to download. After decompressing the bunch I've found the build.sh (among many other files). When trying to run it (of course, I've chmoded it so that it could be done) I get one of two errors: a) if r

[castor-dev] [Fwd: Cannot download]

2002-01-17 Thread Annette Sündermann
-- Dr. Annette Sündermann SME - Science Management and Engineering AG Steininger Weg 3 D-85748 Garching Germany Tel +49/89/32 67 40 36 Fax +49/89/32 67 40 66 http://www.sme.de [EMAIL PROTECTED] --- Begin Message --- Hi all, I have just tried a download of castor-0.9.3.9.jar and castor-0.9.3.9

[castor-dev] Generate the get/set methods for elements restricted in XML schema via xs:choice - xs: sequence construct.

2002-01-17 Thread Dobrovolny Stefan
Hello, I have to write a validation framework for quite complex structure, and I decided to use XML-schema and Castor for it's undoubting beauty. However, the structure includes mutual exclusion of some elements and/or its combinations. I've tried to solve this problem using xs:chioce

[castor-dev] Attribute Definition with 'use' and 'default'

2002-01-17 Thread Annette Sündermann
I have just tried the SourceGenerator of castor-0.9.3.jar with an xsd containing the following lines: The XSD has been created with XML Spy 4.2 and XML Spy can validate it. SourceGenerator ends with the following exception: java.lang.IllegalArgumentEx

Re: [castor-dev] Unwanted "myClassCount=3" type attributes being generated for vector...

2002-01-17 Thread Julian Löffelhardt
Hi,   Which version of tomcat are you using? Older version AFAIK (<3.3 or 4.0 don't knwo exactly) used to have an outdated version of xerxes installed in the classpath. Maybe this causes your problems. In tomcat 4.x the servlet container classes are seperated from the application classes , so

Re: [castor-dev] Can't run the examples on Castor 0.9.3.9

2002-01-17 Thread Xing Liu
Nacho, You have to download "Full CVS snapshot: all sources, docs, libraries (big)". The build.sh and build.bat are in that file. I got the same problem and suggested that Castor team to put "build.*" and its related components to "The Castor JARs, docs, DTDs, command line tools and examples

Re: [castor-dev] castor and postgresql UPDATE problem, why is SQL INSERT being called

2002-01-17 Thread Julian Löffelhardt
Hi,   Maybe you made an errer with the jdoSetTimestamp, and jdoGetTimestamp methods. If the timestamp returned by jdoGetTimestamp is 0 castor assumes to object is "new" and tries to create it in the database.   hope this helps,   julian - Original Message - From: Anthony Gumb

[castor-dev] Source generating failed due to a duplicate name: _content

2002-01-17 Thread Hahn, Lorenz
Hi, I'm new to castor, schema and XML, so my effords to locate the origin of my problem weren't successful. Since the strings "_content" and "content" don't occur in the schema file (see http://www9.is24.de/immoxml/immoxml-castor.xsd) as any name, I'm sure that this is a bug in the code generato

[castor-dev] limit-clause in oql

2002-01-17 Thread Jan Kanzleiter
hi, i am using castor 0.9.3.9 in the newest cvs-version with mysql. now i am wondering, if there is a way to use the LIMIT claus in oql. i tried the following: SELECT o FROM com.mycompany.lg.People o WHERE id > $1 LIMIT $2,$3 an i get this exception: java.lang.ArrayIndexOutOfBoundsException

[castor-dev] Can't run the examples on Castor 0.9.3.9

2002-01-17 Thread Nacho Mayorga
Hi, I've just downloaded Castor 0.9.3.9, browsed thru the docs, read about the examples and I dunno how to run 'em. I've walked the path thru the mailing list archives and still can't figure out how to do it. It is supposed to be some kind of 'build.sh' (see examples.html#Running-The-Examples, wh

[castor-dev] Bug in OQL to SQL translation...?

2002-01-17 Thread Lunar
Hello everyone, I came accross a strange OQL to SQL translation. I'm trying to do this : oql = db.getOQLQuery( "SELECT a FROM net.talath.server.data.Action a WHERE a.player.money = $1 " ); oql.bind(0); And I get the following exception : java.sql.SQLException: Column not found: ID in statement

[castor-dev] simple question

2002-01-17 Thread "Fernández García, Cesar"
hello all, i want to do a xsd that when i generate the sources with Castor, i obtain a myclass.java like this: class myclass { ... myclass _previous; ... } I don't know how configure the schema, I obtain: class myclass { ... Previous _previous; .

Re: [castor-dev] OQL question

2002-01-17 Thread Bert van Brakel
Title: Сообщение Can you bind a list? - Original Message - From: Alexey A. Efimov To: [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 10:05 PM Subject: Re: [castor-dev] OQL question Hello, You can use follow form syntax: select o from Product p whe

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-17 Thread Bert van Brakel
There are many permissions, and each role can contain 0 to * permissions. One permission can be in 0 to * roles. I want the permissions created (if they don't already exist) when I create a new role, but not deleted when I delete a role. Doing work on a Turbine-Castor project so the roles and

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-17 Thread Bert van Brakel
Unfortunately I think so too. Permissions are seperate entities in storage. I want them created automatically, but not deleted. I can't make permissions dependent for that reason.   Oh well, I'll have to live with it then, unless anyone else has any bright ideas.   Bert - Original Mess

Re: [castor-dev] Question re: sourceGen of a schema with complex types and no top level element.

2002-01-17 Thread Claudio Mio
Hi Keith, Thanks. That seems to have resolved the problem. The only problem I have now is that I have a complex type 'Addressee' in one namespace which extends a complex type 'Addressee' in a different namespace. An unmarshall method gets generated for each type which has a different type return

Re: [castor-dev] WORKAROUND: Castor fails to find class for xsi:type="java:MyClass"

2002-01-17 Thread Keith Visco
Jeff Norris wrote: > > Keith and Arnaud, > > Thank you very much for your help on this. Fortunately, since you guys built > Castor to accept a custom classloader (a good design choice), I knew that design decision would come in handy some day :-) >the workaround for > this problem is actua

[castor-dev] HashSet not getting unmarshalled

2002-01-17 Thread Uddhav
Hi,    When I try to unmarshal a HashSet I dont get any data (String).    The corresponding xml document however contains it.     I have specified the mapping in the following way,        type="java.lang.String"   collection="set">   

[castor-dev] SQL & 1 decimal : ok, 2 decimals => ObjectModifiedException

2002-01-17 Thread Alain RAVET
Hi all, I'm experiencing a stange behaviour of castor, where it accepts number from a sqlDB with 1 decimal (12.5), but not with 2 (12.52). The error message does not correspond to the problem at all (see below) --- The story : Due to the euro currency chang