I was able to deploy my WAR the first time I placed it under domains/domain1/autodeploy
dir. However, after making some changes and redeploying the WAR to the autodeploy
dir, the changes were not picked up. I even deleted domains/domain1/applications/myapp
(where myapp
corresponds to the myapp.jar
being deployed) but the WAR was not redeployed. The server was started and stopped via asadmin
:
asadmin start-domain
asadmin stop-domain
What am I doing wrong so that the app does not get redeployed?
UPDATE: I tried manually (re)deploying (also using --force
option) the WAR but got the following error in server.log
:
[#|2013-03-17T20:47:36.177-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=72;_ThreadName=Thread-2;|Application with name myprojectname is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name|#]
I do not know how to unregister/undeploy an app that's been once deployed. I tried removing all the references to my app in domain.xml
but it didn't work. This seems like a very basic bug in the software.