myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Antwort: Re: [Trinidad] Basic Trinidad 1.2.7 incompatibility with Seam!
Date Wed, 19 Mar 2008 15:41:25 GMT
"No application context active"

That is a Seam configuration problem, not Trinidad. The seam
application context is created and maintained by Seam. It may be
relying on the JSF application context though. My gut tells me this is
a Seam issue and not related to Trinidad.

Check your web.xml and faces-config.xml and make sure all your seam
filters are setup correctly, JSF is registered correctly and all the
filters are in the correct order. If you are still stuck, debug into
the Seam Manager.java and Contexts.java classes as they manage the
contexts.

If you need more help, post your web.xml and faces-config.xml so I can
check your config. I was running trinidad 1.2.7 w/ facelets 1.1.14 and
Seam 2.0.1.GA without any of these problems.

-Andrew

On Wed, Mar 19, 2008 at 5:23 AM, Matthias Wessendorf
<mwessendorf@gmail.com> wrote:
>
> Thanks wolfgang.
>
> Andrew,
> can you check that?
>
> -M
>
> Sent from my iPod.
>
> Am 19.03.2008 um 11:51 schrieb wolfgang.toepfer@pta.de:
>
>
>
>
>
> Hi,
>
> As usual it's always difficult to find a bit of time.. ;/
>
> but I try ;..
>
> However, it should be easy to do: take a Seam 2.0.1 GA Login Demo enhance it
> with Trinidad 1.2.7
> and add a few extra fields wherein one passes extra login info by using
> tr:input.
> Then the error should come up.
>
> Actuallty there is one curious thing to note: the tr:input work with the
> standard identity.userid and identity.password.
> But as soon as one uses one's own domain data that error comes up.
>
> Thanks,
> Wolfgang.
>
>
>
>
>  "Matthias Wessendorf" <matzew@apache.org>
> Gesendet von: mwessendorf@gmail.com
>
> 19.03.2008 11:24
>
> Bitte antworten an
>  "MyFaces Discussion" <users@myfaces.apache.org>
>
>
> An "MyFaces Discussion" <users@myfaces.apache.org>
>
> Kopie
>
> Thema Re: [Trinidad] Basic Trinidad 1.2.7 incompatibility with Seam!
>
>
>
>
>
> Hi,
>
>  On Wed, Mar 19, 2008 at 5:44 AM,  <wolfgang.toepfer@pta.de> wrote:
>  >
>  > Hi,
>  >
>  > here's an ugly issue that occurs with tr:inputText components in Trinidad
>  > 1.2.7.
>  >
>  > I cannot say anything regarding 1.2.6 because we tried to upgrade from
> 1.2.5
>  > to 1.2.7.
>
>  1.2.6 had issues with Facelets, therefore you don't wanna try that version
> ;-)
>
>  It would be good if there were a simple project that doesn't have much
>  "content",
>  at least to reproduce this issue.
>
>  -M
>
>  >
>  > In 1.2.5 and below the problem does not occur.
>  >
>  > In 1.2.7 something like
>  >
>  >                             <h:inputText id="gst" value="#{identity.gst}"
> />
>  >
>  > works.
>  >
>  > However, if you use
>  >
>  >
>  >                             <tr:inputText id="gst"
> value="#{identity.gst}"
>  > />
>  >
>  > (and it does not matter if you set simple="true" or not)
>  >
>  > one gets
>  >
>  > 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:686)
>  >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>  >         at
>  >
> org.apache.myfaces.trinidad.webapp.ResourceServlet.service(ResourceServlet.java:162)
>  >         at
>  >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>  >         at
>  >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  >         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.web.MultipartFilter.doFilter(MultipartFilter.java:85)
>  >         at
>  >
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
>  >         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:235)
>  >         at
>  >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  >         at
>  >
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>  >         at
>  >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  >         at
>  >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  >         at
>  >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
>  >         at
>  >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>  >         at
>  >
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
>  >         at
>  >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
>  >         at
>  >
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
>  >         at
>  >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>  >         at
>  >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>  >         at
>  >
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
>  >         at
>  >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  >         at
>  >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
>  >         at
>  >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>  >         at
>  >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
>  >         at
>  > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>  >         at java.lang.Thread.run(Unknown Source)
>  > 10:41:52,449 ERROR [ExceptionFilter] exception root cause
>  >
>  > Any ideas?
>  >
>  > Also, is this a matter to be dealt with in the JIRA of Trinidad or is
> this
>  > something for the Seam people?
>  >
>  > Thanks,
>  > Wolfgang.
>  >
>  >
>  >
>
>
>
>  --
>  Matthias Wessendorf
>
>  further stuff:
>  blog: http://matthiaswessendorf.wordpress.com/
>  sessions: http://www.slideshare.net/mwessendorf
>  mail: matzew-at-apache-dot-org
>
>

Mime
View raw message