Menu

#3 configue mySql

open
nobody
5
2004-05-05
2004-05-05
Anonymous
No

I am installing xorm as an ORM for my JAVA web
application and would like to configure the properties file
for mySql, but when i do so there following error shows
up:
javax.jdo.JDOFatalException: Datastore driver could not
be identified for com.mysql.jdbc.Driver . This setting
should be the name of your JDBC driver class (not a
XORM class). For more information on known values,
consult src/org/xorm/datastore/sql/drivers.properties.

My properties file is:

javax.jdo.PersistenceManagerFactoryClass=org.xorm.Inter
faceManagerFactory
javax.jdo.option.ConnectionURL=jdbc\:mysql\://localhost\ :3306/prueba
javax.jdo.option.ConnectionUserName=root
javax.jdo.option.ConnectionPassword=
javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.D
river
javax.jdo.option.MinPool=2
javax.jdo.option.MaxPool=5

org.xorm.datastore.database=/prueba-db.xml

Discussion

  • Douglas A. Seifert

    Logged In: YES
    user_id=591390

    My best guess is you have a space at the end of the
    javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.Driver
    line. Looking at the stuff you cut and paste into this
    support request makes me think I'm correct :)

    Check for extra space at the end of the ConnectionDriverName
    line.

     
  • Josh Woolever

    Josh Woolever - 2004-08-07

    Logged In: YES
    user_id=328771

    Hi there,

    I had the same problem...I dropped in the mysql-connector
    (from mysql.com) and pointed to that instead and it seems to
    work fine.

    --joshw

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.