permaculture playing cards*
The moose likes Tomcat and the fly likes Eclipse interaction with Tomcat - cannot undeploy applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Eclipse interaction with Tomcat - cannot undeploy applications" Watch "Eclipse interaction with Tomcat - cannot undeploy applications" New topic
Author

Eclipse interaction with Tomcat - cannot undeploy applications

alex garner
Greenhorn

Joined: Jan 08, 2010
Posts: 2
My problem is that if I use Eclipse to deploy my Web Application (via Run As->Run Server), I cannot undeploy it, as within Tomcat Manager the undeploy link against the Application is not highlighted. If I manually put in the URL I get the following Error:

FAIL - Context /TomcatBasic is defined in server.xml and may not be undeployed

Im using Eclipse Galileo, and Tomcat 6.0.20

The steps I have followed are:

1) Within Eclipse, I use the Server view, to create a new Tomcat Server.
However by default when you "Run Server", it seems that applications are run within Eclipse ? When looking at the Tomcat Manager no application was deployed even though Eclipse was running it

To overcome this I did the following. In the Servers view within Eclipse: - Right click on the Tomcat Server, and select Properties. In the Properties window I clicked the button "Switch Location". - Right click on the Tomcat Server, and select open. In the following dialog box I modified "Server Location" to select "Use Tomcat installation", and then I change the "Server path" to C:/apache-tomcat-6.0.20 and the "Deploy path" to C:/apache-tomcat-6.0.20

2) Create a Dynamic Web Application.
In the "New Dynamic Web Project" windown I select Apache Tomcat as the "Target Runtime" and "Configuration". Click Finish.

3) Right click on the project and "Run As" -> "Run on Server".
The application now gets deployed to the Tomcat Application Server as required. HOWEVER I cannot undeploy it when I log onto Tomcat Manager.

Any help please will be greatly appreciated !
 
 
subject: Eclipse interaction with Tomcat - cannot undeploy applications
 
Similar Threads
NetBeans cant find web pages folder
157 Question Help and Resourses
IBM Exam 157 - Questions and Answers (Sample Exam)
Problem while Encrypting SOAP body using Metro
Tomcat 6, Eclipse and 404 errors oh my!