Some additional info. Using the admin console, I deploy my application. After going through the "unable to remove" and "running gc" retries for each of the listed files and folders, the undeploy fails with a message like "marked files for deletion on exit". Then I stop the app server and I get the following exception. The files are not removed. Maybe this is a hint:
doneSnapshot = EJBClassLoader.done() called ON EJBClassLoader :
urlSet = [URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/mysql-connector-java-5.0.5-bin.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/toplink-essentials-agent.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/toplink-essentials.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/TS5529-ejb.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/classes/, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/appbase.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/commons-fileupload.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/dataprovider.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/errorhandler.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/jsfcl.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/json2.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/rowset.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/sqlx.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/webui-jsf-suntheme.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/U04A1_war/WEB-INF/lib/webui-jsf.jar, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/applications/j2ee-apps/TS5529/TS5529-ejb_jar/, URLEntry : file:/D:/Development/Sun/AppServer/domains/domain1/generated/ejb/j2ee-apps/TS5529/]
doneCalled = false
Parent -> EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader_at_134ce4a
AT Sun Jun 03 16:24:28 EDT 2007
BY :java.lang.Throwable: printStackTraceToString
at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:621)
at com.sun.enterprise.loader.EJBClassLoader.done(EJBClassLoader.java:159)
at com.sun.enterprise.server.AbstractLoader.done(AbstractLoader.java:309)
at com.sun.enterprise.server.ApplicationLoader.unload(ApplicationLoader.java:260)
at com.sun.enterprise.server.TomcatApplicationLoader.unload(TomcatApplicationLoader.java:200)
at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:511)
at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:687)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:910)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:319)
at com.sun.enterprise.deployment.phasing.ApplicationStopPhase.runPhase(ApplicationStopPhase.java:119)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:606)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:652)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:742)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
at com.sun.enterprise.deployment.client.DeploymentClientUtils.stopApplication(DeploymentClientUtils.java:107)
at com.sun.enterprise.deployment.client.UndeployAction.run(UndeployAction.java:135)
at java.lang.Thread.run(Thread.java:619)
Parent -> EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader_at_134ce4a
was requested to find class com.mysql.jdbc.profiler.ProfileEventSink after done was invoked from the following stack trace
java.lang.Throwable
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:694)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:614)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.mysql.jdbc.Connection.realClose(Connection.java:4894)
at com.mysql.jdbc.Connection.close(Connection.java:2198)
at com.sun.gjc.spi.ManagedConnection.destroy(ManagedConnection.java:274)
at com.sun.enterprise.resource.LocalTxConnectorAllocator.destroyResource(LocalTxConnectorAllocator.java:103)
at com.sun.enterprise.resource.AbstractResourcePool.destroyResource(AbstractResourcePool.java:603)
at com.sun.enterprise.resource.AbstractResourcePool.emptyPool(AbstractResourcePool.java:1074)
at com.sun.enterprise.resource.PoolManagerImpl.killPool(PoolManagerImpl.java:537)
at com.sun.enterprise.resource.PoolManagerImpl.killAllPools(PoolManagerImpl.java:825)
at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:466)
at com.sun.enterprise.server.Shutdown.startShutdown(Shutdown.java:63)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeShutdownEventListener(AdminEventMulticaster.java:1481)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleShutdownEvent(AdminEventMulticaster.java:1470)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
at com.sun.enterprise.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
[Message sent by forum member 'orbach' (orbach)]
http://forums.java.net/jive/thread.jspa?messageID=220269