Although looking at someone else's code some big head, but my goal is not high, adjust the pass.
For debugging convenience, I will be the application of tomcat configuration all removed, want to see if Tomcat will complain. Does it appear that an application directory does not exist when Tomcat is started, instead of canceling all applications? Look for the original is Server.xml set the context. Delete this configuration, still error, can not find the application directory file. Does Tomcat have other places to configure applications? Holding the mentality of a crazy to find, nothing laozhao, but found with a text editor deleted the context, with B text file Open but still there, server.xml last modified date has not changed.
The strange thing about this question is the same server.xml file, why does it look different when you open it with 2 separate text editors? (One of the text editors modified the file)
My operating system is Win7, and this is the last thing to do: Open the Text editor with Administrator privileges, and then open the Server.xml with a text editor, and save the configuration after deleting it.
This article is from the "idata" blog, please be sure to keep this source http://idata.blog.51cto.com/4581576/822164