Hello all,
I'm getting this error with the following setup:
Config file:
<database name="тата" engine="sql-server">
 <driver
  class-name="com.ca.brightstor.portal.jdbc.sqlserver.SQLServerDriver"
  url=""
 >
 </driver>
 <mapping href="" />
</database>
 
Please note the localized characters in the db name and the jdbc driver.
I try to run the following code which works fine if no localized chars are present:
String db = "тата";
String dbFile = "castor-config.xml";
String mFile = "mapping.xml";
_mapping = new Mapping(getClass().getClassLoader());
_mapping.loadMapping(new org.xml.sax.InputSource(new FileInputStream(mFile)));
_jdo = new JDO();
_jdo.setConfiguration(dbFile);
_jdo.setDatabaseName(db);
Database db1 = _jdo.getDatabase();
db1.begin();
 
This is when i get:
org.exolab.castor.jdo.DatabaseNotFoundException: No configuration loaded for database тата -- use the JDO interface to load a configuration for this database
at org.exolab.castor.jdo.engine.DatabaseImpl.<init>(DatabaseImpl.java:181)
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:642)

Please help. Thank you.

Edward Grinvald

Reply via email to