3 Replies Latest reply on May 2, 2008 2:19 AM by Gena Batalski

    Trinidad + Seam -> No active application context

    Stephen Friedrich Novice

      After upgrading from Trinidad 1.0.5 and Seam 1.2.1 to Trinidad 1.2.7 and Seam 2.0.1.GA and lots of fine tuning my application now mostly works fine again.


      However I can't add any faces messages!
      It seems to me that trinidad triggers the Seam resource loader at inconvenient times.


      Can anybody make sense of this exception?
      Any workaround?



      2008-03-17 01:18:35,171 ERROR [ExceptionFilter] handling uncaught exception
      java.lang.IllegalStateException: No application context active
           at org.jboss.seam.Component.forName(Component.java:1807)
           at org.jboss.seam.Component.getInstance(Component.java:1857)
           at org.jboss.seam.Component.getInstance(Component.java:1852)
           at org.jboss.seam.Component.getInstance(Component.java:1829)
           at org.jboss.seam.Component.getInstance(Component.java:1824)
           at org.jboss.seam.core.ResourceLoader.instance(ResourceLoader.java:97)
           at org.jboss.seam.core.SeamResourceBundle.loadBundlesForCurrentLocale(SeamResourceBundle.java:59)
           at org.jboss.seam.core.SeamResourceBundle.getBundlesForCurrentLocale(SeamResourceBundle.java:49)
           at org.jboss.seam.core.SeamResourceBundle.getKeys(SeamResourceBundle.java:81)
           at org.apache.myfaces.trinidadinternal.resource.TranslationsResourceLoader._addMessagesToMap(TranslationsResourceLoader.java:208)
           at org.apache.myfaces.trinidadinternal.resource.TranslationsResourceLoader.getString(TranslationsResourceLoader.java:128)
           at org.apache.myfaces.trinidadinternal.resource.TrTranslationsResourceLoader.getString(TrTranslationsResourceLoader.java:88)
           at org.apache.myfaces.trinidad.resource.StringContentResourceLoader.getURL(StringContentResourceLoader.java:50)
           at org.apache.myfaces.trinidadinternal.resource.TranslationsResourceLoader.findResource(TranslationsResourceLoader.java:90)
           at org.apache.myfaces.trinidad.resource.ResourceLoader.getResource(ResourceLoader.java:67)
           at org.apache.myfaces.trinidadinternal.resource.LocaleElementsResourceLoader.getURL(LocaleElementsResourceLoader.java:73)
           at org.apache.myfaces.trinidadinternal.resource.LocaleElementsResourceLoader.findResource(LocaleElementsResourceLoader.java:53)
           at org.apache.myfaces.trinidad.resource.ResourceLoader.getResource(ResourceLoader.java:67)
           at org.apache.myfaces.trinidad.resource.RegexResourceLoader.findResource(RegexResourceLoader.java:69)
           at org.apache.myfaces.trinidad.resource.ResourceLoader.getResource(ResourceLoader.java:67)
           at org.apache.myfaces.trinidad.resource.CachingResourceLoader.findResource(CachingResourceLoader.java:76)
           at org.apache.myfaces.trinidad.resource.ResourceLoader.getResource(ResourceLoader.java:67)
           at org.apache.myfaces.trinidad.webapp.ResourceServlet.getLastModified(ResourceServlet.java:241)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:685)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
           at org.apache.myfaces.trinidad.webapp.ResourceServlet.service(ResourceServlet.java:162)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
           at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
           at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
           at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
           at java.lang.Thread.run(Thread.java:595)
      2008-03-17 01:18:35,171 ERROR [ExceptionFilter] exception root cause