I've installed jakarta-ojb-0.9.6 and successfully built/tested on MS SqlServer (this
failed on 0.9.7)
I am able to run "tutorial1" with no problems.
I am now modifying an existing class to use the PersistenceBroker API. The
constructor of my class is as follows:
public SomeClassName() {
PersistenceBroker broker = null;
try
{
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
}
catch (Throwable t)
{
t.printStackTrace();
}
}
This successfully compiles, but when I run it I get the following stack trace:
java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.getClass(Unknown
Source)
at
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.getClass(Unknown
Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.load(Unknown Source)
at
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.<init>(Unknown
Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfiguration.<init>(Unknown
Source)
at org.apache.ojb.broker.util.configuration.impl.OjbConfigurator.<clinit>(Unknown
Source)
at org.apache.ojb.broker.ta.PersistenceBrokerFactoryFactory.<clinit>(Unknown Source)
at org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown
Source)
at SomeClassName.main.<init>(SomeClassName.java:47)
at SomeClassName.main(SomeClassName.java:260)
My classpath includes all jar's in the lib/ dir of the OJB distribution.
Any ideas on what the problem is/how to fix?
Dave
---
Dave Hodson
MessageCast, inc.
Email: [EMAIL PROTECTED]
www.messagecast.net