How to use CDI Conversation Filter in JSF2.2 Application

1k Views Asked by At

In my JSF 2.2 bases application I created a wizard which is based on @ConversationScope. To deal with errors I added CDI Conversation Filter to my web.xml.

My first question is about the right url-pattern for the filter-mapping. My Wizard runs behind the url /report/*. If I use this as pattern, all other pages throw the following exception:

javax.servlet.ServletException: A request must be associated with the context in order to load the known conversations

So, i had to use "/*" as pattern, which worked fine so far. But now, I want to integrate container-managed security. When requesting the restricted resource, the mentioned error is thrown, when redirecting to login-page.

Does anybody know, how to solve that?

Thanks in advance.

0

There are 0 best solutions below