orks fine, then if I
> >> redeploy my application it cannot get a connection from a
> DataSource object.
> >> The following exception is thrown:
> >>
> >> java.lang.IllegalStateException: Timer already cancelled.
> >&
2010/7/6 Yevgen Krapiva :
> Thanks, I'll do that.
> What about "minEvictableIdleTimeMillis" ? Just delete it ?
>
You can delete it. It is the timeBetweenEvictionRunsMillis attribute
that controls whether the Evictor will be enabled. The other
attributes make no difference.
http://commons.apache.o
Thanks, I'll do that.
What about "minEvictableIdleTimeMillis" ? Just delete it ?
2010/7/6 Konstantin Kolinko
> 2010/7/6 Yevgen Krapiva :
> > Hi guys.
> >
> > I have a servlet that uses connection pool with the use of MySQL driver.
> > When I start or reload Tomcat the application works fine, the
2010/7/6 Yevgen Krapiva :
> Hi guys.
>
> I have a servlet that uses connection pool with the use of MySQL driver.
> When I start or reload Tomcat the application works fine, then if I
> redeploy my application it cannot get a connection from a DataSource object.
Do not use eviction in DBCP, becaus
e, then if I
> >> redeploy my application it cannot get a connection from a DataSource
> object.
> >> The following exception is thrown:
> >>
> >> java.lang.IllegalStateException: Timer already cancelled.
> >>
> >> java.util.Time
n it cannot get a connection from a DataSource object.
>> The following exception is thrown:
>>
>> java.lang.IllegalStateException: Timer already cancelled.
>>
>> java.util.Timer.sched(Timer.java:354)
>> java.util.Timer.schedule(Timer.java:222)
>> or
> The following exception is thrown:
>
> java.lang.IllegalStateException: Timer already cancelled.
>
> java.util.Timer.sched(Timer.java:354)
> java.util.Timer.schedule(Timer.java:222)
> org.apache.tomcat.dbcp.pool.impl.Eviction
: Timer already cancelled.
java.util.Timer.sched(Timer.java:354)
java.util.Timer.schedule(Timer.java:222)
org.apache.tomcat.dbcp.pool.impl.EvictionTimer.schedule(EvictionTimer.java:64)
org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.startEvictor(GenericObjectPool.java:1647