Andreas,

as explained in http://cstor.codehaus.org/release-notes.html, the syntax for 
the JDO configuration file has changed. In your case, the <database> element 
needs to be framed with a <jdo-conf> element, and don't forget to add the 
<transaction-demarcation>,

Regards
Werner

wg> -----Original Message-----
wg> From: Andreas Vombach [mailto:[EMAIL PROTECTED]
wg> Sent: Wednesday, May 18, 2005 2:29 PM
wg> To: [email protected]
wg> Subject: [castor-user] [jdo] castor and dbcp
wg> 
wg> 
wg> I've been using castor 0.9.5.3 successfully on tomcat with 
wg> it's dbcp cache.
wg> Now I want to do two things:
wg> 
wg> 1) switch to castor 0.9.6
wg> 2) use dbcp standalone without tomcat
wg> 
wg> I'm trying to figure out how the config file has to look 
wg> like, I tried
wg> 
wg> <?xml version="1.0" encoding="UTF-8"?>
wg> <!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD 
wg> Version 1.0//EN" "http://castor.exolab.org/jdo-conf.dtd";>
wg> <database name="mydb" engine="oracle" >
wg>   <data-source class-name="org.apache.commons.dbcp.BasicDataSource">
wg>     <param name="url" 
wg> value="jdbc:oracle:thin:@server.host.domain:1521:mydb" />
wg>     <param name="driver-class-name" 
wg> value="oracle.jdbc.driver.OracleDriver" />
wg>     <param name="username" value="user" />
wg>     <param name="password" value="pass" />
wg>     <param name="max-active" value="10" />
wg>   </data-source>
wg>   <mapping href="castor-mapping.xml" />
wg> </database>
wg> 
wg> which does not seem to work. It complains at line 4
wg> 
wg> "... unable to find Field Descriptor for 'data-source' in 
wg> ClassDescriptor of jdo-conf ..."
wg> 
wg> Any ideas about that?
wg> 
wg> Cheers Andreas
wg> 

Reply via email to