7 Replies Latest reply on Jul 17, 2007 11:56 AM by Mark Spritzler

    @Destroy annotated method on Application Scoped component

    Mark Spritzler Apprentice

      When trying to put an @Destroy method on an Application Scoped Component we get a WARN stack trace

      17:10:26,843 WARN [Component] Exception calling component @Destroy method: pluginContainerBootstrap
      java.lang.IllegalStateException: no event context active
       at org.jboss.seam.web.ServletContexts.instance(ServletContexts.java:40)
       at org.jboss.seam.web.Parameters.getRequestParameters(Parameters.java:39)
      
      


      Basically, we want a method that will get called when our App gets undeployed/closed. Is there a way to do this?

      Thanks

      If you need more of the stack trace, just let me know.