2017-10-24 17:21:33.07] 0 FATAL DriverManagerPool newPooledObject无法在jdbc上创建新连接进行测试:sqlserver异常:没有为jdbc找到合适的驱动程序:sqlserver: 代码:0状态:08001 java.sql.SQLException:没有为jdbc找到合适的驱动程序:sqlserver:at java.sql.DriverManager.getConnection(DriverManager.java:689)at java.sql.DriverManager.getConnection(DriverManager.java:247 )com的com.cas.tff.server.connector.jdbc.DriverManagerPool.getDriverManagedConnection(DriverManagerPool.java:106)com的com.cas.tff.server.connector.jdbc.DriverManagerPool.createDBConnection(DriverManagerPool.java:66)。 cas.tff.server.connector.jdbc.DriverManagerPool.newPooledObject(DriverManagerPool.java:51)位于com.cas.tff.common的com.cas.tff.common.pool.Pool.allocateNewObject(Pool.java:1177)。 pool.Pool.initializePool(Pool.java:751)at com.cas.tff.common.pool.Pool.initialize(Pool.java:739)at com.cas.tff.server.connector.jdbc.JDBCPool.initialize( JDBCPool.java:179)com.cas.tff.common.pool.Pool.getInstance(Pool.java:561)at com.cas.tff.common.pool.PoolManager.createPool(PoolManager.java:106)at com .cas.tff.common.pool.PoolManager.initializePools(PoolM anager.java:243)com.cas.tff.common.pool.PoolManager.initialize(PoolManager.java:196)at com.cas.tff.common.pool.PoolManager。(PoolManager.java:75)at com。 cas.tff.common.pool.PoolManager。(PoolManager.java:68)位于com.cas.tff.server.pool.ServerPoolingService的com.cas.tff.common.pool.PoolingService.initialize(PoolingService.java:65) .initialize(ServerPoolingService.java:40)at com.cas.tff.common.registry.Registry.initialize(Registry.java:98)at com.cas.tff.server.container.service.core.TUFServicesManager.initialize(TUFServicesManager) .java:156)在org.apache上的org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)的com.cas.tff.server.container.listener.ContextInitializerListener.context处理器(ContextInitializerListener.java:50)。 apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at org.apache.catalina.core.ContainerBase $ StartChild.call(续ainerBase.java:1419)atg.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1409)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent .ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)位于java.lang.Thread.run的java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)中(Thread.java:748) [
答案 0 :(得分:0)
在 pom.xml 文件中添加以下maven依赖项,然后运行 mvn clean install。
**<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>2.0</version>
</dependency>**
如果javax.transaction没有找到类错误,则添加以下依赖项
**<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>**