IBM Support

Java Server Pages (JSP) files within OSGi applications cannot use Java 2 security

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:

[{"Product":{"code":"SSV8AP","label":"WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":["Not Applicable","Not Applicable"],"Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"1.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.9","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0.0.9","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21431641