semblance
  1. semblance
  2. SEMBLANCE-7

Can't load application with SLTilesRequestProcessor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0 beta 2
    • Fix Version/s: milestone 1
    • Component/s: StrutsLive
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Struts 1.2.4

    • Issuezilla Id:
      7

      Description

      As reported by Brian, the following exception occurs if you switch to the SLTilesRequestProcessor in
      struts-config.xml:

      javax.servlet.UnavailableException: TilesPlugin : Specified RequestProcessor not compatible with
      TilesRequestProcessor

        Activity

        Hide
        jlehr added a comment -

        Looks like a bug in the initialization code (we're trying to initialize a wrapped instance of
        TilesRequestProcessor in SLTilesRequestProcessor's constructor instead of in its init() method), as well as
        a nasty bit of code in TilesRequestProcessor's initialization routine that tries to enforce the use of their
        class hierarchy for some reason.

        Show
        jlehr added a comment - Looks like a bug in the initialization code (we're trying to initialize a wrapped instance of TilesRequestProcessor in SLTilesRequestProcessor's constructor instead of in its init() method), as well as a nasty bit of code in TilesRequestProcessor's initialization routine that tries to enforce the use of their class hierarchy for some reason.
        Hide
        jlehr added a comment -

        Moved the initialization code from the constructor to an overridden init() method. Also added a static field
        with accessors to allow configuring the class of the TilesRequestProcessor used internally
        (SLTilesRequestProcessor is actually a wrapper class).

        Also added SLTilesPlugin to defeat some inflexible testing of the request processor class hierarchy, etc. in
        TilesPlugin.

        Show
        jlehr added a comment - Moved the initialization code from the constructor to an overridden init() method. Also added a static field with accessors to allow configuring the class of the TilesRequestProcessor used internally (SLTilesRequestProcessor is actually a wrapper class). Also added SLTilesPlugin to defeat some inflexible testing of the request processor class hierarchy, etc. in TilesPlugin.

          People

          • Assignee:
            jlehr
            Reporter:
            jlehr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: