Errors deploying Sites application in WebSphere with j2ee security enabled
(Doc ID 1566528.1)
Last updated on JANUARY 29, 2024
Applies to:
Oracle WebCenter Sites - Version 11.1.1.6.1 to 11.1.1.8.0 [Release FatWire]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/myexample01Node02Cell/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/myexample01Node02Cell/ContentServer.ear/cs.war/WEB-INF/lib/ehcache-core-1.7.1_modified.jar}
=======================
Changes
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 |