Ok, I didn't have a jcd-alias in jdbc-connection-descriptor. I set that to default.
Thanks, Dave > -----Original Message----- > From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 5:30 PM > To: OJB Users List > Subject: Re: creating persistence broker > > > You can try instantiate broker this way: > > PBKey pbKey = new PBKey("default"); > broker = PersistenceBrokerFactory.createPersistenceBroker(pbKey); > > where "default" - jcd-alias property value in > jdbc-connection-descriptor. > > > Regards, > Mykola Ostapchuk > > > > ----- Original Message ----- > From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 28, 2003 3:14 PM > Subject: creating persistence broker > > > Hi all, > > This is a newbie question. > > I'm trying to execute the following code: > broker = PersistenceBrokerFactory.defaultPersistenceBroker(); > > > I receive the following error: > > java.lang.NoClassDefFoundError > at > org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersiste > nceBroker( > Unknown Source) > > > Have the following in OJB.properties file: > > PersistenceBrokerClass=org.apache.ojb.broker.core.PersistenceB > rokerImpl > > > Any ideas what would cause this? > > Thanks, > > Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
