I have already solved, place the javax.security.jacc.policy.provider = sun.security.provider.PolicyFile parameter to start the embedded and works
-- View this message in context: http://tomee-openejb.979440.n4.nabble.com/java-lang-RuntimePermission-setContextClassLoader-if-using-java-security-tp3599454p4674731.html Sent from the TomEE Dev mailing list archive at Nabble.com.
