cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Alfresco with HSQL database

radek_budar
Champ in-the-making
Champ in-the-making
Hi all,

I have trouble with configuration Alfresco with HSQL Database. I downloaded community pack, but Alfresco was with mySQL preconfigurated. I need run Alfresco with HSQL DB.

I modified file C:\alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\domain\hibernate-cfg.properties and changed:

#hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
hibernate.dialect=org.hibernate.dialect.HSQLDialect

but I cannot start Alfresco due this errors:

21:37:51,782 ERROR [repo.transaction.TransactionUtil] Error rolling back transaction
java.lang.IllegalStateException: No user transaction is active
   at org.alfresco.util.transaction.SpringAwareUserTransaction.rollback(SpringAwareUserTransaction.java:461)



Caused by: java.sql.SQLException: Database does not exists: file:C:\WINDOWS\system32\alf_data\hsql_data\alfresco

It is the problem, Alfresco HSQL databse is located at C:\alfresco\alf_data, not in C:\WINDOWS\system32\.., but I do not know, where I can say, that HSQL DB si located on other path. I added C:\alfresco on system path variable (PATH variable).

Thanks
Radek Budar
1 REPLY 1

radek_budar
Champ in-the-making
Champ in-the-making
Thanks LuisSala for answer. It was the solution of my problem. I must the path to HSQL DB write  as absolute with double-backslash ("C:\\…")