Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. –  Relborg 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.