-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Q: About Hibernate Connection
PostPosted: Mon Jun 22, 2009 1:58 am 
Newbie

Joined: Mon Jun 22, 2009 1:47 am
Posts: 2
Web Server: Tomcat 5
Database: PostgreSQL 8
When i run my Web Application in a private network. It is OK. But when i applied it in a production server there's an error.
org.hibernate.exception.JDBCConnectionException: Cannot open connection.
I think it is due to my firewall?

The Network structure is
Outside Client -> Firewall (Open Port = 80, 8080) -> Web Server & DB Server <- Private Network.

My Question is should i open the Port 5432 in the firewall because i think the web-server is the one that access my database not the Outside Client?

Note: I can view my Web Page but i cannot extract the data in Database if im in the outside client. But if im in the private network no problem.

Hope you can help, Im confuse .... Thanks!


Top
 Profile  
 
 Post subject: Re: Q: About Hibernate Connection
PostPosted: Mon Aug 24, 2009 9:03 pm 
Newbie

Joined: Mon Jun 22, 2009 1:47 am
Posts: 2
Problem Solved!

Thanks for viewing!


Top
 Profile  
 
 Post subject: Re: Q: About Hibernate Connection
PostPosted: Mon Aug 24, 2009 9:25 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
WHAT WAS THE SOLUTION!?!?!?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.