Did you modify the repository.xml file? Are all sub-files included?
The xml ENTITY reference + &xyz declaration.

regards,
Armin

Stark, Roman wrote:
I am assuming so.  All the xml files are in src/resources and if I move
repository.xml to the root I get an error that it can't find the
repository file.  So I think it can find it.

Stack trace:
There was no default-PBKey specified
org.apache.ojb.broker.PBFactoryException: There was no default-PBKey
specified
        at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersi
stenceBroker(Unknown Source)
        at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
Unknown Source)
        at TestDriver.run(TestDriver.java:61)
        at TestDriver.main(TestDriver.java:35)

Connection declaration from repository_datbase.xml (both versions, same
result)
<jdbc-connection-descriptor
jcd-alias="HREDB"
default-connection="true" platform="Oracle" jdbc-level="3.0" batch-mode="true" useAutoCommit="0" ignoreAutoCommitExceptions="false" driver="oracle.jdbc.driver.OracleDriver" protocol="jdbc"
subprotocol="oracle"
dbalias="thin:@(description=(address=(host=es15.uits.indiana.edu)(protoc
ol=tcp)(port=1521))(connect_data=(sid=PS2DEV)(SERVER=dedicated)))" username="hre" password="1234"
>
<connection-pool testOnBorrow="true" testWhileIdle="true" testOnReturn="true" validationQuery="select 1 from dual"
/>

<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerNextValImp
l" />
</jdbc-connection-descriptor>



<!-- this connection was used as the default one within OJB <jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="Oracle9i"
jdbc_level="2.0"
driver="oracle.jdbc.OracleDriver"
protocol="jdbc"
subprotocol="oracle:thin"
dbalias="TK2DEV"
user_name="TK"
user_password="1234"
batch-mode="false"
useAutoCommit="1"
ignoreAutoCommitExceptions="false"
</jdbc-connection-descriptor>
-->


I hope this is the info you asked for.
Roman

-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 10:48
To: OJB Users List
Subject: Re: FW: Newbie Question : There was no default-PBKey specified


Hi Roman,

does OJB find your repository.xml file?
Think we need more detailed info to help, so could you please post the
whole stack trace and the connection declaration.

regards,
Armin

Stark, Roman wrote:

For the past tow days I tried to set up the ojb-blank project.
Everything I try ends up with the following message: "There was no default-PBKey specified"


I am using eclips 3 for the project following the instructions from the web site. All I have tried so far is just get a connection and run a very simple QueryByCriteria. I did set up the repository.xml files, of which there are 3 plus repository.xml.

The database xml has a simple <jdbc-connection-descriptor in it and that's all, and the default-connection="true";

I really am at a loss, any suggestions would be great on this. I don't even know where to look anymore for what set up could cause this


problem.

Thanks
Roman



--------------------------------------------------------------------- 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]



Reply via email to