In a simple jsf2.0 application,I am getting this exception :javax.faces.application.ViewExpiredException View could not be restored.
In console I am getting following error: org.portletfaces.bridge.BridgeException: Must first call setPortletContext(PortletContext)
When I executed my application without useing Primefaces jar it worked properly. But after addind Primefaces jar I started getting this exception.
I am using Tomcat 7.2. EDIT: There are only 3 pages in the application and no backing bean.. A link on first page is invoking second page. But when I click on the link I am getting this error and the second page is not displayed. Cant understand the cause of the problem. Please help.