[opencms-dev] How to login as "Guest"? getting CmsDbEntryNotFoundException
Michael Kraus
michael.kraus at mindmatics.de
Mon Aug 14 10:36:59 CEST 2006
Dear all,
when I try to login as "Guest" (in order to perform a logout, as described on page 218 in the OpenCms 5 book), I get the following exception:
org.opencms.db.CmsDbEntryNotFoundException: User "Guest" was not found.
at org.opencms.db.CmsDriverManager.loginUser(CmsDriverManager.java:3992)
at org.opencms.db.CmsSecurityManager.loginUser(CmsSecurityManager.java:2773)
at org.opencms.file.CmsObject.loginUser(CmsObject.java:1803)
at org.opencms.file.CmsObject.loginUser(CmsObject.java:1785)
at org.opencms.file.CmsObject.loginUser(CmsObject.java:1769)
at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules ...
The corresponding code is:
CmsJspActionElement cmsJspActionElement = new CmsJspActionElement(pageContext, request, response);
CmsObject cmsObject = cmsJspActionElement.getCmsObject();
boolean logout = request.getParameter("logout") != null;
if (logout) {
cmsObject.loginUser(OpenCms.getDefaultUsers().getUserGuest(), "");
}
In the Administration View, there exists a user "Guest" with no password. What am I doing wrong?
Kind regards,
Michael
More information about the opencms-dev
mailing list