I've been running a web application on
Tomcat, when I make some changes in the application, including context.xml, and redeploy it, I start receiving an exception:
After looking around, I realise that the appname.xml in CATALINA_BASE/conf/Catalina/localhost is different than an updated context.xml, so when an application tries to look up a jndi resource, it cannot find any. According to this, 2 files must be exactly the same. I come up with 2 explanations, and questions, for this case:
There is an issue that makes appname.xml unchanged during redeploymentAlthough I change context.xml, tomcat still stores an old version somewhere and use it instead of a new one
I wonder if there is anyone see those issues before, if there is, I really appreciate any solutions. Or, if you have other explanation and/or question for my case, you're welcome! Thanks
M
PS: the tomcat is in my company's server, so I cannot just go and change appname.xml directly