Can't get TC working with SQL Server? The JDBC Driver has been forcibly unregistered
Hi,
I'm trying to get TeamCity working with sql server and I can't seem to get anything going, here's the environment details:
- Win 2008 R2
- SQL 2008 R2 Express (Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64))
- Team City 7.0.2a
- jTDS 1.2.5
I've tried to follow the instructions here:http://confluence.jetbrains.net/display/TCD7/Setting+up+an+External+Database
Here is my database.properties file:
connectionUrl=jdbc:jtds:sqlserver://localhost:1433/TeamCity
connectionProperties.user=TeamCity
connectionProperties.password=*****
# The maximum number of connections TeamCity can open on database server.
maxConnections=50
# Specifies whether TeamCity should check each jdbc connection before use.
# It reduces the system performace but avoids cases when the system uses
# a connection that was closed by database server due to time out or this
# connection was broken at the previous operation.
testOnBorrow=true
24-Apr-2012 10:59:10 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [org.apache.commons.dbcp.PoolingDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Apr-2012 10:59:10 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [org.apache.commons.dbcp.PoolingDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Apr-2012 10:59:10 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Apr-2012 10:59:10 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
24-Apr-2012 10:59:10 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
24-Apr-2012 10:59:10 org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
I've also tried the naitve driver but still I receive the same errors.
Any idea how to fix this as I'm really stuck now and we don't want to use the inbuilt database for our production environment.
Thanks
Dan
Please sign in to leave a comment.
Hello Dan,
could you please attach the teamcity-server.log file?
Could you please also list files in the <TeamCity_Data_Path>\lib\jdbc directory?
Thanks