From: Wilo <wi...@gm...> - 2010-03-09 17:15:43
|
vamshi pajjuri <vpajjuri <at> yahoo.com> writes: > > I looked at the code, looks like its a bug. No matter what you set your > exist.home it always sets it to the place where it finds conf.xml In case it > is WEB-INF folder. If I remove the conf.xml and place it at different > location, say where I want my data to be, it complains about not finding the > conf.xml at WEB-INF The corresponding files are Log4jInit.java and > Configuration.java > > On Mar 2, 2010, at 4:53 PM, Dannes Wessels <dannes <at> exist-db.org> wrote: > > > > On Tue, Mar 2, 2010 at 5:45 PM, vamshi pajjuri <vpajjuri <at> yahoo.com> > > wrote: > > > > > I am using tomcat 6.0 as my webserver and eXist (exist-1.4.0rc-rev10028) > > > as my webapp. In my catalina.bat I have specifically mentioned the system > > > variable "exist.home" to a different location. > > > set JAVA_OPTS=%JAVA_OPTS% -Dexist.home=C:\\Users\\XX363XXX > > > > The "files" attribute of element "db-connection" in conf.xml to "existdata". > > It is not needed to set the exist.home variable. You only need to set the > > files="" attribute to the location you want to use to store your data. You > > can use an absolute path here..... > > > > regards > > Dannes ------------------------- Hi :) Is there no way, then to over-ride this variable at the time of deployment? Do I need to create a specific .war archive for each of my servers with the data storage path hard-coded as an absolute path into the conf.xml in the archive? Setting the data location relative to WEB-INF is not especially helpful, since whenever the servlet is reloaded this folder is 'redeployed' from the .war, and all the data is lost. What's the solution to this problem? wilo |