Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Armin Waibel
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]


Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Thomas Dudziak
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.
   

The usual reason for this is that the repository.xml was not found and 
OJB started in the un-configured mode (which btw is intended for when 
you want to setup OJB programmatically). You should get a warning about 
this in the log file (if you configured e.g. logging to use Log4j) or 
console.
Also be aware that with standard ojb-blank, you've got to start the 
application in the build/resources directory, not in the project's root 
folder (see the Getting Started doc at 
http://db.apache.org/ojb/docu/getting-started.html for details).

Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Stark, Roman
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]



Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Armin Waibel
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]


RE: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Stark, Roman
Yep. I didn't touch the repository.xml.  
!DOCTYPE descriptor-repository PUBLIC
   -//Apache Software Foundation//DTD OJB Repository//EN
   repository.dtd
[
!ENTITY database SYSTEM repository_database.xml
!ENTITY internal SYSTEM repository_internal.xml
!ENTITY user SYSTEM repository_user.xml
]


descriptor-repository version=1.0
   isolation-level=read-uncommitted
   proxy-prefetching-limit=50

!-- include all used database connections --
database;

!-- include ojb internal mappings here; comment this if you don't
need them --
internal; 

!-- include user defined mappings here --
user;
/descriptor-repository

I think the problem is how I run the application.  Thomas Dudziak's post
I think made that clear.  I just assumed I can use eclps to run it, but
this may not be true.  I need to figure out how to get this to execute
from the corect location.  I am not sure if that can be done in eclips
or if I have to run from the comand line.

Roman


Post by Thomas:
The usual reason for this is that the repository.xml was not found and
OJB started in the un-configured mode (which btw is intended for when
you want to setup OJB programmatically). You should get a warning about
this in the log file (if you configured e.g. logging to use Log4j) or
console.
Also be aware that with standard ojb-blank, you've got to start the
application in the build/resources directory, not in the project's root
folder (see the Getting Started doc at
http://db.apache.org/ojb/docu/getting-started.html for details).

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

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.defaultPer
 si
 stenceBroker(Unknown Source)
   at
 org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroke
 r(
 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)(prot
 oc 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.SequenceManagerNextValI
 mp
 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

Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Pulat Yunusov
Can you please modify your mailer so it doesn't request return receipts?
Thank you,
Pulat
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]


Re: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread Thomas Dudziak
Stark, Roman wrote:
I think the problem is how I run the application.  Thomas Dudziak's post
I think made that clear.  I just assumed I can use eclps to run it, but
this may not be true.  I need to figure out how to get this to execute
from the corect location.  I am not sure if that can be done in eclips
or if I have to run from the comand line.
 

In Eclipse you can specify where Eclipse starts the application: Run or 
Debug dialog (Create, manage and run configurations), Arguments tab, 
Working directory.

Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FW: Newbie Question : There was no default-PBKey specified

2004-11-19 Thread lasse . lambrecht

Return Receipt
 
Your RE: FW: Newbie Question : There was no default-PBKey
documen  specified   
t:   
 
was  Lasse Lambrecht/IS-LF1/Allianz-Leben
receive  
d by:
 
at:  19.11.2004 19:37:55 
 




RE: FW: newbie question

2003-07-09 Thread Kevin Ritter
Thank you.

-Original Message-
From: Thomas Mahler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 2:35 PM
To: OJB Users List
Subject: Re: FW: newbie question

I assume you are talking about Jakarta Slide?

Jakarta Slide is a CMS engine which provides it's own abstraction of 
JDBC backends.

OJB is an Object/Relational mapping tool.

SLIDE and OJB have nothing to do with each other.

Of course it could make sense to replace the Slide persistence mechanism 
by OJB. Currently Jakarta Jetspeed is already migrating to OJB.
But I don't know of such plans for Slide. You should asked the Slide 
team about their plans!

cheers,
Thomas

Kevin Ritter wrote:
 Try again
 
 -Original Message-
 From: Kevin Ritter 
 Sent: Wednesday, July 09, 2003 1:22 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question
 
 How does this technology work with an implementation of SLIDE running on
 TOMCAT 4.1.x? Does it replace SLIDE, coexist with SLIDE, or has nothing to
 do with SLIDE?
 
 With kind regards,
 Kevin Ritter
 
 -
 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]