Open Parpet opened 2 years ago
Same behavior with Jetty.
java.security.AccessControlException: access denied ("java.io.FilePermission" "/DIR/webapp/WEB-INF/lib/grails-core-5.1.2.jar" "read")
Same with v5.1.5 -
java.security.AccessControlException: access denied ("java.io.FilePermission" "/DIR/webapp/WEB-INF/lib/grails-core-5.1.5.jar" "read")
FYI -- @puneetbehl @jeffbrown
Same with v5.1.7 --
java.security.AccessControlException: access denied ("java.io.FilePermission" "/DIR/webapp/WEB-INF/lib/grails-core-5.1.7.jar" "read")
Same with v5.2.5 --
java.security.AccessControlException: access denied ("java.io.FilePermission" "/DIR/webapp/WEB-INF/lib/grails-core-5.2.5.jar" "read")
Expected Behavior
Fresh created Grails 5.1.2-Application should start on Tomcat 9 with Security Manager enabled and all permissions granted (permission java.security.AllPermission in catalina.policy)
Actual Behaviour
Although all permissions are granted, Tomcat with Security Manager enabled and JDK11 throws this error:
Full log-file catalina.2022-01-27.log is attached.
The same Tomcat-Instance starts correct when changed to JDK8.
Without Security Manager there are no problems with both JDK's.
The workaround from a similar spring-boot issue (starting Tomcat with
-Dsun.misc.URLClassPath.disableJarChecking=true
) didn't solve this problem.Steps To Reproduce
grails create-app testGrails512 -profile web
cd testGrails512
grails war
conf/catalina.policy
towebapps
-folderbin/startup.sh -security
Environment Information
Example Application
No response
Version
5.1.2