quality@glassfish.java.net

Re: Question about EclipseLink errors

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Tue, 30 Sep 2008 22:51:23 +0200

Hi again,


On Mon, Sep 29, 2008 at 02:43:46PM -0700, Sherry Shen wrote:
> Would you please post your problem
> on eclipselink-users_at_eclipse.org with complete stack trace?

Thanks for this suggestion Sherry. It turns out that using EclipseLink in
combination with the ojdbc14.jar drivers defaults to using Oracle9Platform. In
this platform Double has a dependency on TimeStamp which is the reason for the
error I got. Using OraclePlatform by putting this in persistence.xl

<property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.oracle.OraclePlatform"/>

makes the error go away since in OraclePlatform there is no dependency of Double
on TimeStamp or any other class.

I hope this will help other developers debug their applications.


Greets, Wouter

-- 
People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"