]
Jason T. Greene updated JBAS-7027:
----------------------------------
Security: Public (was: JBoss Internal)
Problem with undeploying archives from the server during tests on the
Windows platform
--------------------------------------------------------------------------------------
Key: JBAS-7027
URL:
https://jira.jboss.org/browse/JBAS-7027
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: ClassLoading, Deployers
Affects Versions: JBossAS-5.1.0.GA
Environment: Win 2k3
Win XP
Win 64bit
Sun jdk5 and jdk6
Reporter: Pavel Slavicek
Assignee: Jason T. Greene
Fix For: 6.0.0.M3
It seems that there is problem with undeploying archives from server after or during
tests. Test deploys archive on the server, provides implemented tests and wants to
undeploy this archive from the server. Undeploying from the server fails because deployed
archive cannot be deleted from the deployment directory for some time. As you can see from
logs undeploy attempt goes after finished successfully deploy.
On Linux based systems works everything perfectly.
This problem looks like
https://jira.jboss.org/jira/browse/JBAS-4310
test.log:
2009-06-17 10:25:54,625 DEBUG [org.jboss.test.JBossTestCase]
D:\redhat\jboss-5.1.0.GA-src\testsuite\output\lib\defaultpkg.sar is a valid file
2009-06-17 10:25:54,625 DEBUG
[org.jboss.test.jmx.test.SimpleURLDeploymentScannerUnitTestCase] Copying
file:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/defaultpkg.sar ->
D:\redhat\jboss-5.1.0.GA-src\testsuite\output\lib\urlscannertest\defaultpkg.sar
2009-06-17 10:25:56,796 DEBUG
[org.jboss.test.jmx.test.SimpleURLDeploymentScannerUnitTestCase] Deleting
D:\redhat\jboss-5.1.0.GA-src\testsuite\output\lib\urlscannertest\defaultpkg.sar
2009-06-17 10:25:56,812 DEBUG [org.jboss.util.file.Files] Failed to delete dir:
D:\redhat\jboss-5.1.0.GA-src\testsuite\output\lib\urlscannertest\defaultpkg.sar
server.log
2009-06-17 10:25:55,015 INFO [org.jboss.deployment.MainDeployer] (ScannerThread) deploy,
url=file:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar
2009-06-17 10:25:55,015 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl]
(ScannerThread) Add deployment:
vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
2009-06-17 10:25:55,015 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl]
(ScannerThread) Scheduling deployment:
vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
parent=null
2009-06-17 10:25:55,015 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl]
(ScannerThread) Deploying
vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
2009-06-17 10:25:55,015 DEBUG [org.jboss.system.deployers.SARDeployer] (ScannerThread)
Parsing: jboss-service.xml
2009-06-17 10:25:55,375 DEBUG [org.jboss.system.deployers.SARDeployer] (ScannerThread)
<server>
<mbean code='DefaultPkgService'
name='test:name=DefaultPkgService'/>
</server>
2009-06-17 10:25:55,375 DEBUG
[org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer] (ScannerThread)
Dynamic class root for
vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
is vfsmemory://5c4o12u-h0uyis-fw1rzek4-1-fw1s3icv-aj
2009-06-17 10:25:55,375 DEBUG [org.jboss.classloading.spi.dependency.Domain]
(ScannerThread) org.jboss.classloading.spi.dependency.Domain@1250ff2{DefaultDomain} add
module VFSDeploymentClassLoaderPolicyModule defaultpkg.sar:0.0.0
2009-06-17 10:25:55,375 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader]
(ScannerThread) Created
BaseClassLoader@1f27a15{vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/}
with policy
VFSClassLoaderPolicy@2d26d5{name=vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
domain=null roots=[MemoryContextHandler@5278167[path=
context=vfsmemory://5c4o12u-h0uyis-fw1rzek4-1-fw1s3icv-aj
real=vfsmemory://5c4o12u-h0uyis-fw1rzek4-1-fw1s3icv-aj], DelegatingHandler@25789822[path=
context=file:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar
real=vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar]]
delegates=null exported=[, META-INF] <IMPORT-ALL>NON_EMPTY}
2009-06-17 10:25:55,375 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain]
(ScannerThread) ClassLoaderDomain@1fcf790{DefaultDomain} registerClassLoader
BaseClassLoader@1f27a15{vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/}
2009-06-17 10:25:55,375 DEBUG [org.jboss.aop.asintegration.jboss5.RegisterModuleCallback]
(ScannerThread) Registering module VFSDeploymentClassLoaderPolicyModule
defaultpkg.sar:0.0.0
2009-06-17 10:25:55,375 DEBUG [org.jboss.aop.asintegration.jboss5.AOPClassLoaderDeployer]
(ScannerThread) Adding AspectManager attachment org.jboss.aop.AspectManager@1489ea3 for
AbstractVFSDeploymentContext@5751372{vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/}
2009-06-17 10:25:55,468 DEBUG [org.jboss.ejb3.deployers.Ejb3Deployer] (ScannerThread)
********* Ejb3Deployer Begin Unit: defaultpkg.sar jar: defaultpkg.sar
2009-06-17 10:25:55,578 DEBUG [org.jboss.ejb3.Ejb3Deployment] (ScannerThread) EJB3
deployment time took: 110
2009-06-17 10:25:55,593 DEBUG
[org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (ScannerThread)
Added component test:name=DefaultPkgService to
vfszip:/D:/redhat/jboss-5.1.0.GA-src/testsuite/output/lib/urlscannertest/defaultpkg.sar/
When I tried to modify tests and test tries delete file for several times with timeout
(2s) in each attempt, file is successfully deleted on the ~6th attempt. This means with
~12 second delay after the first attempt.
Failed tests:
org.jboss.test.jmx.test.SimpleURLDeploymentScannerUnitTestCase (undeployment is provided
as deleting file from deployment directory)
org.jboss.test.jmx.test.JBAS3050URLDeploymentScannerUnitTestCase (undeployment is
provided as deleting file from deployment directory)
org.jboss.test.deployers.test.DeploymentManagerUnitTestCase (undeployment is provided
with DeploymentManager)
Archives:
EAR, SAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: