java - Spring / Glassfish 3.1.2 stale files -
i'm developping application using spring web mvc & spring security.
i can deploy on glassfish 3.1.2 when want redeploy after bug fixing, error :
warning: exception while locating sub archive: xxx.war warning: dpl8031: ignoring xxx_war/ because containing archive c:\dev\apps\glassfish3\glassfish\domains\domain1\applications\xxx recorded pre-existing stale file .glassfishstalefiles contains :
xxx_war/ xxx_war/web-inf/ xxx_war/web-inf/lib/ xxx_war/web-inf/lib/spring-web-3.2.2.release.jar and indeed, spring-web-3.2.2.release.jar still exists , when try remove it, message says it's still in use jvm.
i found link : https://www.java.net//forum/topic/glassfish/glassfish/stale-files-when-undeploying-web-app-glassfish-3
my question : have workaround issue ?
it's annoying while developping...
to correct problem, have easier solution :
assuming ear file correct:
- stop server
- goto ear directory : c:\java_apps\glassfish3\glassfish\domains\domain1\applications\xxx_ear
- delete file called .glassfishstalefiles
- restart server , re-deploy ear file
it did trick me.
Comments
Post a Comment