Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.3
-
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]