Yeah, that's the problem. The classloader is hosed during contextinitialized or it is some other classloader that I'm not interested in (perhaps the parent classloader). I changed it to initialize via a servlet and it worked just fine.
Thanks, Dave >-----Original Message----- >From: G. Wayne Kidd [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 23, 2003 8:03 AM >To: [EMAIL PROTECTED] >Subject: Re: OJB and Oracle 9ias > > >I am not using contextInitialized. Maybe you are on to something. I >have done full path in the past. It has worked well for me. If there >is any way to determine where ojb is trying to load the file from, you >can find the problem. I did this by using oc4j standalone and eclipse >with MyEclipse plugins. > >Wayne > >Durham David Contr 805 CSPTS/SCBE wrote: >> Wayne, I'm using 9.0.3. Also, are you accessing OJB via a >> contextIntialized event. I'm thinking there might be some >classloader >> issue during contextIntialized. I will test this and post if you're >> interested. >> >> Danila, I tried setting it to an absolute path -- which is >appended like >> so: e:\oracle...\j2ee\home\e:\oracle... >> >> nuts! >> >> >> >> >> >> >> >>>-----Original Message----- >>>From: Danilo Tommasina [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, September 23, 2003 2:43 AM >>>To: OJB Users List >>>Subject: Re: OJB and Oracle 9ias >>> >>> >>>Hi David, >>> >>> >>>>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] >>> >> >>> > > > >--------------------------------------------------------------------- >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]
