users@glassfish.java.net

Glassfish redeploy fails, fop.jar still loaded

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Mar 2009 09:26:02 PDT

Hello

I am using FOP 0.95 as embedded in a web application. The WAR gets deployed into an instance of Sun Java System Application Server(SJSAS) 8.2 on Windows Vista Business.

When I undeploy/redeploy my WAR, I get a problem with the AS, namely

[#|2009-03-09T15:45:17.164+0000|INFO|sun-appserver-pe8.2|javax.enterprise.system.util|_ThreadID=24;|UTIL6044: Error attempting to rename C:\Programs\Sun\AppServer\domains\domain1\applications\j2ee-modules\InvoiceNormalizer|#]
[#|2009-03-09T15:45:17.164+0000|INFO|sun-appserver-pe8.2|javax.enterprise.system.util|_ThreadID=24;|UTIL6041: Performing gc to try to force file closures|#]
[#|2009-03-09T15:45:18.673+0000|INFO|sun-appserver-pe8.2|javax.enterprise.system.util|_ThreadID=24;|UTIL6046: Attempt to rename C:\Programs\Sun\AppServer\domains\domain1\applications\j2ee-modules\InvoiceNormalizer to C:\Programs\Sun\AppServer\domains\domain1\applications\j2ee-modules\InvoiceNormalizer_old failed after 4 retries|#]

The tool available here http://blogs.sun.com/quinn/entry/tool_for_diagnosing_failed_glassfish directed me to fop.jar. The problem is caused by fop.jar remaining in the way after the undeploy. In other words, fop.jar is not getting closed/unloaded by the undeploy process and it prevents a fresh redeploy, unless I restart the AS.

Has anyone experienced the same problem ? Is there a solution ?

Please note: I know that SJSAS 8.2 is quite old by now, and that a possible solution would be to move to newer glassfish releases. Unfortunately, this is a production system and I can't change it.

Thanks
[Message sent by forum member 'raypettas' (raypettas)]

http://forums.java.net/jive/thread.jspa?messageID=335871