How to configure correctly Velocity log under Mendix

0
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  
asked
2 answers
1

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.

answered
0

Ok. I have just added this permission in my security file :

 

permission java.io.FilePermission "velocity.log", "read,write";
 

Thanks to me and myself.

answered