If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Hibernate no longer able to connect to DB2 after reinstall.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-10, 13:08
DylanBoates DylanBoates is offline
Registered User
 
Join Date: Sep 2010
Posts: 2
Hibernate no longer able to connect to DB2 after reinstall.

Hi,
I've got a project that uses a Hibernate based webapp running on at tomcat server to access a DB2 database (Express-C version 9.7, Fix Pack 2). Everything worked fine until I had to reinstall the database and now Hibernate doesn't seem to be working anymore.

I've gone through all the steps listed in the install instructions to configure the database to accept tcp/ip connections (added an entry to /etc/services, updated the database manager configuration and set DB2COMM to "tcpip") and I've made sure that Hibernate is using the new port, username and password.

I would be very greatful if anyone could let me know if there's a step I'm probably missing to enable TCP/IP, or if anyone has any experience they can share regarding DB2 and Hibernate.

If you do happen to know Hibernate, I've posted more detailed information about my program and error messages here.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 09-23-10, 02:42
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

have you restarted the Instance? Otherwise your changes are not active.
The Database is there and the Appl-User can connect to the database? (db2 connect to db user <USER> using <PASSWORD>)
Reply With Quote
  #3 (permalink)  
Old 09-24-10, 09:56
DylanBoates DylanBoates is offline
Registered User
 
Join Date: Sep 2010
Posts: 2
Yes, I've restarted the instance and the application user can connect to the database. I can also perform queries fine as the application user.
Reply With Quote
Reply

Tags
db2 9.7, hibernate

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On