Custom error-page(401) causes "Must call associate() before calling activate()"

I'm developing javaee aplication with JSF/Primefaces.

I needed to secure my application. I did that with:





APP

*

GET

POST





MYROLE desc

MYROLEAccess





NONE







BASIC



However when I defined a custom error-page for error 401



401

/error/401.xhtml



I got:

Problem occurred while serving the error page.

java.lang.IllegalStateException: Must call associate() before calling activate()

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

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

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

at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)

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

Truncated. see log file for complete stacktrace

`

and the browser presents HTTP ERROR 500.

I'm using weblogic 12.1.3 and java 7.

I tried with weblogic 12.2.x and java 8 and it works.

What's wrong here?

Can you help me? If I don't map the error it asks for the credentials, otherwise it goes...

Read More »

By: StackOverFlow - 6 days ago

Related Posts