[ https://issues.apache.org/jira/browse/OWB-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857099#action_12857099 ]
Joe Bergmark commented on OWB-354: ---------------------------------- I wasn't aware that ThreadLocal's had to be static. What about the non-ThreadLocal's - sessionCtxManager & conversationManager? Do we really want those shared between applications? That is what will happen in a tiered classloading environment when multiple applications are using the same OWB classloader. Couldn't those both just be instance variables as well? > WebContextService may throw NPE in tiered classloading environmemt > ------------------------------------------------------------------ > > Key: OWB-354 > URL: https://issues.apache.org/jira/browse/OWB-354 > Project: OpenWebBeans > Issue Type: Bug > Components: Context and Scopes > Affects Versions: M4 > Reporter: Joe Bergmark > Assignee: Joe Bergmark > Fix For: 1.0.0 > > > WebContextService sets the static context variables (which are ThreadLocals) > to null during a call to destroy. For example requestContext. > In a classloading environment where the same WebContextService would be > shared between webapps, this could lead to a NullPointerException in another > application as the static variable has been set to null and that static would > be shared. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira