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");
Sorry I have no knowlege about 9ias.
You should try to set the property OJB.properties with an absolute path to the file. And since it is not a good idea to have a fix hardcoded system depended path in a class file, you can set the property when starting the JVM, as long as i know every app. server offer the possibility to set System properties. This is actually done adding a parameter -DOJB.properties=<your path>/OJB.properties (no blanks after -D) to the call to 'java' command.
Usually there is a startup script where you can set this. It may look like this: (Windoz)
#bla bla bla
set JVM_OPTS=-DOJB.properties=<your path>/OJB.properties
#bla bla bla
java %JVM_OPTS% <9ias MainClass>
So if even this doesn't work, then there is a very very serious class loading issue.
This is not a nice solution, but it may work. However if you can't load the OJB.properties file through a class loader, then you won't be able to load any other .properties (or worse any non - .class file) from your application and this could be a heavy handicap.
bye danilo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
