# Hibernate error while installing OpenMRS

**URL:** <https://talk.openmrs.org/t/hibernate-error-while-installing-openmrs/13036>\
**Category:** Ask OpenMRS\
**Created:** [August 24, 2017, 11:54am UTC](https://talk.openmrs.org/t/hibernate-error-while-installing-openmrs/13036 "2017-08-24T11:54:44Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![ngoel2](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ngoel2/32/1990_2.png) [@ngoel2](https://talk.openmrs.org/u/ngoel2)\
**Post date:** [August 25, 2017, 10:22am UTC](https://talk.openmrs.org/t/hibernate-error-while-installing-openmrs/13036/13 "2017-08-25T10:22:27Z")

</div>

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.

> [@What's the recommended OpenMRS application directory?](https://talk.openmrs.org/t/whats-the-recommended-openmrs-application-directory/3461):
>
> Hi there, I am installing openmrs 1.11.4 on tomcat7 OS: Ubuntu 14.04 64bit Java: Open JDK 1.7.0\_85 Tomcat: 7 (package 7.0.52-1ubuntu0.3) Mysql: 5.5.46 In the install guide [https://wiki.openmrs.org/display/docs/Step+3+-+Install+Tomcat](https://wiki.openmrs.org/display/docs/Step+3+-+Install+Tomcat) it says to create /usr/share/tomcat6/.OpenMRS for user tomcat6. I did the same just for tomcat7, but then openmrs wizard does not let me install because it cannot find the openmrs-runtime.properties. I now create /var/lib/OpenMRS for user tomcat7 and installat…

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

---

_[View the full topic](https://talk.openmrs.org/t/hibernate-error-while-installing-openmrs/13036)._
