Hi Jesse,

first there is bug in there createPersistenceBroker method in
handling PBKey without given user/password. I have posted a
patch on the list.
see
http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
pache.org&msgNo=5507

second, to obtain a broker instance from the PBF you have to
set the jcdAlias name defined in the repository file. In our case
'default'. A lookup that should work (without) the patch
is

> PersistenceBrokerFactory.createPersistenceBroker(new
> PBKey("default", "dev", "dev"));
>         } catch (Throwable t) {
>             t.printStackTrace();
>         }

with the patch also 'new PBKey("default")' will work.

HTH
regards,
Armin

----- Original Message -----
From: "Jesse Vitrone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 16, 2003 6:01 PM
Subject: newbie setup problems


> I'm trying to set up a simple test to try out OJB with, but I'm having
> some trouble.
>
> I copied my config files out here for easy browsing:
> http://users.rcn.com/jessev/ojb/
>
> I have those files in my classpath, and I have all the jars from the
.99
> binary distrobution in the classpath too.
>
> My database server is running locally, and the database name is "ING",
> with user=dev and pass=dev.  I'm running MS SQL with the JDirect
drivers.
>
> When I try to run something simple like this:
>         PersistenceBroker broker = null;
>         try {
>             broker =
> PersistenceBrokerFactory.createPersistenceBroker(new
> PBKey("repository.xml"));
>         } catch (Throwable t) {
>             t.printStackTrace();
>         }
>
> I get this error:
> [org.apache.ojb.broker.metadata.ConnectionRepository] INFO: Could not
> found org.apache.ojb.broker.metadata.JdbcConnectionDescriptor for
PBKey
> org.apache.ojb.broker.PBKey: repository=repository.xml, user=null,
> password=null
> [org.apache.ojb.broker.accesslayer.ConnectionManagerFactory] ERROR:
> ConfigurableFactory instantiation failed for class class
> org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
>
> Any ideas what I'm doing wrong?  Do I have a config messed up
somewhere?
>
> Thanks in advance for you help.  I'm hoping to get this set up so we
can
> try to use OJB at work.
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to