[
https://jira.jboss.org/jira/browse/JBDEPLOY-202?page=com.atlassian.jira.p...
]
Thomas Diesler commented on JBDEPLOY-202:
-----------------------------------------
The underlying issue is that BeansDeployer uses an JBossXBDeployerHelper
BeansDeployer -> SchemaResolverDeployer -> JBossXBDeployer
The JBossXBDeployerHelper uses
private static DefaultSchemaResolver resolver =
(DefaultSchemaResolver)SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
which internally caches the classes.
From what I can see SingletonSchemaResolverFactory is evil and cannot
be used in an OSGi environment.
BeansDeployer cannot be recycled
--------------------------------
Key: JBDEPLOY-202
URL:
https://jira.jboss.org/jira/browse/JBDEPLOY-202
Project: JBoss Deployers
Issue Type: Bug
Components: classloading
Affects Versions: JBDEPLOY-2.0.5.GA
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBDEPLOY-2.2.x
Caused by: java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2990)
at
org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
at
org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira