My Oracle Support Banner

Error While Renaming Public Portal Template (Doc ID 2730511.1)

Last updated on APRIL 22, 2021

Applies to:

Oracle WebCenter Portal - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On WCP 12.2.1.4.0.

When attempting to rename a portal template, the following error is occurs:

<WCS#2020.11.18.04.42.45: Unexpected error occurred during updating template <PORTAL_TEMPLATE_NAME>

In the WCP diagnostic log, this error is reported:

<Error> <oracle.webcenter.webcenterapp.internal.view.error.WCErrorHandlerImpl> <BEA-000000> <
oracle.webcenter.webcenterapp.WebCenterException: Unexpected error occurred during updating template <PORTAL_TEMPLATE_NAME>
       at oracle.webcenter.community.internal.view.backing.TemplatesManagement.updateTemplate(TemplatesManagement.java:1086)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
       at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
       at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
       at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
       at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
       at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
       at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
...
Caused By: oracle.webcenter.portal.api.FailedToSetPermissionsException: Failed to set permissions for portal <PORTAL_NAME>
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.onUpdatePortalEvent(PortalEventHandler.java:252)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
       at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
...
Caused By: oracle.webcenter.webcenterapp.security.WCSecurityException: Unable to add role TemplateSpaces-User to the policy store
       at oracle.webcenter.webcenterapp.internal.model.security.WCSecurityManagerImpl.createRole(WCSecurityManagerImpl.java:554)
       at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.createRole(SpacesSecurityManagerImpl.java:951)
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.changeTemplatePermissionsToPublicRole(PortalEventHandler.java:737)
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.grantTemplatePermissionsToPublicRole(PortalEventHandler.java:659)Caused By: oracle.webcenter.webcenterapp.security.WCSecurityException: Unable to add role TemplateSpaces-User to the policy store
       at oracle.webcenter.webcenterapp.internal.model.security.WCSecurityManagerImpl.createRole(WCSecurityManagerImpl.java:554)
       at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.createRole(SpacesSecurityManagerImpl.java:951)
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.changeTemplatePermissionsToPublicRole(PortalEventHandler.java:737)
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.grantTemplatePermissionsToPublicRole(PortalEventHandler.java:659)
...
Caused By: java.security.PrivilegedActionException: oracle.security.jps.service.policystore.PolicyObjectAlreadyExistsException: JPS-04100: Application Role "s3caa8604_5885_4445_a9e4_078f69b2a08d#-#TemplateSpaces-User" already exists.
       at java.security.AccessController.doPrivileged(Native Method)
       at oracle.webcenter.webcenterapp.internal.model.security.WCSecurityManagerImpl.createRole(WCSecurityManagerImpl.java:541)
       at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.createRole(SpacesSecurityManagerImpl.java:951)
       at oracle.webcenter.portal.spacesintegration.PortalEventHandler.changeTemplatePermissionsToPublicRole(PortalEventHandler.java:737)

 

Changes

 1. Create a Portal Template based on an existing portal.

 2. Make the Template public.

 3. Try to rename the Template.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.