Errors deploying Sites application in WebSphere with j2ee security enabled (Doc ID 1566528.1)

Last updated on MAY 02, 2016

Applies to:

Oracle WebCenter Sites - Version 11.1.1.6.1 and later
Information in this document applies to any platform.

Symptoms

Deploying and running WebCenter Sites on WebSphere 8 fails when j2ee security enabled

Steps taken to replicate the issue:
1. Under the Security tab of the WebSphere admin console, click the Global Security
2. In the Global Security settings:
  a) Check the "Use Java 2 security to restrict application access to local resources"
  b) Check the "Warn if applications are granted custom permissions"

3. Install Oracle WebCenter Sites 11gR1 following the installation instructions for WebSphere: https://docs.oracle.com/cd/E29495_01/doc.1111/webcenter_sites_11gr1_bp1_install_on_websphere.pdf

4. When you deploy and startup the Sites and cas applications (using the default was.policy files) , you will see errors in the log, such as the following:

===============
[6/11/13 10:58:12:035 EDT] 00000022 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

  suppressAccessChecks : Access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)


Code:

  com.sun.jersey.core.spi.component.ComponentInjector$2 in {file:/u01/appservers/IBM/WebSphere8/AppServer/profiles/AppSrv01/installedApps/celovmfw052Node02Cell/ContentServer.ear/cs.war/WEB-INF/lib/jersey-core-1.1.4.1.jar}
=============

And if you try to login to Sites, you will see the following error:

================
[6/11/13 11:01:39:698 EDT] 00000021 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

  modifyThreadGroup : Access denied (java.lang.RuntimePermission modifyThreadGroup)


Code:

  net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver$MulticastReceiverThread in {file:/u01/appservers/IBM/WebSphere8/AppServer/profiles/AppSrv01/installedApps/celovmfw052Node02Cell/ContentServer.ear/cs.war/WEB-INF/lib/ehcache-core-1.7.1_modified.jar}
=======================

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms