-
1. Re: Permission error in WF-16
jewellgm Apr 23, 2019 9:44 AM (in response to goodidea)Is the xml snippet you provided embedded in the permission.xml file in the META-INF directory of your ear? If so, the entries don't adhere to the schema for Java EE 7. It should be:
<permission>
<class-name>java.util.logging.LoggingPermission</class-name>
<name>control</name>
</permission>
This doesn't explain why adding the AllPermission permission works though, since that also doesn't conform to the EE 7 schema.
-
2. Re: Permission error in WF-16
goodidea May 1, 2019 11:55 AM (in response to jewellgm)jewellgm No. It was part of standalone.xml====>
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
<deployment-permissions>
<minimum-set>
.....
Do you recommend to set it in META-INF as well or instead? It used to work in standalone.xml though in previous version.
-
3. Re: Permission error in WF-16
jewellgm May 1, 2019 3:12 PM (in response to goodidea)My personal recommendation is to use the mechanism dictated by the specification. In other words, use the permissions.xml file in your ear rather than using the proprietary functionality of the specific application server. I think it makes things easier to maintain in the long run, and will help prevent issues where proprietary behaviors/functionality change or are removed entirely.