users@glassfish.java.net

Problem redeploying EAR

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Sat, 10 Feb 2007 14:55:31 -0500

Hi,

I recently moved code out of a web app into a new EJB session bean. In
NetBeans both projects were added to a new EAR project. I can deploy
the ear and run the application without any issues. When I redeploy my
application during development I get tons of these messages from the app
server:

pt to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\dataprovider.jar
failed after 4 retries
UTIL6048: Attempt to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\dataprovider.jar
failed; now marked for delete-on-exit
UTIL6040: Error attempting to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\errorhandler.jar
UTIL6041: Performing gc to try to force file closures
UTIL6043: Attempt to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\errorhandler.jar
failed after 4 retries
UTIL6048: Attempt to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\errorhandler.jar
failed; now marked for delete-on-exit
UTIL6040: Error attempting to delete C:\Program
Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\MyProject\MyProjectWeb_war\WEB-INF\lib\jsfcl.jar
UTIL6041: Performing gc to try to force file closures


I have to wait many seconds before it gives up on a file and moves to
the next. I've looked in the folders it talks about and the entire
project has been removed except for a handful of jars. I have to
restart the application server, then deploy the EAR again.

This problem doesn't happen if I don't run my app before redeploying.

I'm developing using NetBeans 5.5, Sun App Server 9.0 Update 1, Windows
XP, JDK 1.6. The web app is a Visual Web Pack project, and the EJB
module is EJB 3.0


Thanks,
Ryan