Skip to main content

Glassfish cannot connect to databases

No replies
mdeinum
Offline
Joined: 2009-06-05

I'm having a problem with Glassfish 3.1.x (haven't tried older versions as we need 3.1.x). When we define datasources and try to ping the database or deploy an application which used the datasource it hangs for about 15 to 20 minutes. After this we get some error stating that it cannot connect to the databse (both a MS SQL and DB2 database).

However if on the same machine I fireup squirrel or my IDE (Intellij 11) I have absolutly no problems connecting to the databases.

We are using the same drivers for the IDE as we do for Glassfish.

So what could be the problem.

Already redefined the datasources, without any luck. Even completly reinstalling glassfish and doing everything from scratch doesn't help. I'm urgently looking for hints/tips to solve this problem so that we can move forward again.