users@glassfish.java.net

Re: Ultra-safe deployment - How?

From: Sahoo <sahoo_at_sun.com>
Date: Thu, 18 Dec 2008 15:59:05 +0530

"asadmin undeploy" followed by "asadmin deploy" should be sufficient. No
need to restart or delete any files. If you are still experiencing
NoClassDefFoundErrors, then give us the details. It must be a bug then.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> java.lang.NoClassDefFoundError has become all too frequent between deployments. I can no longer fully trust autodeployment & need a procedure that does everything possible in order to clean up from the previous deployment.
>
> The procedure I am currently using is simply:
>
> asadmin undeploy MyEAR
> asadmin stop-domain domain1
> Linux: rm -fr c:\srv\glassfish\domains\domain1\applications\j2ee-apps\MyEAR
> Win: rd /q /s c:\srv\glassfish\domains\domain1\applications\j2ee-apps\MyEAR
> ...and then use autodeployment to deploy the new version
>
> Is there anything else (other than the obvious) that can be done to [i]really [/i]cleanup from the previous deployment, i.e. scrub & virginize the server between deployments?
>
> My app is based on Glassfish, Postgres and uses JavaMail.
> [Message sent by forum member 'fredarin' (fredarin)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322272
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>