Having to restart "Apache Tomcat" service before deploying every time,help!

Hi,

I am running the following:

- Tomcat 5.5

- Eclipse SDK 3.2.0

- MyEclipse Enterprise Workbench 5.0 GA

I find that every time after I have accessed my site locally, when I need deploy in MyEclipse, I get the following error:

============================

(Undeployment Failure)

<Application name> could not be redeployed because it could not be completely removed in the undeployment phase. The most common cause of this problem is attempting to redeploy while the server is running, which has locked one or more files.

To correct the deployment you will need to stop the server and then redeploy the project before restarting the server.

==============================

So every time when I need to redeploy my project, I had to restart the "Apache Tomcat" service.

Is there a solution to this?

Many thanks!

- JL

[910 byte] By [Joel.La] at [2007-11-26 19:27:36]
# 1

Hi,

Are you refering to your development environment? or are you refering to a different environment like - qa, staging, production?

If you are refering to the development environment, the simplest solution is to create a Context xml file for your web application and place it under \Catalina\localhost

Inside the docBase specify the location where your project is located.

Then manually remove your exploded project located under webapps and also remove the WAR file located under webapps.

appy77a at 2007-7-9 21:54:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> If you are refering to the development environment,

> the simplest solution is to create a Context xml file

> for your web application and place it under

> \Catalina\localhost

Also specify reloadable="true" so that if you change something then tomcat will recoginze and automatically restarts the applicaiton.

Vishwas_Prasannaa at 2007-7-9 21:54:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...