1 Reply Latest reply on Oct 2, 2007 4:12 PM by Rafael Ribeiro

    FileServlet - no active event context

    Rafael Ribeiro Novice

      I am getting the following exception when I try to request a file from a servlet I implemented following the wiki example.

      java.lang.IllegalStateException: No active event context
       org.jboss.seam.core.Manager.instance(Manager.java:248)
       org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:48)
       org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
       org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
      


      At first I was getting a no active application context but then I found out that I was missing the web:context-filter tag in components.xml file.

      I am running Seam 2.0.0CR1.
      Does anyone knows what might be causing this?

      best regards,
      Rafael