Hello,
I have been banging my head against how to map out a pre-existing database. I changed the mysql.profile to my mysql db, and changed the build.properties to use the mysql db. Really, this should be superfluous, shouldn't it? I mean, given what documentation on the subject of the reverse-db component, I thought that connecting to a database was all that was necessary (using mysql:jdbc), as it would then read in the database tables and values, then create a schema or map of the database. When I connect to the database, I get no message as to whether it connects or not (using the tests, though, I am able to create the tables for them in the mysql db, and I see traffic, so I believe it is actually connecting), and when I try 'read', I get:

[reversedb] java.sql.SQLException: null: Can't read dir of './%/'
(Errcode: 2)
[reversedb] at com.mysql.jdbc.MysqlIO.nextRow(Unknown Source)
[reversedb] at com.mysql.jdbc.MysqlIO.getResultSet(Unknown Source)
[reversedb] 12:null: Can't read dir of './%/' (Errcode: 2)

Also, why am I seeing in the reverse-db browse window part of the test suite? I mean, before I connect to the db, is it reading in the repository.xml? Do I need to create my own repository.xml or build.xml/build.properties to define a blank db template or something for the reverse-db component to fill in?

As an after note, reverse-db2 seems to connect to my database, but using the open database like this -->jdbc:mysql://localhost/testdb
shows me all the databases present, not just testdb, with unknown schema (schema not specifies) and new ojb repository gives me that it can't find it's OJB.properties file (uses default settings) and it can't find it's repository.xml. So what do I put in this repository.xml, I mean, it isn't creating a new db, I was hoping it would map a pre-existing one.
Thanks,
Jeremy Capps


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to