Tapestry
  1. Tapestry
  2. TAPESTRY-1316

Address class loader issues inside JBoss

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      As per the comment on addClassLoader, if the class loader hierarchy is not a flat line then the classloaders can be lost.

      1. TAP-1316.patch
        3 kB
        Ben Sommerville

        Issue Links

          Activity

          Hide
          Ben Sommerville added a comment -

          Patch to copy with classloaders with tree structures.

          What it does is track the leaf classloader of each branch in the tree (that we have seen). When a new classloader is added we check to see if it is a child of an existing leaf. If so we replace the existing leaf. If not we add a new leaf.

          I have tested this under JBoss & it fixed the problem that I was having. It hasn't been tested under any other container.

          Show
          Ben Sommerville added a comment - Patch to copy with classloaders with tree structures. What it does is track the leaf classloader of each branch in the tree (that we have seen). When a new classloader is added we check to see if it is a child of an existing leaf. If so we replace the existing leaf. If not we add a new leaf. I have tested this under JBoss & it fixed the problem that I was having. It hasn't been tested under any other container.
          Hide
          Howard M. Lewis Ship added a comment -

          Ben — you are the man! This really cleaned up a lot of ugliness deploying and redeploying inside JBoss.

          Show
          Howard M. Lewis Ship added a comment - Ben — you are the man! This really cleaned up a lot of ugliness deploying and redeploying inside JBoss.

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Ben Sommerville
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development