[jboss-jira] [JBoss JIRA] Commented: (JBDEPLOY-202) BeansDeployer cannot be recycled

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Tue Jun 30 11:58:08 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBDEPLOY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12474330#action_12474330 ] 

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

        



More information about the jboss-jira mailing list