HTTP Status 500 - Request processing failed in shopizer

755 Views Asked by At

After following the instruction of buildin Shopizer from this link https://github.com/shopizer-ecommerce/shopizer

and after building and moving sm-shop.war to Tomcat webapps folder and then accessing the url: http://localhost:8080/sm-shop/shop

I'm facing this error

HTTP Status 500 - Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection

So, what is the problem, can anybody help ?

1

There are 1 best solutions below

4
On BEST ANSWER

It expects this DB configuration.

You have two options:

  1. Configure your own local DB and fill it with your connection and authentication details (config is using MySQL).
  2. Uncomment H2 database config and comment out MySQL config. H2 is embedded database and therefore you wouldn't need to install anything.