Wayne
Durham David Contr 805 CSPTS/SCBE wrote:
Hi Wayne,
I have tried a couple more things and want to ask for a bit of further information.
The place to understand is in the CVS for the following 2 classes
org.apache.ojb.broker.util.configuration.impl.ConfigurationAb stractImpl
and
org.apache.ojb.broker.util.configuration.impl.OjbConfiguration
They actually do this stuff.
You will get an error message if that file is not found
catch (Exception ignore)
{
LoggerFactory.getBootLogger().error("Cannot get
OJB properties file, use default settings!");
properties.put("valid", "false");
}
}
Yeah, I tracked down what was happening in the source. Specifically OJB.properties is loaded with the following line:
Thread.currentThread().getContextClassLoader().getResource(getFilename() );
The following line is being logged:
Cannot get OJB properties file, use default settings!
So, my question is still how to make Oracle 9ias load the OJB.properties file. I tried adding the following:
System.setProperty("OJB.properties","/OJB.properties");
based on your previous suggestion for using "/repository.xml" instead of "repository.xml"
I realize that this really is an Oracle classloader issue, and I am talking with Oracle support regarding this issue. However, they have so far been unhelpful and are hinting that I should use Toplink. Blah, I don't like it. I'd rather not, I like having access to source code, also am having no problems with OJB itself.
So, can you give me more info about what you had to do to get Oracle 9ias to load OJB.properties. Otherwise, I'm thinking I'll have to make some kind of change to OJB itself (e.g., instead of Thread.currentThread... use org.apache.log4j.helpers.Loader.getResource()) Not something I want to do because of dependency, and required patching when the OJB final release comes out.
Anyway, would appreciate any info about exactly how you got oracle to find this properties file.
Thanks,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
