incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: Integration of Trinidad, Seam and ajax4jsf - AGAIN :-(((
Date Thu, 01 Mar 2007 11:28:09 GMT
Hi Thomas,

the problem you see is a problem in Facelets - at line 168 you can find:

                    writer.write("</td><td>");

writer.write(entry.getValue().toString().replaceAll("<", TS));
                    writer.write("</td></tr>");

if entry.getValue() is null, you get the NPE you see.

But why the facelets-debug tree is rendered, is not clear to me - this
shouldn't happen if there isn't a problem in the tree, I think?

regards,

Martin

On 3/1/07, Thomas Hamacher <thamacher@project-team.de> wrote:
> Hi @all,
>
> it is really too bad. After solving all the problems for make trinidad, seam and ajax4jsf
running together with the Seam Version 1.1.6, the Seam developers decided to change something
in their core, which has especially impact on the filter-settings in the web.xml. The result:
it doesn´t work anymore, although it worked in 1.1.6 :-((
>
> So I´m back at the problem again. Which of these components causes the error and what
has to be done to make it work? Is it just a simple configuration, or does this lead to any
changes in the code?
>
> Unfortunately Seam and also ajax4jsf mostly refuses to look for the reasons, because
they always say, that trinidad is not officially released and therefor not supported. But
I don´t really wanna drop trinidad only because of that. So it´s probably up to you trinidad-developers
to find a solution, if you want to stay compatible with seam.
>
> This is what I have:
>
>
> java.lang.NullPointerException
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:168)
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:144)
>         at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:135)
>         at com.sun.facelets.tag.ui.UIDebug.writeDebugOutput(UIDebug.java:92)
>         at com.sun.facelets.tag.ui.UIDebug.encodeBegin(UIDebug.java:81)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:247)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:280)
>         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderC
> ontent(PanelPartialRootRenderer.java:73)
>         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyR
> enderer.java:137)
>         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeA
> ll(PanelPartialRootRenderer.java:153)
>         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRende
> rer.java:79)
>         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:184)
>         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:70
> 1)
>         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
>         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
>         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImp
> l.java:182)
>         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
>         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
>         at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:4
> 1)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFil
> terImpl.java:210)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilte
> rImpl.java:167)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl
> .java:140)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
>         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava: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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
> va:175)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>
>         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(Htt
> p11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>         at java.lang.Thread.run(Thread.java:619)
> 10:43:48,333 INFO  [PublisherProfileOverviewActionBean(com.sepus.common.util.Logger.info(Logger.java
> :65))] DeleteRequested = false
> 10:43:48,503 ERROR [ExceptionFilter(org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java
> :67))] uncaught exception
> javax.servlet.ServletException
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:158)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFil
> terImpl.java:210)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilte
> rImpl.java:167)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl
> .java:140)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
>         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava: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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
> va:175)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>
>         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(Htt
> p11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>         at java.lang.Thread.run(Thread.java:619)
> 10:43:48,503 ERROR [ExceptionFilter(org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java
> :70))] exception root cause
> java.lang.NullPointerException
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:168)
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:144)
>         at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:109)
>         at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:671)
>         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:639)
>         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImp
> l.java:182)
>         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
>         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
>         at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:4
> 1)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFil
> terImpl.java:210)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilte
> rImpl.java:167)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl
> .java:140)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
>         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava: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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
> va:175)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>
>         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(Htt
> p11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>         at java.lang.Thread.run(Thread.java:619)
> 10:43:48,604 INFO  [Exceptions(org.jboss.seam.core.Exceptions.parse(Exceptions.java:104))]
reading e
> xception mappings from /WEB-INF/pages.xml
> 10:43:49,154 ERROR [DebugPageHandler(org.jboss.seam.exceptions.DebugPageHandler.handle(DebugPageHand
> ler.java:20))] redirecting to debug page
> java.lang.NullPointerException
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:168)
>         at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:144)
>         at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:109)
>         at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:671)
>         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:639)
>         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImp
> l.java:182)
>         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
>         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
>         at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:4
> 1)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFil
> terImpl.java:210)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilte
> rImpl.java:167)
>         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl
> .java:140)
>         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
>         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
>         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
> ava: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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
> va:175)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>
>         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(Htt
> p11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>         at java.lang.Thread.run(Thread.java:619)
>
>
> This is the calling form:
>
> <h:form id="uploadPictureForm" enctype="multipart/form-data">
>
>                     <tr:inputFile id="picture"
>                                   label="#{messages['label.picture']}"
>                                   valueChangeListener="#{PictureUploadAction.fileUploaded}"
>                                   required="true"
>                                   requiredMessageDetail="#{messages['validation.error.picture.file.required']}"
/>
>
>                     <h:commandButton id="saveBtn"
>                                      action="#{PictureUploadAction.save}"
>                                      value="#{messages['button.label.save']}"
>                                       />
>
>                     <h:commandButton id="cancelBtn"
>                                        value="#{messages['button.label.cancel']}"
>                                        immediate="true"  />
>
>                 </h:form>
>
> I changed my web.xml to the following, based on the web.xml in the examples
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4"
>          xmlns="http://java.sun.com/xml/ns/j2ee"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
>
>     <!-- ************************ SEAM Listener **************************** -->
>     <listener>
>         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
>     </listener>
>
>
>     <!-- ************************ SEAM Config **************************** -->
>     <!-- 300 second conversation timeout -->
>     <context-param>
>         <param-name>org.jboss.seam.core.manager.conversationTimeout</param-name>
>         <param-value>300000</param-value>
>     </context-param>
>
>     <context-param>
>         <param-name>org.jboss.seam.core.init.debug</param-name>
>         <param-value>true</param-value>
>     </context-param>
>
>
>     <!-- ************************ JSF Config **************************** -->
>     <context-param>
>         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>         <param-value>.xhtml</param-value>
>     </context-param>
>
>     <context-param>
>         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>         <param-value>client</param-value>
>     </context-param>
>
>
>     <!-- ************************ FACELETS Config **************************** -->
>     <context-param>
>         <param-name>facelets.DEVELOPMENT</param-name>
>         <param-value>true</param-value>
>     </context-param>
>
>     <context-param>
>         <param-name>facelets.REFRESH_PERIOD</param-name>
>         <param-value>2</param-value>
>     </context-param>
>
>     <context-param>
>         <description>Prevents HTML-Comments from beeing rendered</description>
>         <param-name>facelets.SKIP_COMMENTS</param-name>
>         <param-value>true</param-value>
>     </context-param>
>
>
>
>     <!-- ************************ Trinidad Config **************************** -->
>     <context-param>
>         <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
>         <param-value>false</param-value>
>     </context-param>
>
>     <context-param>
>         <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
>         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
>     </context-param>
>
>     <context-param>
>         <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
>         <param-value>true</param-value>
>     </context-param>
>
>     <!-- If this parameter is enabled, Trinidad will automatically
>        check the modification date of your JSPs, and discard saved
>        state when they change;  this makes development easier,
>        but adds overhead that should be avoided when your application
>        is deployed -->
>     <context-param>
>         <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
>         <param-value>true</param-value>
>     </context-param>
>
>
>     <!-- ************************ AJAX4JSF Filter **************************** -->
>     <!-- If you have other filters declared in the web.xml, be sure that Ajax4jsf
Filter is declared befo
> re the others. -->
>     <filter>
>         <display-name>Ajax4jsf Filter</display-name>
>         <filter-name>ajax4jsf</filter-name>
>         <filter-class>org.ajax4jsf.Filter</filter-class>
>         <init-param>
>             <param-name>forceparser</param-name>
>             <param-value>false</param-value>
>         </init-param>
>     </filter>
>
>  <filter-mapping>
>         <filter-name>ajax4jsf</filter-name>
>         <url-pattern>*.seam</url-pattern>
>     </filter-mapping>
>
>     <!-- ************************ Trinidad Filter **************************** -->
>     <filter>
>         <filter-name>Trinidad</filter-name>
>         <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
>     </filter>
>
>     <filter-mapping>
>         <filter-name>Trinidad</filter-name>
>         <servlet-name>Faces Servlet</servlet-name>
>     </filter-mapping>
>
>
>     <!-- ************************ Seam Filter **************************** -->
>      <filter>
>         <filter-name>Seam Filter</filter-name>
>         <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
>     </filter>
>
>     <filter-mapping>
>         <filter-name>Seam Filter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
>     <!-- ************************  SEAM Servlet Mapping ************************ 
-->
>     <servlet>
>         <servlet-name>Seam Resource Servlet</servlet-name>
>         <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>Seam Resource Servlet</servlet-name>
>         <url-pattern>/seam/resource/*</url-pattern>
>     </servlet-mapping>
>
>
>     <!-- ************************ Faces Servlet Mapping ****************************
-->
>     <servlet>
>         <servlet-name>Faces Servlet</servlet-name>
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>*.seam</url-pattern>
>     </servlet-mapping>
>
>
>     <!-- ************************ Trinidad resources servlet ****************************
-->
>     <servlet>
>         <servlet-name>Trinidad Resources</servlet-name>
>         <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>     </servlet>
>
>     <!-- This cannot be configured currently -->
>     <servlet-mapping>
>         <servlet-name>Trinidad Resources</servlet-name>
>         <url-pattern>/adf/*</url-pattern>
>     </servlet-mapping>
>
>     <!-- ************************ Misc **************************** -->
>     <session-config>
>         <session-timeout>30</session-timeout>
>     </session-config>
>
>     <welcome-file-list>
>         <welcome-file>
>             index.jsp
>         </welcome-file>
>     </welcome-file-list>
>
> </web-app>
>
>
> Together with this faces-config.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE faces-config
> PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
> "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
> <faces-config>
>
>     <!-- Phase listener needed for all Seam applications -->
>     <lifecycle>
>         <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
>         <!--<phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>-->
>     </lifecycle>
>
>     <application>
>         <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
>         <locale-config>
>             <default-locale>de_DE</default-locale>
>             <supported-locale>de_DE</supported-locale>
>             <supported-locale>en_US</supported-locale>
>             <supported-locale>fr_FR</supported-locale>
>         </locale-config>
>
>     </application>
>
>
>
>
> Is there anything I missed?
>
> Thanks for your help
>
> Thomas
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message