You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Vincenz Braun <vb...@evelox.de> on 2003/03/26 16:13:59 UTC

Newbie questions (oracle and ojb setup) (posted because archive unbrowsable)

Hi,

my first steps with ojb. Some questions have arised. 
I post these because it is currently not possible to browse the archive
under
http://archives.apache.org/eyebrowse/SearchList?listName=ojb-user@db.apache.
org. 
All message bodies are empty :-(

I want to use ojb with a sample oracle schema. I wonder where to specify
the complete url. Has anybody a working example of the
repository_database.xml
with oracle.

Second I always get this Exception when trying to setup OJB.

[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
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
	at
org.apache.ojb.broker.platforms.PlatformFactory.getPlatformFor(Unknown
Source)
	[...]

Code Snippet:
		Implementation odmg = OJB.getInstance();
		Database db = odmg.newDatabase();
		//open database
		try {
			db.open(
				"repository.xml",
				Database.OPEN_READ_WRITE);
		} catch (ODMGException ex) {
			ex.printStackTrace();
		}

Third can anyone tell me where to report the problem with the archive?

What is the problem?

Thanks in advance,
Vincenz