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

Reply via email to