jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Connection Problem In java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connection Problem In java" Watch "Connection Problem In java" New topic
Author

Connection Problem In java

Manikandan Rajmohan
Greenhorn

Joined: Apr 12, 2010
Posts: 5
I am working in Travel Portal site using java technology. In my production server is linux.

I am having some problem in connection establishing

Error Message:
============
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

Please help me
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Manikandan, welcome to Java Ranch!

This sounds to me like a Tomcat data source configuration issue - moving.

By the way, you might want to also post the configuration you did for the data source, and the code you are using to access the data source.


JBoss In Action
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16020
    
  20

That usually means that the URL for database access is incorrect or that there's a firewall blocking access from Tomcat to the database.


Customer surveys are for companies who didn't pay proper attention to begin with.
bala funnyguy
Greenhorn

Joined: Apr 16, 2010
Posts: 2
can anybody send me the exact java coding for connecting with ms access..?please...........


i m here to know about java and to tell about java....
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16020
    
  20

bala funnyguy wrote:can anybody send me the exact java coding for connecting with ms access..?please...........


You're not as funny as you think. We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see http://www.javaranch.com/name.jsp .

As for connecting Tomcat to MS-Access, don't even think about it. Tomcat is a multi-threaded program. Access isn't a multi-user database. You can corrupt an Access database very rapidly that way. Same goes for FoxPro.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Problem In java