Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL

Upgrade MySql driver to mysql-connector-java – 8.0.17 and Those who are using greater than MySQL 5.5 version change their driver property from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver because: Loading class com.mysql.jdbc.Driver. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.INFO – HHH000401: using driver [com.mysql.jdbc.Driver] at … Read more

How to fix org.hibernate.LazyInitializationException – could not initialize proxy – no Session

What is wrong here is that your session management configuration is set to close session when you commit transaction. Check if you have something like: in your configuration. In order to overcome this problem you could change the configuration of session factory or open another session and only than ask for those lazy loaded objects. … Read more

Extracting .jar file with command line

From the docs: To extract the files from a jar file, use x, as in: To extract only certain files from a jar file, supply their filenames: The folder where jar is probably isn’t C:\Java for you, on my Windows partition it’s: Unless the location of jar is in your path environment variable, you’ll have to specify the full path/run the program from … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)