Error Message: Failed to create temporary file. – occurs when adding customer accounts

This error occurs because you do not have the necessary rights to write to temporary files which are required when adding customers to the system.

To solve the problem modify the /etc/tomcat5/policy.d/04webapps.policy file and add the following in order to allow the application to access restricted parts of the filesystem:

grant {

 …

 // LockLizardLicensing custom permissions

 // read access required
permission java.io.FilePermission “/etc/”, “read,write”;
permission java.io.FilePermission “/etc/-“, “read,write”;
permission java.io.FilePermission “/var/lib/tomcat5/temp/*”,
“read,write,delete”;

 // mysql access
permission java.net.SocketPermission “localhost”, “resolve”;
permission java.net.SocketPermission “localhost:3306”,
“connect,resolve”;
}