Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown when trying to login as user #83

Open
kathrynkodama opened this issue Dec 19, 2018 · 2 comments
Open

Exception thrown when trying to login as user #83

kathrynkodama opened this issue Dec 19, 2018 · 2 comments

Comments

@kathrynkodama
Copy link

Under the "Getting Started" portion of the guide, once the server starts and I try to login in as:
Username: bob
Password: bobpwd

I receive the following exception:

Exception thrown by application class 'javax.faces.webapp.FacesServlet.service:220'
javax.servlet.ServletException: View "/login.jsf" could not be restored.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:220)
at [internal classes]
at io.openliberty.guides.ui.filters.NoCacheFilter.doFilter(NoCacheFilter.java:23)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at [internal classes]
Caused by: javax.faces.application.ViewExpiredException: View "/login.jsf" could not be restored.
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:181)
... 4 more

This exception is raised when I try to login as users "alice" and "carl" as well.
Browser: Google Chrome
Platform: MacOS

When I tried again on a clean Firefox browser I was able to login. Additionally, when I cleared my Google Chrome browser cache I was able to login.

@yeekangc
Copy link
Member

@proubatsis @gkwan-ibm

@gkwan-ibm
Copy link
Member

It should be caused by after ran the mpMetrics guide. The authentication was cached. Yes, the workaround is to clean up the browser cached. To address the root, need to find out how to clean the cached or log out in the mpMetrics guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants