Tomcat on Windows / Data directory
With different webapplication server installations or even different start scripts, the working directory changes and Kunagi unses a different data store.
Statement from Kunagi Team
Data path is configurable by setting the path in the config.properties
as follows:
data.path=/path/to/kunagi-data
Status
Issue is closed for Release 0.16.
Comments
Wed, Nov 17, 2010, 02:07 by anonymous
I also saw this issue; however, it did not appear to be a caching problem. I copied kunagi.war into the webapps directory, but it did not update. After clearing the cache in my browser, the login page still showed 0.14.1. I then restarted Tomcat and the update still did not take effect.
Wed, Nov 17, 2010, 02:32 by Andrew Eichacker
Some more information that might prove helpful:
As noted in the blog comments:
--------------------------------------
Do, Nov 11, 2010, 23:40 by Witek (SM,T)
The data is not inside the kunagi.war file. It is placed in the work directory. The work directory is the directory where you are, when starting the web application server (Tomcat).
All new versions work perfectly with data from previous versions.
If you don't see your old data in the new version, you have probably started your Tomcat from another work directory than before.
------------------------------------------------
My work\Catalina\localhost\kunagi directory is blank. I didn't change the work directory, so it is using the default work directory, which I presume is C:\Program Files\Apache Software Foundation\Tomcat 6.0\work (I used the installer for Windows).
I copy the kunagi.war file to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps, but 0.14.1 remains. The only way I've been able to force the update is to delete the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\kunagi folder, but my data is not retained. Is it possibly a permissions issue with it being in the Program Files folder? I'll look into that possibility.
This sounds like it could be an issue with Tomcat's configuration, but I'm very new to Tomcat. I made no changes to the default configuration for Tomcat on a 64-bit Windows Server 2008 R2 machine, using the installer.
Mon, Nov 29, 2010, 13:28 by Witek (SM,T)
In our next release, Kunagi's data directory will be configurable, by setting the following property in the config.properties
file:
data.path=/path/to/kunagi-data