jayakumar wrote:
Hai all,
I am new to the hibernate world. I just wanted to try out a sample application using hibernate with postgresql database. I am trying this from the myeclipse IDE.
Here are the steps i am following
1. Created a new java project.
2. Add hibernate capabilities
a. Add Hibernate 2.1 libraries to the project.
b. Configuration File Path : /HiperDemo/src
c. Configuration File Name: hibernate.cfg.xml
d. Connection profile: postprofile
e. Database URL: jdbc:postgresql://localhost:5432/user
f. Driver class : org.postgresql.Driver
g. username:
h. password:
i. Hibernate Dialect : PostgreSQL
3. Session Factory class: com.Hibernate.SessionManager
Source Folder:/src
4. Now the project is created and i can see the Sesionmanager.java and
hibernate.cfg.xml files.
5. Now I had selected the MyEclipse Database explorer perspective and when i click open connection on the specific profile i am always getting the following error.
Error while trying to login to database: org.postgresql.Driver
I am not able to understand why i am getting this error. Even i tried it out with the mysql database and i got the following errror.
Error while trying to login to database: com.mysql.jdbc.Driver
Please help me out in soving this problem.
this problem is in no way related to hibernate.
it's an issue of myeclipseide.
you need to add the JDBC-drivers to your projects build-path and it will work.