Troubleshooting
Problem
If you enable Java 2 security, the JSP files within your OSGi applications cannot carry out any privileged actions until you apply a set of interim fixes.
Symptom
If your JSP code attempts to carry out a privileged action, a security exception is generated. The permission details are specific to the privileged action that has been attempted. For example:
0000002e SecurityManag W SECJ0314W: Current Java 2 Security
policy reported a potential violation of Java 2 Security
Permission.
Permission:
(service.id=51) : Access denied (org.osgi.framework.
ServicePermission (service.id=51) get)
Adding the required permission to the permissions.perm or was.policy file for the application does not resolve the security exception.
Resolving The Problem
Apply the following fixes, which are available from the IBM Support Fix Central Web page:
- Interim fix for APAR number PM14833 for WebSphere Application Server
- WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0 Fix Pack 1 for distributed operating systems or for the z/OS operating system.
Related Information
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21431641