Put your configuration files in a source folder. Non .java files in source
folders are copied into your classed dir automatically by ecilpse.
|---------+--------------------------->
| | [EMAIL PROTECTED]|
| | siea.fr |
| | |
| | 03/04/2003 01:37|
| | PM |
| | Please respond |
| | to "OJB Users |
| | List" |
| | |
|---------+--------------------------->
>---------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: using OJB with Struts and Eclipse
|
|
|
>---------------------------------------------------------------------------------------------------------------------------------------------|
Hello,
I am currently building a web application based on Tomcat and Struts, using
the Eclipse IDE.
Trying to use OJB as the persistence layer, I have the following problem :
The OJB spec. requires that the config files (OBJ.properties,
repository.xml...) be retrieved from the classpath,
which means, for a Tomcat application, in the WEB-INF/classes directory.
But any files I manually put there are
automatically removed by Eclipse if I rebuild the project, since this
directory is an output folder for class compilation !!
I've tried to work around this by creating another folder in my project
(say "obj-config") and adding it to the classpath as a "lib" folder.
But my application doesn't seem to be able to find repository info there
(although it does if I run the same code as a Java application, i.e.
without Tomcat).
Can anyone help ?
Thanks,
Philippe
---------------------------------------------------------------------
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]