Hello there,
I am experiencing a problem in using Castor JDO together with
Mysql4.1.1 alpha.
I am getting an exception whenever my code tries to read the
database.xml file..
The exception is as follow
com.myapp.exceptions.PersistenceException: java.lang.Exception: Error in
initial
izing cpmgr!org.exolab.castor.mapping.MappingException: Nested error:
java.lang.
IllegalStateException: Data source class name does not extend
javax.sql.DataSour
ce{file:
file:C:/Sw/Budget-Project/Backend/target/test-classes/database.xml;
lin
e: 5; column: 113}
I am using
- mysql connector 3.0.15 - 3.1.4
- castor 0.9.5.3
anyone can tell me what's wrong?
I have noticed that between castor 0.9.5.2 and castor 0.9.5.3 the syntax
of
Database.xml changes....
Anyone can help?
Thanx in advance and regards
Marco
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN"
"http://castor.exolab.org/jdo-conf.dtd">
<database name="test" engine="mysql" >
<data-source class-name="com.mysql.jdbc.Driver">
<params server-name="localhost" database-name="test" port-number="3306" user="root" password="mypass" />
</data-source>
<mapping href="mapping.xml" />
</database>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user