Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got Glassfish 2.1.1 here and I need to undeploy war application. Problem is that the application is corrupted and prevents the Glassfish server from starting, so I need to undeploy it while server is down.

asadmin undeploy need conenction to running server...

So the question is - how to undeploy from off-line Glassfish server.

share|improve this question
up vote 6 down vote accepted
  1. delete directory domains/$YOUR_DOMAIN/applications/j2ee-*/$YOUR_APPLICATION (thanks, chris_l)
  2. clean out domains/$YOUR_DOMAIN/generated/*/j2ee-*/$YOUR_APPLICATION
  3. remove all entries regarding $YOUR_APPLICATION from domains/$YOUR_DOMAIN/config/domain.xml (usually there are two records - one in domain>applications>web-module and one in domain>servers>server>application-ref)
share|improve this answer

Have you tried simply deleting the application's directory domains/$YOUR_DOMAIN/applications/$YOUR_APPLICATION? Make a backup first!

share|improve this answer
Yes I did. Does not work. Glassfish have got some data about deployed apps in domains.xml. – andrej Apr 16 '10 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.