I have a Tomcat server which is working fine with applications like Jenkins. I'm trying to load my application which tried to create a H2 database on
~/Xinco/data which translates to
/usr/share/tomcat7/ at runtime.
I got this error:
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error while creating file "/usr/share/tomcat7/Xinco" [90062-168])
I went ahead and created the
Xinco/data folder but it still fails creating other database related files.
I'm sure is something on the permissions for the Tomcat user.