12:21 am - Thursday March 23, 2017

Hibernate Error – org. hibernate. exception. GenericJDBCException: Cannot open connection

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

Error:

org.hibernate.exception.GenericJDBCException: Cannot open connection

Solution:

<property name="connection.url">
	jdbc:oracle:thin:@localhost:1521:XE
		</property>

Check whether the above property appear correctly in cfg file.

For a Complete Source Code please click the below link

http://candidjava.com/hibernate-simple-program-using-webapplication-with-eclipse

Filed in: Z-A Hibernate codes

Comments are closed.