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:
This doesn't explain why adding the AllPermission permission works though, since that also doesn't conform to the EE 7 schema.
jewellgm No. It was part of standalone.xml====>
Do you recommend to set it in META-INF as well or instead? It used to work in standalone.xml though in previous version.
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.