Hy,
i make this like the others Java-Projects, a have an seperate resources-Folder, putting the OJB-Configuration in it. The Structure is:
WEB-INF/
src
resources
classesWhere the propperties are in resources. This is working.
My Problem is the usage in an Eclipse-RCP-Application. Here the Classloader is different, and found an solution, overwriting the ClassLoader.
Thanks for Help
\Robby
Vamsi Atluri schrieb:
If you have a web application, the OJB.properties will be found if placed under WEB-INF/classes folder. But there is a problem with this folder. If you rebuild the entire project, the classes folder is wiped out first. So, your OJB.properties file will be lost. I am still trying to find a solution this problem. However, I am using WSAD. I am sure the behavior will be similar in Eclipse. Hope this helps.
-Vamsi
--- Robert Einsle <[EMAIL PROTECTED]> wrote:
Hy List,
i'm wondering, OBJ don't find its config in an Eclipse Plugin (or Eclipse RCP). Starting the Application, while loading OBJ, it reports
me:
--- cut ---
[BOOT] WARN: Could not load properties file 'OJB.properties'. Using default settings!
/home/re/OJB.properties (Datei oder Verzeichnis nicht gefunden)
java.io.FileNotFoundException: /home/re/OJB.properties (Datei oder Verzeichnis nicht gefunden)
--- cut ---
Eclipse workspace is in /home/re/workspaces/lakon
Normaly OBJ loads its config over the Classloader,, but here, it will not work.
I don't knew what to do, hope, someone here can help me.
Thanks.
\Robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
