If I remove the mapping then it complains about the ejb not matching the
mapping
if I change all the mappings to long and Bigint (for the sql entry) it works
fine,
its only when I try to use Date and DateTime fields I get the error. I just
realised that I missed off the important part of the error message (sorry)
The main part was that it said "DateTime is not supported by this version of
the Castor Driver" (or words to that effect)
When trying to update to the latest castor version 0.9.5.3 from version
0.9.3.9 it wont let me - as the second error I posted shows
I am wondering if that is due to some dtd or something changing between the
versions and Xerces is complaining.
java.lang.NullPointerException
at
org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(XMLClas
sDescriptorImpl.java:391)
if I replace the 0.9.3.9-xml.jar with 0.9.5.3-xml.jar then openejb will not
start complaining it cant read the config.
I think I need to know how to upgrade all the libraries to the latest
version without breaking openejb. as the ones I am running are a little out
of date.
Mike.
-----Original Message-----
From: David Blevins [mailto:[EMAIL PROTECTED]
Sent: 29 March 2004 18:20
To: [EMAIL PROTECTED]
Subject: Re: [openejb-user] Problem with Mapping
On Mon, Mar 29, 2004 at 12:50:23PM +0100, Michael Forster wrote:
> When I do it I get an exception
> java.rmi.RemoteException: The bean encountered a non-application
exception.;
> nested exception is:
> java.rmi.RemoteException: Castor JDO DatabaseNotFoundException thrown
when
> attempting to begin a local transaciton; nested exception is:
>
>
> I have a sneaking feeling that it is due to the mapping setup
>
> the mapping I have is as follows
>
> <class name="com.ingotz.j2ee.ejb.WebHitBean" identity="id">
> <map-to table="ingotz_webhits"/>
> <field name="id" type="long" direct="true">
> <sql name="id" type="bigint"/>
> </field>
> <field name="host" type="string" direct="true">
> <sql name="host" type="char"/>
> </field>
> <field name="page" type="string" direct="true">
> <sql name="page" type="char"/>
> </field>
> <field name="crdate" type="Date" direct="true">
> <sql name="dateofhit" type="DateTime"/>
> </field>
> </class>
I'm not so sure that the error is due to the date field. Try cutting that
out of your mapping file and run again to see. That would tell us where to
look next.
-David
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 26/03/2004