Hi,

it's my first day with OJB. I would like to use it with TomCat 3.2.3, JDK 1.3.1.

I called bin\build war, and unzipped the created war file. I copied the files in the lib and classes directory to the lib and classes directory of my web application.

In a servlet I call

Implementation odmg = OJB.getInstance();
Database db = odmg.newDatabase();
db.open( "repository.xml", Database.OPEN_READ_WRITE);


Then I get the error message:

[BOOT] ERROR: Cannot get OJB properties file, use default settings!
[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Already cre
ated persistence broker instances: 0
[ConfigurableFactory] INFO: ConfigurableFactory called to serve a null instance
[org.apache.ojb.odmg.DatabaseImpl] ERROR: Open database failed
Borrow broker from pool failed: Creation of a new PB instance failed
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
at org.apache.ojb.broker.util.factory.ConfigurableFactory.createNewInsta
nce(Unknown Source)
at org.apache.ojb.broker.accesslayer.sql.SqlGeneratorFactory.createSqlGe
nerator(Unknown Source)
at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.<init>(Unknown S
ource)


I use mySQL as the database, the properties entry is made for mySQL. The JDBC driver is there (latest version). (The build above did work)

Any help would be much appreciated...


Ciao

Thomas

Reply via email to