I forgot to mention that I am running jdk 8. I noticed that JDK 8 uses a new method of security - jar file manifest attributes. Are these permissions attributes applicable to an ear deployed inside Wildfly?
Adding a MANIFEST.MF with text:
did not change the situation. However, I found this post:
I applied the following changes to standalone-full.xml
<extension module="org.wildfly.extension.security.manager" />
<permission class="java.io.FilePermission" name="/tmp" actions="read,write"/>
<permission class="java.io.FilePermission" name="/opt" actions="read"/>
<permission class="java.lang.RuntimePermission" name="createClassLoader"/>
<permission class="java.util.logging.LoggingPermission" name="control"/>
And got past the initial error. However, when running my application, I get ...
19:30:32,724 ERROR [stderr] (default task-1) java.lang.SecurityException: WFSM000002: Security manager may not be changed
The last error about Security manager may not be changed has to do with some specific code I have which might be better posted as a separate post.