JavaLite examples, Simple Example Running Error

97 Views Asked by At

Every time i run Simple-example downloaded from github JavaLite examples, I get this error. Exception in thread "main" org.javalite.activejdbc.InitException: Failed to connect to JDBC URL: jdbc:mysql:mysql://localhost/movies with user: root. Also in read me file there is said to run mvn db-migrator:create command but I also get an error. Why is that, I have downloaded maven and my mvn process-classes builed successfully. Also I am interested in more JavaLite material, there are so few on the internet.

1

There are 1 best solutions below

1
ipolevoy On

There is a README.md file in this example project: https://github.com/javalite/javalite-examples/blob/master/simple-example/README.md

It has exact instructions to run this example. One of the steps is:

  • Adjust your database connection parameters in file:
src/main/resources/database.properties

This will ensure you have a correct configuration for your database.