Jetty

jndi related threadlocal not cleared after deploying webapp

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.12.rc2
  • Fix Version/s: 6.1.12.rc3
  • Component/s: J2EE/Extra
  • Labels:
    None
  • Number of attachments :
    0

Description

A threadlocal variable which determines the naming scope of JNDI entries is not being cleared after the deployment of a webapp. This means that when deploying many webapps, subsequent webapps may have their scope set in such a way that jndi entries in their context.xml file are put into java:comp/env instead of the global namespace. Whilst this might be seen as "desirable", it is in fact incorrect and all jndi entries in context.xml files can only be in the global scope. This problem has been addressed in a different way for jetty-7
(see http://jira.codehaus.org/browse/JETTY-708). The jetty-7 fix will be ported to jetty-6, but in the meanwhile, I am checking in a quick fix for the scoping problem. I will update this issue when the jetty-7 solution is ported.

Issue Links

Activity

Hide
Jan Bartel added a comment -

Temporary fix checked in as jetty-6.1 branch, rev 3654.

Show
Jan Bartel added a comment - Temporary fix checked in as jetty-6.1 branch, rev 3654.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: