[
https://jira.jboss.org/browse/JBAS-8561?page=com.atlassian.jira.plugin.sy...
]
Thomas Diesler commented on JBAS-8561:
--------------------------------------
The underlying cause is that the MountHandle attached to the DeploymentUnitContext is not
associated with the DeploymentService
11:58:51,137 DEBUG [org.jboss.as.deployment] (Thread-2) Start deployment service:
org.jboss.vfs.BasicMountHandle@57922f46
11:58:51,138 DEBUG [org.jboss.as.osgi.OSGiSubsystemSupport] (Thread-2) [1] serviceStarted:
service jboss.deployment.module1
11:58:51,138 DEBUG [org.jboss.as.osgi.OSGiSubsystemSupport] (Thread-2) [0] batchComplete
11:58:51,139 TRACE [org.jboss.modules.ModuleClassLoader] (main) Locally loading module
module:test.module1:main from TestModuleLoader[test]
11:58:51,141 TRACE [org.jboss.modules.ModuleClassLoader] (main) Loaded module
module:test.module1:main from TestModuleLoader[test]
11:58:51,235 DEBUG [org.jboss.as.osgi.OSGiSubsystemSupport] (Finalizer) Close mount:
org.jboss.vfs.BasicMountHandle@57922f46: java.lang.RuntimeException
at
org.jboss.as.osgi.OSGiSubsystemSupport$TestServerDeploymentRepository$MountHandle.close(OSGiSubsystemSupport.java:608)
at org.jboss.vfs.VFSUtils.safeClose(VFSUtils.java:556)
at org.jboss.as.deployment.module.MountHandle.finalize(MountHandle.java:59)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
11:58:51,236 TRACE [org.jboss.vfs.zip] (Finalizer) Closing zip filesystem
org.jboss.vfs.spi.JavaZipFileSystem@69264eab
11:58:51,240 TRACE [org.jboss.vfs] (Finalizer) Unmounted filesystem
org.jboss.vfs.spi.JavaZipFileSystem@69264eab on mount point
"/deployments/module1"
11:58:51,735 TRACE [org.jboss.modules.ModuleClassLoader] (main) Locally loading module
module:test.module1:main from TestModuleLoader[test]
11:58:51,736 TRACE [org.jboss.modules.ModuleClassLoader] (main) Loaded module
module:test.module1:main from TestModuleLoader[test]
11:58:51,737 TRACE [org.jboss.modules.ModuleClassLoader] (main) Finding class
org.jboss.as.osgi.deployment.c.Echo from Module "module:test.module1:main" from
TestModuleLoader[test]
11:58:51,737 TRACE [org.jboss.modules.ModuleClassLoader] (main) Finding local class
org.jboss.as.osgi.deployment.c.Echo from Module "module:test.module1:main" from
TestModuleLoader[test]
11:58:51,738 TRACE [org.jboss.modules.ModuleClassLoader] (main) Loading class
org.jboss.as.osgi.deployment.c.Echo locally from Module
"module:test.module1:main" from TestModuleLoader[test]
11:58:51,739 TRACE [org.jboss.modules.ModuleClassLoader] (main) No local specification
found for class org.jboss.as.osgi.deployment.c.Echo in Module
"module:test.module1:main" from TestModuleLoader[test]
11:58:51,739 TRACE [org.jboss.modules.ModuleClassLoader] (main) Class
org.jboss.as.osgi.deployment.c.Echo not found from Module
"module:test.module1:main" from TestModuleLoader[test]
11
Bundle cannot load class from dependent module
----------------------------------------------
Key: JBAS-8561
URL:
https://jira.jboss.org/browse/JBAS-8561
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Deployers
Reporter: Thomas Diesler
Fix For: 7.0.0.M1
We see intermittent failures where a bundle cannot load a class from a dependent module
org.osgi.framework.BundleException: Cannot start bundle: bundle12:1.0.0
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:243)
at org.jboss.osgi.framework.bundle.AbstractBundle.start(AbstractBundle.java:435)
at org.jboss.osgi.framework.bundle.BundleWrapper.start(BundleWrapper.java:166)
at
org.jboss.as.osgi.xservice.ModuleAccessesOSGiServiceTestCase.testModuleInvokesTargetBundleService(ModuleAccessesOSGiServiceTestCase.java:179)
....
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: java.lang.NoClassDefFoundError: org/jboss/as/osgi/deployment/c/Echo
at
org.jboss.as.osgi.deployment.b.TargetBundleActivator.start(TargetBundleActivator.java:33)
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:205)
... 31 more
Investigate how the ModuleClassLoader is created and whether there are perhaps some race
conditions involved
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira