Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-559

shiro-guice violates the JEE specification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.3
    • 1.4.0
    • Integration: Guice
    • None

    Description

      The DestroyableRegistry.destroy() method (line 65/66), annotated with @PreDestroy throws a checked exception which violates the specification, which makes it impossible for a shiro-guice powered application to be deployed on Glassfish.

      Here is the exact error message:

      The lifecycle method [destroy] must not throw a checked exception. Related annotation information: annotation [javax.annotation.PreDestroy()] on annotated element [public void org.apache.shiro.guice.ShiroModule$1.destroy() throws java.lang.Exception] of type [METHOD] The lifecycle method [destroy] must not throw a checked exception. Related annotation information: annotation [javax.annotation.PreDestroy()] on annotated element [public void org.apache.shiro.guice.ShiroModule$1.destroy() throws java.lang.Exception] of type [METHOD]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kv Krassimir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: