tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Question regarding running Tomcat 7.0.57 offline
Date Thu, 19 Apr 2018 22:24:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

John,

On 4/19/18 4:34 PM, John Dale wrote:
> Indeed - that is what I thought as well (DNS).
> 
> But what about this (stacktrace below)?
> 
> Will see about the thread dumps (I'm in appointments for the rest
> of the day, but can't wait to make it back and read responses and
> put this one to bed).
> 
> I was reading that MySQL does some things with host bindings and 
> resolutions that might auto-resolve algorithmically, explaining
> this behavior.  Will keep that in mind as I continue.
> 
> Thanks,
> 
> John
> 
> 
> 
> -----
> 
> [ERROR] 04-19-2018 13:16:50 onefortyfive.SMSNotificationPoller init
> – Unable to initialize sms daemon.
> 
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory (Could not create connection to database 
> server. Attempted reconnect 3 times. Giving up.)
> 
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFa
ctory(BasicDataSource.java:1549)
>
>  at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicData
Source.java:1388)
>
>  at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSou
rce.java:1044)
>
>  at
> digitalcnc.data.ConnectionFactory.getConnection(ConnectionFactory.java
:56)
>
>  at
> onefortyfive.SMSNotificationPoller.init(SMSNotificationPoller.java:146
)

Sounds
> 
like the driver tried 3 times and couldn't connect :)

If you are using DHCP, let the pool do the reconnections if necessary.
Remove that autoReconnect=true junk from your JDBC URL.

Without seeing your configuration, it's tough to tell what might be
going on.

It's also not clear where the call to
onefortyfive.SMSNotificationPoller.init is coming from. If that's
happening when the application is coming-up, it might be happening
synchronously, keeping the application from completely-deploying
before anything else happens.

Can you post the COMPLETE stack trace?

The thread dump during the stall is going to be very informative, too.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrZFyEACgkQHPApP6U8
pFgfzg//Qk3M8mdiu0dDhPG7qaAi2zvnXhU4TKFk3qlNxwjuEaW+309EqObYe0hB
qy6YehCipMe0b/dToOieFw6UGU9RfCpsfAjAGnpDmKjeAFRKXaWYL/FEBbCvVdn7
QJLLYdaaTVw9hoJ3JLEe5M+qPXisQCdHSOI5/jxxsoDlt0hGp9nU/q4/I0PHAm13
pmAXjmFTrvMiGIfyij3UFIcrLxRQjYoaQUUxraiJDQaETJU3XDAVyAjE5xLzrKm9
bJuYOFLrjvlmOAKgqxHYVaXtRdUVc0tdlVj92qRZR0w5C4fQgp9kTaHw58sVrEMF
8aiZOJGQmZJ4xn7qD/obZH0WI/eNFBlqpCqq/evS1JZWewxRLM7ADhMLxk4hfTxB
HXIKNXUBG6HJQiKoYCTjc0NSKm9qmtnxztEME5mQHYQRc53/11Rlf/F8PD7TgQvk
VR/3PCGd6FwocE3WzpBC+X2NphJx0KX1FEc8sJYbZFe1Vqb1p97JraKsvEJslow3
zyigUwqjr7KTkaQBzQ79LCOYeeVwDePPfURccgZld/WjCKGCEPnzdz/d1uQlpHYv
iYuZuZUZzbsrW6C4N98vUbMOsmKm742dSNcWcgOc8rT7A9uwlHs+hyxSjwH0WfT7
9I6BUdOCNFP3wuRQoL0AdIv6VFCBV4LjcQGhp4koqCMyWw0gOVE=
=/jbW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message