Re: [castor-dev] This thread is already associated with a transaction in progress

2004-04-06 Thread hans gan
Hi Werner,   Thanks for your response. Here is my complete stack trace   java.sql.SQLException: RollbackException: The transaction has been marked for rollback (no reason given) at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:126) at com.evermind.sql.FilterConnection.prepar

[castor-dev] minOccurs and nillable

2004-04-06 Thread Nitin Mulimani
Hi,   I am using castor-axis-encoding to generate my beans for document styled webservices. What methods are generated in the beans for minOccurs=”0” and nillable=”true”. Castor is throwing me ValidationExceptions.   Appreciate ur time in advance.   -- Nitin

Re: [castor-dev] unable to find FieldDescriptor for 'sql' in =

2004-04-06 Thread Werner Guttmann
Amy, Castor JDo requires you to have a element for each field defined in your mapping. If you do not want to persist all fields, please make use of the access and transient attributes as required. Werner --Original Message Text--- From: Amy Fong Date: Tue, 6 Apr 2004 15:29:40 -0400

[castor-dev] unable to find FieldDescriptor for 'sql' in =

2004-04-06 Thread Amy Fong
Hi all,I am trying to unmarshall a xml file and then using the castor jdo save =the information to the database. I am getting the following error when I =try to run the JDO portion of my program.Error Message:org.exolab.castor.jdo.DatabaseNotFoundException: Nested error: =org.xml.sax.SAXExc

Re: [castor-dev] Castor and WAR reloading problem...

2004-04-06 Thread Werner Guttmann
Gregory, please see below ... On Tue, 6 Apr 2004 12:26:17 +0100, Gregory Block wrote: > >On 6 Apr 2004, at 10:38, Werner Guttmann wrote: >> This might sound a little bit off-topic, but are you sure that >> everything (Castor itself, dependent libraries, etc.) is loaded by the >> web app class

Re: [castor-dev] This thread is already associated with a transaction in progress

2004-04-06 Thread Werner Guttmann
Hans, can you please post the complete stack trace ? Though the below SQLException could indicate that you are not properly closing a SQLConnection as you should. If you are using a connection pool, it could happen (though unlikely) that you try to re-use a connection ... just thinking loud.

Re: [castor-dev] Castor and WAR reloading problem...

2004-04-06 Thread Gregory Block
On 6 Apr 2004, at 12:22, Gregory Block wrote: I may well be about to lose my ability to track this problem - I need to switch to ArrayLists for those containers anwyays, as I will need them to lazy load. I guess I'm about to find out whether that solves the problem... Just so it's clear: The p

Re: [castor-dev] Need some help in XML Mapping

2004-04-06 Thread Keith Visco
Milind Rao wrote: > > I just started using Castor to convert Objects to XML and back and have a couple of > questions > > I have the following Objects > > public class Member > { > private int iID > private Level iLevel; > > // Constructor is package-private > Member(theMID,

[castor-dev] This thread is already associated with a transaction in progress

2004-04-06 Thread hans gan
Currently my java application keep on hitting this error when creating a transaction. 'This thread is already associated with a transaction in progress' When i check the log file, it shows java.sql.SQLException: RollbackException: The transaction has been marked for rollback (no reason given) at co

[castor-dev] Need some help in XML Mapping

2004-04-06 Thread Milind Rao
I just started using Castor to convert Objects to XML and back and have a couple of questions I have the following Objects public class Member { private int iID private Level iLevel; // Constructor is package-private Member(theMID, int theLID) {iID = theID; iLevel = new Level(t

Re: [castor-dev] Castor and WAR reloading problem...

2004-04-06 Thread Gregory Block
On 6 Apr 2004, at 10:38, Werner Guttmann wrote: This might sound a little bit off-topic, but are you sure that everything (Castor itself, dependent libraries, etc.) is loaded by the web app classloader ? And more importantly, have you had a look at open bugs for Tomcat 5.x wrt to this issue ? Ev

Re: [castor-dev] Castor and WAR reloading problem...

2004-04-06 Thread Gregory Block
On 6 Apr 2004, at 05:58, Bruce Snyder wrote: I'm a bit perplexed by this myself because I would assume that reloading the application context in Tomcat would completely dump anything in memory. It does - but because JDO itself, and castor, exist outside of the WAR context, JDO is not. So requesti