[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-107) MC beans cannot be redeployed after refresh
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Fri Jun 19 03:22:56 EDT 2009
[ https://jira.jboss.org/jira/browse/JBOSGI-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12472923#action_12472923 ]
Thomas Diesler commented on JBOSGI-107:
---------------------------------------
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.
> MC beans cannot be redeployed after refresh
> -------------------------------------------
>
> Key: JBOSGI-107
> URL: https://jira.jboss.org/jira/browse/JBOSGI-107
> Project: JBoss OSGi
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Affects Versions: JBossOSGi 1.0.0 Beta2
> Reporter: Thomas Diesler
> Fix For: JBossOSGi 1.0.0 Beta3
>
>
> 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
More information about the jboss-osgi-issues
mailing list