Q- Does it work when you run it from the command line (not from within
the IDE) in directory c:\work\easy ?

A- Not only does it execute from command line it also executes from
within IDE when the execution type is External.


Q- You should check that in OJB.properties the repository.xml file is
correctly referenced (e.g. without any path info).

A- I've tried both ways by adding path info and by removing path info.


I think OJB.properties and repository.xml are okay because application
is working fine from command line and from with IDE (with external
execution).

Problem only occurs when I changed the execution type to Internal
execution. And as far as I understood so far, NetBeans have custom class
loader(s) and that might be the reason. But I am not sure.

Thank you again
Aamir




-----Original Message-----
From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 4:55 PM
To: OJB Users List
Subject: Re: FW: NetBeans and OJB

Looks ok so far. Does it work when you run it from the commandline (not
from within the IDE) in directory c:\work\easy ?
If so, then you probably have a mistake in the IDE setting for the
directory where the app is executed.
If not then you should check that in OJB.properties the repository.xml
file is correctly referenced (e.g. without any path info).
If the initialization fails, then you usually get one of two possible
errors. The first one states that no properties have been found and that
the default ones are used. The second one states that the repository
descriptor was not found. Depending on which one you get, you have to
correct the OJB.properties system setting (first error) or the
repository.xml path in the properties file (second error).
Also note that you must set the "OJB.properties" before you use any OJB
class.

Tom




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