Hiller, Frank RD-AS2 wrote:
I found out, temporarily setting of "user.dir" as follows:
        System.setProperty("user.dir", MyConfigDir + "/");
resolves the problem.

I don't think you have to do this.

When deploying OJB as a JAR to Tomcat webapps, just make sure
repository.xml is in the root folder of your JAR
(ie the CLASSPATH root) and it will be picked up.

The following JAR structure works perfectly fine without doing
any type of programmatic workarounds:

 \
  repository.dtd
  repository.xml
  OJB.properties
  OJB-logging.properties
 ...
 \com.yourcompany.yourpackage
     YourJavaClasses.class


It should apply for a WAR as well, did you try this?

Regards,
 Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to