hello,
I am trying to connect to mysql through the DataSource interface. The reason
for this is because I am
writing my own connection pooling mechanism and will be using the DataSource
interface in my connection pool code. I was wondering if anyone had
experience with this. When I try to connect to MySql's MysqlDataSource class
and My config file looks like this:
<!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="org.gjt.mm.mysql.MysqlDataSource">
<param server-name="localhost" port-number="" database-name="test"
user="root" password="" />
</data-source>
<mapping href="mapping.xml" />
</database>
I get this error:
[test] Loading mapping descriptors from
file:/D:/castor-0.9.3.9/examples/jdo/mapping.xml
[test] org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
org.xml.sax.SAXException: unable to find FieldDescriptor for 'param' in
ClassDescriptor of data-source{file:
file:/D:/castor-0.9.3.9/examples/jdo/database.xml; line: 6; column: 38}
[test] org.xml.sax.SAXException: unable to find FieldDescriptor for 'param'
in ClassDescriptor of data-source
[test] at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:81
5)
[test] at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
[test] at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:965)
[test] at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1858)
[test] at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1234)
[test] at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
[test] at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
[test] at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
[test] at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.
java:241)
[test] at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559)
[test] at jdo.Test.run(Test.java:99)
[test] at jdo.Test.main(Test.java:62)
Does anyone know what this means?
Thanks MArk :(
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev