[opencms-dev] The user "Admin" does not have access to the required "Workplace manager" role.
Olli Aro
olli_aro at yahoo.co.uk
Fri Jan 6 22:52:22 CET 2012
Ok, went through the database and managed to fix this. All Admin user group
memberships were indeed gone from CMS_GROUPUSERS.
What I did in order to fix this was the following:
1) Found out the USER_ID for the Admin users from CMS_USERS
2) Found out GROUP_IDs for "Administrators" and "RoleRootAdmins" from
CMS_USERS
3) Added mappings for the Admin users to both to CMS_GROUPUSERS.
Still no idea what caused this to happen in the first place though.
Olli
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
Sent: 06 January 2012 15:09
To: opencms-dev at opencms.org
Subject: [opencms-dev] The user "Admin" does not have access to the required
"Workplace manager" role.
Hi all,
Was playing with access controls in opencms-workplace.xml in order to hide
some content types and now suddenly get the following error when try to
start the server. Only think I can assume that has happened that my trial
access controls have deleted something from the database. Surely this should
not happen if you modify opencms-workplace.xml?
Anyone have any idea if I can recover the system from this somehow(for
example by manually editing the database) or if I have to do a re-install?
I am using the latest version of OpenCms with MySQL.
Regards,
Olli
06 Jan 2012 17:04:29,722 INFO [uration.CmsSystemConfiguration:1878] .
Session Storage Prov : org.opencms.main.CmsDefaultSessionStorageProvider
instanciated
06 Jan 2012 17:04:29,728 ERROR [ org.opencms.main.OpenCmsCore: 327]
Critical error during OpenCms initialization: Unable to initialize OpenCms
core managers.
org.opencms.main.CmsException: Critical error during OpenCms initialization:
Unable to initialize OpenCms core managers.
at
org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:327)
at
org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:11
3)
at
org.opencms.main.CmsInitException.<init>(CmsInitException.java:84)
at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1241)
at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1334)
at
org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1855)
at
org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:79)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3972)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
06 Jan 2012 17:04:29,729 ERROR [g.opencms.main.OpenCmsListener: 83]
Critical error during OpenCms initialization: Unable to initialize OpenCms
core managers.
org.opencms.main.CmsInitException: Critical error during OpenCms
initialization: Unable to initialize OpenCms core managers.
at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1241)
at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1334)
at
org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1855)
at
org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:79)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3972)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.opencms.security.CmsRoleViolationException: The user "Admin"
does not have access to the required "Workplace manager" role.
at
org.opencms.security.CmsRole.createRoleViolationException(CmsRole.java:351)
at
org.opencms.db.CmsSecurityManager.checkRole(CmsSecurityManager.java:517)
at
org.opencms.db.CmsSecurityManager.checkRole(CmsSecurityManager.java:537)
at
org.opencms.security.CmsRoleManager.checkRole(CmsRoleManager.java:110)
at
org.opencms.scheduler.CmsScheduleManager.initialize(CmsScheduleManager.java:
235)
at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1196)
... 27 more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120106/47b26105/attachment.htm>
More information about the opencms-dev
mailing list