Yes it does. I had given ownership of that directory to tomcat.
UPDATE: I thought it may be a permissions problem with the application directory since I was running the application at /var/lib/OpenMRS. So I followed this Talk post and redeployed the application at /usr/share/tomcat7/.OpenMRS.
This took care of a lot of the warnings I was getting in my log files where openmrs kept looking for files in the /usr/share/tomcat7 directory, not finding them and falling back to the /var/lib directory.
But it did not solve the problem. I am still getting the same error.
I’m wondering what I’m doing wrong!
Directory permissions:
/usr/share/tomcat7# ls -l -a
drwxr-xr-x 6 root root 4096 Aug 24 15:13 . drwxr-xr-x 134 root root 4096 Aug 18 04:24 … drwxr-xr-x 2 root root 4096 Aug 7 16:50 bin -rw-r–r-- 1 root root 39 Feb 18 2016 defaults.md5sum -rw-r–r-- 1 root root 1958 Feb 18 2016 defaults.template drwxr-xr-x 2 root root 4096 Aug 7 16:50 lib -rw-r–r-- 1 root root 53 Feb 18 2016 logrotate.md5sum -rw-r–r-- 1 root root 118 Feb 18 2016 logrotate.template > drwxr-xr-x 9 tomcat7 tomcat7 4096 Aug 24 17:10 .OpenMRS drwxr-xr-x 4 root root 4096 Aug 7 16:52 skel