cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add h2 database

waltermeier
Champ in-the-making
Champ in-the-making
I know it may sound silly, but I can't for the life of me get activiti to connect to an h2 databse, running on my local machine.

I downloaded h2 from http://www.h2database.com/html/main.html and ran it with default settings. I could connect to the default server database (jdbc:h2:tcp://localhost/~/test) just fine.

But when I try to modify the db.properties file of activiti (that's running on tomcat port 8090) and then try to open localhost:8090/activiti-explorer, I either get a 404 error or just make Tomcat8.exe go into an infinite loop, forcing me to kill the process.

I tried all kinds of different ways of specifying the h2 database link in db.properties, like:

jdbc.url=jdbc:h2:tcp://localhost/~/test

jdbc.url=jdbc:h2:tcp://localhost:8082/~/test

jdbc.url=jdbc:h2:tcp://localhost/test

jdbc.url=jdbc:h2:tcp://localhost:8082/test


Anyone have an idea on what I'm doing wrong?
2 REPLIES 2

waltermeier
Champ in-the-making
Champ in-the-making
Nevermind. Turns out the answer was super simple. Activiti isn't friends with the Beta version of h2database. Downloaded 1.3.176 and got rid of the ~ in the JDBC link. Everything worked just as expected right away. Wish this was clearer from the get go, but whatever.

Mods can feel free to close this thread.

jbarrez
Star Contributor
Star Contributor
Indeed, the new version has changed the url. When H2 is out of beta, we'll upgrade all libs