Oh ok, thanks for the clarification.
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
Sent: Monday, January 09, 2012 1:51 PM
To: Tomcat Users List
Subject: Re: DB Connection error
2012/1/9 Propes, Barry L <barry.l.propes@citi.com>:
> I think some Oracle desktop installations, like Oracle XE, come with 8080 as the out-of-the-box
default port.
AFAIK 8080 was used by Oracle XE for its web-based management console.
Using it as a database URL is something new. I'd expect 1521 there.
By the way, using infinite timeout on the pool (maxWait="-1") is a bad
option. I would recommend something more realistic.
>
>
> -----Original Message-----
> From: Chema [mailto:demablogia@gmail.com]
> Sent: Monday, January 09, 2012 12:03 PM
> To: Tomcat Users List
> Subject: Re: DB Connection error
>
>> Caused by: oracle.net.ns.NetException: The Network Adapter could not
>> establish the connection
>> at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
>> at
>> oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
>> at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:678)
>> at oracle.net.ns.NSProtocol.connect(NSProtocol.java:238)
>> at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054)
>> at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
>> ... 30 more
>> Caused by: java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>> at java.net.Socket.connect(Socket.java:529)
>> at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:209)
>> at oracle.net.nt.ConnOption.connect(ConnOption.java:123)
>> at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
>> ... 35 more
>>
>
> I see that database is on the same machine than Tomcat , right ?
>
> It's important, for me at least , to know if this error
>
> "Caused by: java.net.ConnectException: Connection refused: connect"
>
> occurs while restarting database server or just after that ?
>
> One question : after restarting database , can you make a telnet to
> localhost:8080 from the same machine ?
> By the way, 8080 is a curious port for a database ...is it the real
> port for listening incoming connections ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|