Answer the question
In order to leave comments, you need to log in
How to connect to H2/SQLite DB in Play! Framework?
Hello. I'm trying to use persistent storage in the project, as a database - H2 in a file or SQLite. With the following settings:
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:tcp://localhost/d:/play-1.2.7/samples-and-tests/zencontact/db.sqlite"
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:db.sqlite"
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:/d:/play-1.2.7/samples-and-tests/zencontact/db.sqlite"
JPA error
A JPA error occurred (Cannot start a JPA manager without a properly configured database): No datasource configured
d:/play-1.2.7/samples-and-tests/zencontact/db.sqlite
Answer the question
In order to leave comments, you need to log in
One and two . For your version of the play, everything is described in detail and should work. If you still can't find the datasource, then
And if it doesn’t work in this case either (which I doubt very much, since all this worked for me a long time ago), then stack traces to the studio!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question