1 Reply Latest reply on Mar 9, 2008 9:07 PM by Keith Naas

    Listeners

    Marcos Sousa Newbie

      Hello,


      I have one servlet listener that checks some data, before application startup. I'm using Spring 2.5, Seam 2.0 and JSF 1.2. The problem is: Using the default spring sessionFactory, I have some problems with lazy initialization, but using seam suggested session factory integration, my listener doesn't work:


      SEVERE: Exception sending context initialized event to listener instance of class br.com.ajsolucoes.core.web.StartupServlet
      java.lang.IllegalStateException: Seam application context not available and cannot be started.  Seam Managed Persistence Context not available.  Try placing the spring bean call inside of a spring transaction or try making the spring bean a Seam Component using <seam:component/>.
           at org.jboss.seam.ioc.spring.SeamLifecycleUtils.beginTransactionalSeamCall(SeamLifecycleUtils.java:44)
      



      What should I do? Is there any support to ServletListners components like filters in the seam framework?