[jboss-jira] [JBoss JIRA] Commented: (JBAS-8424) RestEasy deployer won't release Weld BeanManager on undeploy
Jozef Hartinger (JIRA)
jira-events at lists.jboss.org
Mon Oct 18 03:41:54 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557541#action_12557541 ]
Jozef Hartinger commented on JBAS-8424:
---------------------------------------
Since the CdiInjectorFactory is referenced from various locations, it cannot cleanup itself. This must be fixed in RESTEasy. Bill, the object graph follows:
javax.ws.rs.RuntimeDelegate -> ThreadLocalResteasyProviderFactory -> ResteasyProviderFactory -> CdiInjectorFactory -> BeanManagerImpl
The problem is that RuntimeDelegate caches the provider factory in a static field. On undeploy, the field should be cleared (if it had not been replaced by another deployment's provider factory in the meantime)
> RestEasy deployer won't release Weld BeanManager on undeploy
> ------------------------------------------------------------
>
> Key: JBAS-8424
> URL: https://jira.jboss.org/browse/JBAS-8424
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Affects Versions: 6.0.0.CR1
> Environment: JBoss AS 6.0.0-SNAPSHOT, Linux 64 bit
> Reporter: David Allen
> Assignee: Bill Burke
> Priority: Blocker
> Fix For: 6.0.0.CR1
>
> Attachments: jsf-impl.jar
>
>
> ThreadLocalResteasyProviderFactory in RestEasy has a reference to a CdiInjectorFactory that is not released when the application is undeployed from JBoss AS. This CdiInjectorFactory holds a reference to a BeanManager from Weld, and thus leaks all the beans from the deployment.
--
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
More information about the jboss-jira
mailing list