Problem fixed -- missing a few items from my CLASSPATH :-)
---
Dave Hodson
MessageCast, inc.
Email: [EMAIL PROTECTED] <mailto:dave@;messagecast.net>
www.messagecast.net
> -----Original Message-----
> From: Dave Hodson
> Sent: Friday, November 01, 2002 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: NEWBIE -- PersistenceBrokerFactory.defaultPersistenceBroker()
> fails
>
>
> 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.ConfigurationAbs
> tractImpl.getClass(Unknown Source)
> at
> org.apache.ojb.broker.util.configuration.impl.ConfigurationAbs
> tractImpl.getClass(Unknown Source)
> at
> org.apache.ojb.broker.util.configuration.impl.OjbConfiguration
> .load(Unknown Source)
> at
> org.apache.ojb.broker.util.configuration.impl.ConfigurationAbs
> tractImpl.<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.<clin
> it>(Unknown Source)
> at
> org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersiste
> nceBroker(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
>
>
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>