javaspringhibernatetomcatshopizer

HTTP Status 500 - Request processing failed in shopizer


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 ?


Solution

  • 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.