java.lang.UnsupportedOperationException: The user must supply a JDBC connection

Ashish Sathaye

Greenhorn

Posts: 5

posted 6 years ago

I am new to hibernate and facing this new problem i am unaware of.
I have hibernate.properties file that contains all the information related to MySQL JDBC connectivity.
Then I have another properties file that contains following information:

When i start server i get warning "java.lang.UnsupportedOperationException: The user must supply a JDBC connection".

Can someone help me know what is the solution to this exception?

Thanks in advance,
Ashish

pandya devarshi r

Greenhorn

Posts: 5

posted 6 years ago

Hi Ashish,
What is this Ashish? cfg = cfg.setProperty("hibernate.dialect", "org.hibernate.dialect.Oracle9Dialect"); You should use my sql dialect not use oracle dialect. And one more thing can you give me a mysql connection propertly file,which is use for this application.

Thanks
Devarshi

Ashish Sathaye

Greenhorn

Posts: 5

posted 6 years ago

Hi Devashree,
I had two databases. One was oracle and other was mysql. Anyways that problem is resolved. Thanks for post on topic. I am creating new topic now :) . Hoping to get reply on that one also :D