Illegal attempt to set ViewHandler after a response has been rendered

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Illegal attempt to set ViewHandler after a response has been rendered

chilu49
I am trying to deploy EAR file from JBOSS into TomEE plume and  I am getting below error when access the application in browser. Need some help in bypassing this issue.

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.
        at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
        at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)
        at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
        at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:750)
        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:720)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)

Aug 03, 2017 2:56:30 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/XXXXX] threw exception [Illegal attempt to set ViewHandler after a response has been rendered.] with root cause
java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.
        at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:563)
        at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)
        at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
        at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:750)
        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:720)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Illegal attempt to set ViewHandler after a response has been rendered

jgallimore
Hi

Is it possible for you to provide a little sample app that reproduces the
problem? We'll be happy to dig in and see what's going on.

Jon

On 3 Aug 2017 10:22 pm, "chilu49" <[hidden email]> wrote:

> I am trying to deploy EAR file from JBOSS into TomEE plume and  I am
> getting
> below error when access the application in browser. Need some help in
> bypassing this issue.
>
> SEVERE: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.IllegalStateException: Illegal attempt to set ViewHandler after
> a
> response has been rendered.
>         at
> com.sun.faces.application.ApplicationImpl.setViewHandler(
> ApplicationImpl.java:563)
>         at
> org.ajax4jsf.event.InitPhaseListener.beforePhase(
> InitPhaseListener.java:92)
>         at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
>         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
>         at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(
> RestoreViewPhase.java:116)
>         at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
>         at org.ajax4jsf.webapp.BaseFilter.handleRequest(
> BaseFilter.java:290)
>         at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest
> (BaseFilter.java:368)
>         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:747)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:485)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:410)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:337)
>         at
> org.apache.jasper.runtime.PageContextImpl.doForward(
> PageContextImpl.java:750)
>         at
> org.apache.jasper.runtime.PageContextImpl.forward(
> PageContextImpl.java:720)
>         at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:439)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.
> java:339)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:220)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:122)
>         at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:505)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:436)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1078)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:625)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.
> run(JIoEndpoint.java:316)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:745)
>
> Aug 03, 2017 2:56:30 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Servlet.service() for servlet [jsp] in context with path [/XXXXX]
> threw exception [Illegal attempt to set ViewHandler after a response has
> been rendered.] with root cause
> java.lang.IllegalStateException: Illegal attempt to set ViewHandler after
> a
> response has been rendered.
>         at
> com.sun.faces.application.ApplicationImpl.setViewHandler(
> ApplicationImpl.java:563)
>         at
> org.ajax4jsf.event.InitPhaseListener.beforePhase(
> InitPhaseListener.java:92)
>         at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
>         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
>         at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(
> RestoreViewPhase.java:116)
>         at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
>         at org.ajax4jsf.webapp.BaseFilter.handleRequest(
> BaseFilter.java:290)
>         at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest
> (BaseFilter.java:368)
>         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(
> ApplicationDispatcher.java:747)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:485)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(
> ApplicationDispatcher.java:410)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:337)
>         at
> org.apache.jasper.runtime.PageContextImpl.doForward(
> PageContextImpl.java:750)
>         at
> org.apache.jasper.runtime.PageContextImpl.forward(
> PageContextImpl.java:720)
>         at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:439)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.
> java:339)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:220)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:122)
>         at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:505)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:436)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1078)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:625)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.
> run(JIoEndpoint.java:316)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Illegal-attempt-to-set-ViewHandler-after-a-
> response-has-been-rendered-tp4682368.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Illegal attempt to set ViewHandler after a response has been rendered

chilu49
This post was updated on .
In reply to this post by chilu49
Below is the directory structure. Let me know if you need more information.
It looks like the application uses JSF1.2 and TomEE Plume supports JSF2.5. I am guessing this the reason we seening the error.

.
├── css
│   └── sponsorshipsStyle.css
├── images
│   ├── continue.gif
│   ├── remove_icon.png
│   ├── separator.gif
│   ├── spacer.gif
│   ├── top_ban_advertising.jpg
│   ├── top_ban_donation.jpg
│   ├── top_ban.jpg
│   └── top_ban_sponsorship.jpg
├── index.jsp
├── js
│   └── sponsorshipsjs.js
├── layout
│   └── layout.xhtml
├── META-INF
│   ├── MANIFEST.MF
│   └── maven
│       └── com.cab
│           └── Sponsorships-web
│               ├── pom.properties
│               └── pom.xml
├── pages
│   ├── advertisement-application.xhtml
│   ├── advertisements.xhtml
│   ├── application-complete.xhtml
│   ├── application-submitted.xhtml
│   ├── confirmation.xhtml
│   ├── contact_form.xhtml
│   ├── declined-culture.xhtml
│   ├── declined-timeline.xhtml
│   ├── define.xhtml
│   ├── donation-application.xhtml
│   ├── donations.xhtml
│   ├── error-app-submission.xhtml
│   ├── event-sponsorship.xhtml
│   ├── general-error.xhtml
│   ├── personal-sponsorship.xhtml
│   ├── sponsorships.xhtml
│   ├── tv-show-sponsorship.xhtml
│   └── unexpected-error.html
└── WEB-INF
    ├── classes
    │   ├── com
    │   │   └── cab
    │   │       └── sponsorships
    │   │           └── jsf
    │   │               ├── beans
    │   │               │   ├── AdvertisementAppBean.class
    │   │               │   ├── AdvertisementsBean.class
    │   │               │   ├── ContactBean.class
    │   │               │   ├── DefineBean.class
    │   │               │   ├── DonationAppBean.class
    │   │               │   ├── DonationsBean.class
    │   │               │   ├── EventSponsorshipAppBean.class
    │   │               │   ├── PersonalSponsorshipAppBean.class
    │   │               │   ├── SponsorshipsBean.class
    │   │               │   ├── TvShowSponsorshipAppBean.class
    │   │               │   └── UploadedFileAppBean.class
    │   │               ├── configuration
    │   │               │   ├── FileConfiguration.class
    │   │               │   └── SdaConstant.class
    │   │               └── util
    │   │                   ├── ApplicationUtils.class
    │   │                   ├── CacheControlPhaseListener.class
    │   │                   ├── CookieCreator.class
    │   │                   ├── DateDisplayBean.class
    │   │                   ├── ErrorUtils.class
    │   │                   ├── JsfUtils.class
    │   │                   └── RedirectPhaseListener.class
    │   └── sponsorships_en.properties
    ├── faces-config.xml
    ├── jboss-web.xml
    ├── lib
    │   ├── batik-awt-util-1.6-1.jar
    │   ├── batik-ext-1.6-1.jar
    │   ├── batik-gui-util-1.6-1.jar
    │   ├── batik-util-1.6-1.jar
    │   ├── commons-beanutils-1.7.0.jar
    │   ├── commons-codec-1.3.jar
    │   ├── commons-collections-3.2.1.jar
    │   ├── commons-digester-1.8.jar
    │   ├── commons-el-1.0.jar
    │   ├── commons-fileupload-1.2.2.jar
    │   ├── commons-io-1.3.2.jar
    │   ├── commons-lang-2.4.jar
    │   ├── commons-logging-1.1.1.jar
    │   ├── commons-validator-1.3.1.jar
    │   ├── itext-1.4.8.jar
    │   ├── jsf-facelets-1.1.15.B1.jar
    │   ├── oro-2.0.8.jar
    │   ├── richfaces-api-3.3.1.GA.jar
    │   ├── richfaces-impl-3.3.1.GA.jar
    │   ├── richfaces-ui-3.3.1.GA.jar
    │   └── tomahawk-1.1.9.jar
    └── web.xml
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Illegal attempt to set ViewHandler after a response has been rendered

jgallimore
Thanks for sending this over. I'll take a look over the weekend for you.

Jon

On Thu, Aug 3, 2017 at 11:21 PM, chilu49 <[hidden email]> wrote:

> Below is the directory structure. Let me know if you need more information.
> It looks like the application uses JSF1.2 and TomEE Plume supports JSF2.5.
> I
> am guessing this the reason we seening the error.
>
> .
> ├── css
> │   └── sponsorshipsStyle.css
> ├── images
> │   ├── continue.gif
> │   ├── remove_icon.png
> │   ├── separator.gif
> │   ├── spacer.gif
> │   ├── top_ban_advertising.jpg
> │   ├── top_ban_donation.jpg
> │   ├── top_ban.jpg
> │   └── top_ban_sponsorship.jpg
> ├── index.jsp
> ├── js
> │   └── sponsorshipsjs.js
> ├── layout
> │   └── layout.xhtml
> ├── META-INF
> │   ├── MANIFEST.MF
> │   └── maven
> │       └── com.cabelas
> │           └── Sponsorships-web
> │               ├── pom.properties
> │               └── pom.xml
> ├── pages
> │   ├── advertisement-application.xhtml
> │   ├── advertisements.xhtml
> │   ├── application-complete.xhtml
> │   ├── application-submitted.xhtml
> │   ├── confirmation.xhtml
> │   ├── contact_form.xhtml
> │   ├── declined-culture.xhtml
> │   ├── declined-timeline.xhtml
> │   ├── define.xhtml
> │   ├── donation-application.xhtml
> │   ├── donations.xhtml
> │   ├── error-app-submission.xhtml
> │   ├── event-sponsorship.xhtml
> │   ├── general-error.xhtml
> │   ├── personal-sponsorship.xhtml
> │   ├── sponsorships.xhtml
> │   ├── tv-show-sponsorship.xhtml
> │   └── unexpected-error.html
> └── WEB-INF
>     ├── classes
>     │   ├── com
>     │   │   └── cabelas
>     │   │       └── sponsorships
>     │   │           └── jsf
>     │   │               ├── beans
>     │   │               │   ├── AdvertisementAppBean.class
>     │   │               │   ├── AdvertisementsBean.class
>     │   │               │   ├── ContactBean.class
>     │   │               │   ├── DefineBean.class
>     │   │               │   ├── DonationAppBean.class
>     │   │               │   ├── DonationsBean.class
>     │   │               │   ├── EventSponsorshipAppBean.class
>     │   │               │   ├── PersonalSponsorshipAppBean.class
>     │   │               │   ├── SponsorshipsBean.class
>     │   │               │   ├── TvShowSponsorshipAppBean.class
>     │   │               │   └── UploadedFileAppBean.class
>     │   │               ├── configuration
>     │   │               │   ├── FileConfiguration.class
>     │   │               │   └── SdaConstant.class
>     │   │               └── util
>     │   │                   ├── ApplicationUtils.class
>     │   │                   ├── CacheControlPhaseListener.class
>     │   │                   ├── CookieCreator.class
>     │   │                   ├── DateDisplayBean.class
>     │   │                   ├── ErrorUtils.class
>     │   │                   ├── JsfUtils.class
>     │   │                   └── RedirectPhaseListener.class
>     │   └── sponsorships_en.properties
>     ├── faces-config.xml
>     ├── jboss-web.xml
>     ├── lib
>     │   ├── batik-awt-util-1.6-1.jar
>     │   ├── batik-ext-1.6-1.jar
>     │   ├── batik-gui-util-1.6-1.jar
>     │   ├── batik-util-1.6-1.jar
>     │   ├── commons-beanutils-1.7.0.jar
>     │   ├── commons-codec-1.3.jar
>     │   ├── commons-collections-3.2.1.jar
>     │   ├── commons-digester-1.8.jar
>     │   ├── commons-el-1.0.jar
>     │   ├── commons-fileupload-1.2.2.jar
>     │   ├── commons-io-1.3.2.jar
>     │   ├── commons-lang-2.4.jar
>     │   ├── commons-logging-1.1.1.jar
>     │   ├── commons-validator-1.3.1.jar
>     │   ├── itext-1.4.8.jar
>     │   ├── jsf-facelets-1.1.15.B1.jar
>     │   ├── oro-2.0.8.jar
>     │   ├── richfaces-api-3.3.1.GA.jar
>     │   ├── richfaces-impl-3.3.1.GA.jar
>     │   ├── richfaces-ui-3.3.1.GA.jar
>     │   └── tomahawk-1.1.9.jar
>     └── web.xml
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Illegal-attempt-to-set-ViewHandler-after-a-
> response-has-been-rendered-tp4682368p4682371.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Illegal attempt to set ViewHandler after a response has been rendered

chilu49
The issue is now resolved.

I had to place below entries in the faces-config.xml file

<application>
  <view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>
</application>
Loading...