My bad.
I had not realized that Server.getDeployer() was returning a new
instance of the EmbeddedDeployer each time; so I was trying to undeploy
an application unknown to that new deployer instance.
Sorry for the confusion.
joey
________________________________
From: Joey Jarosz [mailto:joey_at_cadence.com]
Sent: Wednesday, March 18, 2009 12:31 PM
To: embedded_at_glassfish.dev.java.net
Subject: [embedded] Undeploying application
Ok, I can't figure out what "name" the EmbeddedDeployer.undeploy() wants
to successfully undeploy an application. I am using the value returned
from ReadableAchrive.getName() which appears to be the wrong thing to
pass to the method. Any hints?
Here is the exception:
org.glassfish.embed.EmbeddedException: Cant find the app that you
requested to deploy: {0}
at
org.glassfish.embed.EmbeddedDeployer.undeploy(EmbeddedDeployer.java:219)
--------------------------------------------
Joey Jarosz
Senior Architect
Chip Planning Solutions
Cadence Design Systems, Inc.
(408) 914-6269
Need some IP? Check out www.chipestimate.com
<
http://www.chipestimate.com>