Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-404

OSGi classloader issue with Class.forName usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • tiles-api, tiles-core
    • None
    • SpringSource dm Server (equinox)

    • Patch

    Description

      Two classes, in the Tiles core and api packages, load classes by name without specifying a classloader. This can cause issues when running in an OSGI environment.

      The two classes we have found issues with are:
      tiles-api/src/main/java/org/apache/tiles/reflect/ClassUtil.java
      tiles-core/src/main/java/org/apache/tiles/context/ChainedTilesContextFactory.java

      The attached patch has been applied to Tiles 2.1.2 and published to the SpringSource Enterprise Bundle Repository:
      http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.tiles&version=2.1.2.osgi
      http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.tiles.core&version=2.1.2.osgi

      Attachments

        1. osgi-classloading.patch
          2 kB
          Scott Andrews

        Activity

          People

            brenmcguire Antonio Petrelli
            sandrews Scott Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: