Injection Time

Splash Forums PrettyFaces Users Injection Time

This topic contains 21 replies, has 3 voices, and was last updated by  Christian Kaltepoth 5 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #18008

    RedShadow
    Participant

    Hello, i have a really quick question!

    Is it supposed that prettyfaces will inject value of an url pattern after determining the viewid?

    #21252

    Hey there :)

    Injection should occur before view determination if you are using DynaView, but after RESTORE_VIEW phase.

    ~Lincoln

    #21253

    RedShadow
    Participant

    Well then i have a to report a bug…

    <url-mapping id=”menu”>

    <pattern value=”#{menuEntryName : navigationBean.menuEntryName}/” />

    <view-id value=”/#{navigationBean.getViewPath}”/>

    </url-mapping>

    This is what i am using, and the menuEntryName gets injected after the call of getViewPath()

    I am using Mojarra 2.1.1 with PF 3.3.0 on GF 3.1.1

    #21254

    RedShadow
    Participant

    And PF 3.3.1-SNAPSHOT breaks my application completely.

    I get a ServletException, Context is already active.

    I think this is caused by WELD

    #21255

    Well, the first issue I don’t think is a bug. You have a typo in your <view-id>. You must either use a literal path “/myView.etc” or you must use an EL method expression, “#{bean.method}“, but not both, which is what you have:

    "/#{navigationBean.getViewPath}"

    As far as the Context already active issue – is it broken on all pages or just one? I’m not sure what would be different, since I think we only mostly changed configuration.

    Note that the CDI conversation scope is pretty badly designed, and it’s not hard to get errors in general – interested to hear your description of the situation. Please give as much info as possible.

    Thanks.

    #21256

    RedShadow
    Participant

    The slash was just a typo in the forum.

    <url-mapping id=”menu”>

    <pattern value=”/#{menuEntryName : navigationBean.menuEntryName}/” />

    <view-id value=”#{navigationBean.getViewPath}”/>

    <action>#{navigationBean.getViewPath}</action>

    </url-mapping>

    Acutally i do this as “workaround” because in action method the parameters are injected.

    #21257

    RedShadow
    Participant

    Btw this problem is also related to: http://ocpsoft.com/support/topic/form-action-is-not-rewritten-correctly-1

    The first call to getViewPath() delivers a wrong view because the menuEntryName is not injected at that time. The parameters are definitely injected before calling action methods but after the call of the dynaview expression(Just debugged through it to verify).

    Because of that, the form action is not rewritten correctly, am I right?

    I tried to use the following processor to get things working but it will break the whole JSF Lifecycle(No action methods executed anymore):

    public class OutboundUrlProcessor implements Processor{

    private static final Logger log = LoggerFactory.getLogger(OutboundUrlProcessor.class);

    @Override

    public String processInbound(HttpServletRequest hsr, HttpServletResponse hsr1, RewriteRule rr, String url) {

    return url;

    }

    @Override

    public String processOutbound(HttpServletRequest hsr, HttpServletResponse hsr1, RewriteRule rr, String url) {

    if(!url.endsWith(“.xhtml”) || url.startsWith(“/javax.faces.resource/”))

    return url;

    return com.ocpsoft.pretty.PrettyContext.getCurrentInstance().getRequestURL().toString();

    }

    }

    Could you give me any hint how to get that whole stuff working?

    #21258

    What is the scope of your NavigationBean?

    #21259

    RedShadow
    Participant

    RequestScope

    #21260

    RedShadow
    Participant

    Custom parsing:

    PrettyContext pc = PrettyContext.getCurrentInstance();

    List<PathParameter> params = pc.getCurrentMapping().getPatternParser().parse(pc.getRequestURL());

    for(PathParameter p : params){

    if(“menuEntryName”.equals(p.getName())){

    menuEntryName = p.getValue();

    }else if(“secondLevelMenuEntryName”.equals(p.getName())){

    secondLevelMenuEntryName = p.getValue();

    }else{

    parameters = p.getValue();

    }

    }

    And everything works fine, so it is absolutely related to the problem with the injection.

    If it helps you i am using CDI

    #21261

    RedShadow
    Participant

    This is my stacktrace when using PF 3.3.1:

    WARNUNG: ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)

    INFO: 03:57:30.664 [http-thread-pool-8181(1)] WARN javax.enterprise.system.container.web.com.sun.enterprise.web – ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)

    INFO: 03:57:30.686 [http-thread-pool-8181(1)] WARN javax.enterprise.system.container.web.com.sun.enterprise.web – ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)

    INFO: Exception when handling error trying to reset the response.
    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    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:409)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)
    … 66 more
    Caused by: javax.servlet.ServletException: Context is already active
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
    … 70 more
    Caused by: java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
    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:409)
    … 89 more

    INFO: 03:57:30.772 [http-thread-pool-8181(1)] INFO javax.enterprise.resource.webcontainer.jsf.context – Exception when handling error trying to reset the response.
    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39) [GZIPFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40) [ClickjackFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37) [HideServerInfoFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42) [LoginRedirectFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) [web-core.jar:3.1.1-b01]
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) [web-glue.jar:3.1.1-b01]
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) [web-glue.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) [web-core.jar:3.1.1-b01]
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) [kernel.jar:3.1.1-b01]
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) [grizzly-utils.jar:1.9.31]
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) [grizzly-utils.jar:1.9.31]
    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]
    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java) ~[seam-faces-3.0.2.Final.jar:3.0.2.Final]
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    … 66 common frames omitted
    Caused by: javax.servlet.ServletException: Context is already active
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422) [jsf-api.jar:2.1.1-SNAPSHOT]
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    … 70 common frames omitted
    Caused by: java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301) ~[weld-osgi-bundle.jar:20110114-1644]
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110) ~[weld-osgi-bundle.jar:20110114-1644]
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84) ~[weld-osgi-bundle.jar:20110114-1644]
    at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]
    … 89 common frames omitted

    INFO: 03:57:30.811 [http-thread-pool-8181(1)] INFO javax.enterprise.resource.webcontainer.jsf.context – Exception when handling error trying to reset the response.
    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39) [GZIPFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40) [ClickjackFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37) [HideServerInfoFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42) [LoginRedirectFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) [web-core.jar:3.1.1-b01]
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) [web-glue.jar:3.1.1-b01]
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) [web-glue.jar:3.1.1-b01]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) [web-core.jar:3.1.1-b01]
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) [kernel.jar:3.1.1-b01]
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) [grizzly-http.jar:1.9.31]
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71) [grizzly-framework.jar:1.9.31]
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) [grizzly-utils.jar:1.9.31]
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) [grizzly-utils.jar:1.9.31]
    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]
    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]
    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]
    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java) ~[seam-faces-3.0.2.Final.jar:3.0.2.Final]
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    … 66 common frames omitted
    Caused by: javax.servlet.ServletException: Context is already active
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422) [jsf-api.jar:2.1.1-SNAPSHOT]
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    … 70 common frames omitted
    Caused by: java.lang.IllegalStateException: Context is already active
    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301) ~[weld-osgi-bundle.jar:20110114-1644]
    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110) ~[weld-osgi-bundle.jar:20110114-1644]
    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84) ~[weld-osgi-bundle.jar:20110114-1644]
    at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) ~[jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]
    … 89 common frames omitted

    WARNUNG: ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception
    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)

    
    

    WARNUNG: ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception

    java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:619)

    INFO: 03:57:30.664 [http-thread-pool-8181(1)] WARN javax.enterprise.system.container.web.com.sun.enterprise.web - ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception

    java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:619)

    INFO: 03:57:30.686 [http-thread-pool-8181(1)] WARN javax.enterprise.system.container.web.com.sun.enterprise.web - ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception

    java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:619)

    INFO: Exception when handling error trying to reset the response.

    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)

    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:409)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

    at java.lang.Thread.run(Thread.java:619)

    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java)

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101)

    ... 66 more

    Caused by: javax.servlet.ServletException: Context is already active

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422)

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

    ... 70 more

    Caused by: java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301)

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)

    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:409)

    ... 89 more

    INFO: 03:57:30.772 [http-thread-pool-8181(1)] INFO javax.enterprise.resource.webcontainer.jsf.context - Exception when handling error trying to reset the response.

    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39) [GZIPFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40) [ClickjackFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37) [HideServerInfoFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42) [LoginRedirectFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) [web-core.jar:3.1.1-b01]

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) [web-glue.jar:3.1.1-b01]

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) [web-glue.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) [web-core.jar:3.1.1-b01]

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) [kernel.jar:3.1.1-b01]

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) [grizzly-utils.jar:1.9.31]

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) [grizzly-utils.jar:1.9.31]

    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]

    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java) ~[seam-faces-3.0.2.Final.jar:3.0.2.Final]

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    ... 66 common frames omitted

    Caused by: javax.servlet.ServletException: Context is already active

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422) [jsf-api.jar:2.1.1-SNAPSHOT]

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    ... 70 common frames omitted

    Caused by: java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301) ~[weld-osgi-bundle.jar:20110114-1644]

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110) ~[weld-osgi-bundle.jar:20110114-1644]

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84) ~[weld-osgi-bundle.jar:20110114-1644]

    at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]

    ... 89 common frames omitted

    INFO: 03:57:30.811 [http-thread-pool-8181(1)] INFO javax.enterprise.resource.webcontainer.jsf.context - Exception when handling error trying to reset the response.

    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.gzip.GZIPFilter.doFilter(GZIPFilter.java:39) [GZIPFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.ClickjackFilter.doFilter(ClickjackFilter.java:40) [ClickjackFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HideServerInfoFilter.doFilter(HideServerInfoFilter.java:37) [HideServerInfoFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.user.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:42) [LoginRedirectFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) [web-core.jar:3.1.1-b01]

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) [web-glue.jar:3.1.1-b01]

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) [web-glue.jar:3.1.1-b01]

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) [web-core.jar:3.1.1-b01]

    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) [kernel.jar:3.1.1-b01]

    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) [grizzly-http.jar:1.9.31]

    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.ContextTask.run(ContextTask.java:71) [grizzly-framework.jar:1.9.31]

    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) [grizzly-utils.jar:1.9.31]

    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) [grizzly-utils.jar:1.9.31]

    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]

    Caused by: javax.faces.FacesException: javax.servlet.ServletException: Context is already active

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93) ~[jsf-api.jar:2.1.1-SNAPSHOT]

    at org.jboss.seam.faces.environment.org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.dispatch(org$jboss$weld$bean-WEB-INF$lib$seam-faces-3$0$2$Final-ManagedBean-class_org$jboss$seam$faces$environment$SeamExternalContext_$$_WeldClientProxy.java) ~[seam-faces-3.0.2.Final.jar:3.0.2.Final]

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:101) ~[prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    ... 66 common frames omitted

    Caused by: javax.servlet.ServletException: Context is already active

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:422) [jsf-api.jar:2.1.1-SNAPSHOT]

    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.1-20110804.135559-11.jar:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.blazefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:85) [FileUploadFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at com.blazebit.web.cms.core.system.filter.security.HttpsFilter.doFilter(HttpsFilter.java:82) [HttpsFilter.class:na]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350) [web-core.jar:3.1.1-b01]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300) [web-core.jar:3.1.1-b01]

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    ... 70 common frames omitted

    Caused by: java.lang.IllegalStateException: Context is already active

    at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301) ~[weld-osgi-bundle.jar:20110114-1644]

    at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110) ~[weld-osgi-bundle.jar:20110114-1644]

    at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84) ~[weld-osgi-bundle.jar:20110114-1644]

    at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) ~[jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.1-SNAPSHOT]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) [jsf-api.jar:2.1.1-SNAPSHOT]

    ... 89 common frames omitted

    WARNUNG: ApplicationDispatcher[] PWC1231: Servlet.service() for servlet Faces Servlet threw exception

    com.ocpsoft.pretty.PrettyException: Could not forward to view: /admin/login.xhtml

    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)

    #21262

    I just tried to reproduce this issue and indeed the dynaview behavior seems to be a bit strange. I’m not an expert for dynaview as I don’t use it often in my applications but I can confirm that there is no injection before view determination.

    My current explanation for this is the following:

    The parameter validation and injection happens after RESTORE_VIEW. But only if FacesContext.getResponseComplete() is false. If I remember correctly we did this some time ago to fix an incompatibility with PrimeFaces.

    The problems seems to be that in case of dynaview we are setting FacesContext.responseComplete() before RESTORE_VIEW after the UIViewRoot has been created. Therefore the injection doesn’t happen.

    See:

    https://github.com/ocpsoft/prettyfaces/blob/master/core/src/main/java/com/ocpsoft/pretty/faces/event/PrettyPhaseListener.java#L35

    I’m not sure regarding all the details why we are setting FacesContext.responseComplete() before RESTORE_VIEW. Lincoln is the expert here! :)

    The strange thing also is that in my tests the injection NEVER happens. Not even after the view determination. And the behavior is also reproducible with older PrettyFaces versions like 3.2.0.

    @redshadow: You said that the injection and the execution of the viewId method is in the wrong order for you. So you say the injection happens in your project, just too late?

    #21263

    Another thing that was surprising for me is that the request isn’t wrapped into a PrettyFacesWrappedRequest when using dynaview. So the translation of path parameters to query parameters won’t work. Any reason why the request isn’t wrapped? At least this would allow to get the path parameter values like this:

    <url-mapping id="menu">
    <pattern value="/#{menuEntryName : navigationBean.menuEntryName}/" />
    <view-id value="#{navigationBean.getViewPath}"/>
    </url-mapping>

    public class NavigationBean {

    public String getViewPath() {

    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    String menuEntryName = externalContext.getRequestParameterMap().get("menuEntryName");

    }

    }

    #21264

    RedShadow
    Participant

    As I mentioned in the post right before the long exception, the injection happens, but after dynaview determinition. The prettyconext solution does work properly for me, i haven’t checked wether the request is wrapped or not but you should make a bugrequest anyway ;)

    Sorry for the slight topic change now, but your last post remembered me of an “issue” which i didn’t really care about.

    Using a pattern like this:

    #{ /.*/ parameters : navigationBean.parameters}

    will not work. Maybe it is fixed already, the problem ocurred in 3.3.0 snapshot.

    Is a fail when using it expected or not?

    EDIT:

    3.3.0 “Final” supports that kind of pattern! =D

    #21265

    Sorry for my late reply on this one. I created a ticket for the dynaview issue here:

    http://code.google.com/p/prettyfaces/issues/detail?id=120

    Is the /.*/ still present in the current snapshots?

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic.

Comments are closed.