Skip to content

Commit

Permalink
Correct was.policy and upgrade WAS Docker base image to WAS 9 (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanbrakel authored Jul 26, 2021
1 parent 3664480 commit 7bf550e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/appserver/WebSphere/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG WAS_VERSION=8.5.5.17
ARG WAS_VERSION=9.0.5.7
FROM ibmcom/websphere-traditional:${WAS_VERSION} AS iaf-test-as-websphere
#COPY --chown=was:root 001-was-config.props /work/config/
COPY --chown=was:root src/scripts/PASSWORD /tmp/
Expand Down
16 changes: 15 additions & 1 deletion ear/src/main/application/META-INF/was.policy
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,29 @@ permission com.ibm.oti.shared.SharedClassPermission "java.net.URLClassLoader", "
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
permission java.lang.RuntimePermission "accessClassInPackage.sun.beans.infos";

// required for Spring AOP
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.jmx.mbeanserver";
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.proxy";

permission java.lang.RuntimePermission "accessClassInPackage.sun.io";

// required for CXF jaxrs spring bean parser
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.org.apache.xerces.internal.dom";

permission java.lang.RuntimePermission "accessClassInPackage.com.ibm.oti.shared";

// required for Apache XML libraries
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.xml.*";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.xerces.*";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.xalan.*";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.xpath.*";


// required for the Nashorn javascript engine
permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.dynalink.support";
permission java.lang.RuntimePermission "accessClassInPackage.jdk.nashorn.internal.runtime";
permission java.lang.RuntimePermission "accessClassInPackage.jdk.nashorn.internal.runtime.*";
permission java.util.PropertyPermission "com.ibm.websphere.security.dumpJaasConfig" "read";
permission java.util.PropertyPermission "com.ibm.websphere.security.dumpJaasConfig", "read";

// required for MS SQL:
permission java.lang.RuntimePermission "accessClassInPackage.sun.jdbc.odbc";
Expand Down

0 comments on commit 7bf550e

Please sign in to comment.