PDA

View Full Version : tomcat: missing web.xml? ehcache the problem?


soawork
Feb 10th, 2006, 07:28 AM
Hi there,

I'm currently working on a web application using spring. I'm using tomcat 5.x as servlet engine.
Now I have the following problem. Everytime I redeploy my application (after changing some code f.e.) tomcat displays the error: "Missing application web.xml..." and the autodeploying fails.
Now I searched the web and found a possible problem. Everytime tomcat can not completly delete the old webapp folder this error happens. Normally not closing a file in code for example is ressponsible for this behaviour.

After looking at my webapps folder I realized that the ehcache-1.1.jar file in WEB-INF/lib is the only file remaining.

Does somebody have a clue what is wrong? Did I miss something.

Would be nice if someone could help me out. After stopping, cleaning and restarting tomcat everything works fine.

luismy
Jul 5th, 2007, 09:31 AM
Hi there,

Have you tried the solution in this post? http://stuffthathappens.com/blog/2006/01/18/tomcat-hot-deployment/

That is working for me!

Basically you need to edit %CATALINA_HOME%\conf\context.xml. Find the root <Context> and add these two attributes:

<Context antiJARLocking="true" antiResourceLocking="true">

Good luck!

Luismy

noon
Jul 5th, 2007, 12:04 PM
I've been using Eclipse's DevLoader which have been working sofar really well - no need to redeploy my application or restart Tomcat anymore. This technique is really good especially if you're using Apache Maven.