How to configure correctly Velocity log under Mendix
i try to use velocity in my application, but i get this error : org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "velocity.log" "write") Nobody can help me to configure correctly the logger... Thanks a lot
Indeed you've found one possible solution in your local environment. There is another way in the modeler, detailed here. Disabling "emulate cloud security" will cause your app to run with full Java permissions.
If you are hosting your app yourself, you're all set. If it's going to be run in the Mendix cloud, I think you'll need to contact the support team to see if they will add this permission for you.
Ok. I have just added this permission in my security file :