Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is probably a very n00b question since this is the first time I'm using Tomcat. I'm trying to specify a JDNI resource in the /conf/context.xml file. But every time I start up the server and have a look at the file. Everything I edited in the file has disappeared and the file reverted back the way it looked at the initial default installation of Tomcat.

Note that I do have the server shutdown when I do these edits.. Why is this happening?

share|improve this question
What operating system? Linux or Windows? If Linux what flavor? – user160910 Oct 1 '13 at 19:55
This is in Windows 8 64bit.. I have noticed though that this only happens when I start my server up through my IDE (Eclipse). Starting the server up through the terminal (startup.bat) . The file doesn't get cleared. – Dean Gibson Oct 2 '13 at 5:25
How exactly are you starting it from Eclipse? You should probably be using the bat files to start and stop the server always. – user160910 Oct 2 '13 at 13:04

Open the Tomcat server configuration in Eclipse by double-clicking on it in the Servers view. There you should find a section for setting up how the Tomcat installation is used. Eclipse may be be taking over the installation. Try using the Eclipse workspace metadata option for server location.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.