db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kalén <mka...@apache.org>
Subject Re: Location of repository.xml
Date Mon, 20 Jun 2005 09:33:37 GMT
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Mime
View raw message