tomcat - .properties file read by Java web app disappears -


we've been facing problem time , have no idea what's going on. hope i'm missing obvious. here's situation:

we've got bunch of windows computers out there , each 1 of them running apache tomcat. webapps folder of these tomcats contains, among other things, war file java web app (myapp.war), directory tree corresponds deployment of web app, , simple folder (not web app deployment) contains .properties file.

webapps   |--myfolder   |  `--myfile.properties   |--myapp   |  |--meta-inf   |  |--web-inf   |  |--img   |  ...   |--myapp.war   ... 

the myapp application reads file myfile.properties time time. not read often. when should quick operation: open file, read couple properties, close. code clean , simple, file stream should closed in face of exceptions.

the myapp application hot redeployed overwriting myapp.war file.

finally, computers aren't in friendly environment: suffer power outages or they're not shut down properly.

the problem we're facing that, sometimes, file myfile.properties either

  • disappears, or
  • disappears , tmp.properties file same contents appears in place, or
  • its content erased.

we don't know when happen, find out later.

anybody knows causing that, , should done prevent it?


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -