DbcpException....Address already in use -- ERROR
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Pesola
Posted On:   Thursday, December 5, 2002 07:14 AM

I'm having a problem accessing my datasource in Tomcat 4.1 under Windows XP. The complete error message is: org.apache.commons.dbcp.DbcpException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect Stack Trace: java.net.BindException: Address already in use: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376)    More>>

I'm having a problem accessing my datasource in Tomcat 4.1 under Windows XP. The complete error message is:


			
org.apache.commons.dbcp.DbcpException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect
Stack Trace:

java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.postgresql.PG_Stream.(Unknown Source)
at org.postgresql.Connection.openConnection(Unknown Source)
at org.postgresql.Driver.connect(Unknown Source)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source)
at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
at listMakers.doGet(listMakers.java:68)
.......
.......



This error looks like I have another copy of the JVM running on my system. I checked and I don't see Tomcat installed as Service.


Also, I am able to access my database via the JBuilder Database Pilot so I'm confident I don't have a issue with my network, firewall or database.


Here's the config for my applicat from server.xml

			




url
jdbc:postgresql://192.168.0.5/guitarstock


validationQuery



maxIdle
2


maxActive
4


driverClassName
org.postgresql.Driver


maxWait
10000


username
XXXXXXXXX


factory
org.apache.commons.dbcp.BasicDataSourceFactory


password
XXXXXXXX






Any help is very much appreciated!!!!

Thanks!!!!

   <<Less
About | Sitemap | Contact