应用程序在Windows Server 2008 R2中工作,但在Windows Server 2012 R2中失败

(请注意:如果不适合在这里发帖,感激如果pipe理员帮忙删除它。谢谢)

背景:在windows server 2008 r2中有一个应用程序部署在tomcat 8上。 目前服务器正在运行,应用程序正常运行。

由于某些原因,我们必须更改(升级)Windows Server 2008 R2到Windows Server 2012 R2。

该应用程序需要java 1.7和tomcat 8才能运行,所以我们在windows server 2012 r2中安装了这些软件。

我们从Windows Server 2008 R2复制war文件并粘贴到windows server 2012 r2中。 在复制并粘贴war文件后,我们在tomcat web应用程序pipe理器(在windows server 2008 r2中执行相同的操作)中部署war文件。

一旦我们部署了战争文件,我们尝试启动应用程序。 然而,当我们点击“开始”button,我们等待一会儿,tomcat消息显示“失败 – 上下文path/path名称的应用程序无法启动”。

我们检查了软件的版本,和windows server 2008 r2一样。

我们对这个消息感到困惑,因为war文件在windows server 2008 r2中运行。

我们想知道有什么办法可以做或检查Windows Server 2012(从服务器pipe理员的angular度)?

感谢您的意见。 谢谢。

编辑:

我们发现一个日志文件(localhost.2017-07-13.log),我们注意到有一些例外:

13-Jul-2017 15:00:42.464 INFO [http-nio-8080-exec-8] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext 13-Jul-2017 15:00:43.214 SEVERE [http-nio-8080-exec-8] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB- INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [net.sourceforge.jtds.jdbc.Driver] 

由于包含xml和驱动程序的exception,我们尝试在windows server 2012 r2中search它们,但不会生成结果。

编辑2

我们只是find源代码,我们打开applicationContext.xml,并有一个net.sourceforge.jtds.jdbc.Driver的bean。 不知道为什么它不能在Windows Server 2012 R2的工作。

这里是代码,如果有帮助:

 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd"> <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" /> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="net.sourceforge.jtds.jdbc.Driver" /> <property name="url" value="jdbc:jtds:sqlserver://{host}:1433;DatabaseName=myDB" /> <property name="username" value="user" /> <property name="password" value="Password" /> </bean> </beans>