Spring 应用程序无法在 Java 1.7 中加载

我们最近将 web sphere 从 8.5 迁移到 8.5.5.14,将 java 从 1.6 迁移到 1.7。我的 spring 应用程序适用于 java 1.6。当我尝试在 Java 1.7 中进行部署时,它会在服务器启动时引发以下异常。不知道有什么问题。任何人都可以请帮忙。我只是从日志中发布错误详细信息...

>     [2/16/19 12:24:30:148 EST] 00000065 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new

> session context for application key default_hostapps/TMS

>     [2/16/19 12:24:34:707 EST] 00000065 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message -

> [TMSEAR#TMS.war]:.No Spring WebApplicationInitializer types detected

> on classpath

>     [2/16/19 12:24:34:908 EST] 00000065 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message -

> [TMSEAR#TMS.war]:.Initializing Spring FrameworkServlet 'mydispatcher'

>     [2/16/19 12:24:34:909 EST] 00000065 DispatcherSer I org.springframework.web.servlet.FrameworkServlet initServletBean

> FrameworkServlet 'mydispatcher': initialization started

>     [2/16/19 12:24:34:930 EST] 00000065 XmlWebApplica I org.springframework.context.support.AbstractApplicationContext

> prepareRefresh Refreshing WebApplicationContext for namespace

> 'mydispatcher-servlet': startup date [Sat Feb 16 12:24:34 EST 2019];

> root of context hierarchy

>     [2/16/19 12:24:34:975 EST] 00000065 XmlBeanDefini I org.springframework.beans.factory.xml.XmlBeanDefinitionReader

> loadBeanDefinitions Loading XML bean definitions from ServletContext

> resource [/WEB-INF/config/dispatcher-servlet.xml]

>     [2/16/19 12:24:35:220 EST] 00000065 DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory

> registerBeanDefinition Overriding bean definition for bean

> 'timesheetSubmitRemainderTask': replacing [Generic bean: class

> [com.tms.scheduleTasks.TimesheetSubmitRemainderTask]; scope=singleton;

> abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;

> autowireCandidate=true; primary=false; factoryBeanName=null;

> factoryMethodName=null; initMethodName=null; destroyMethodName=null;

> defined in file

慕容708150
浏览 165回答 1
1回答

慕虎7371278

您需要确保您的类路径中至少存在以下依赖项之一:<dependency>&nbsp; &nbsp; &nbsp;<groupId>ch.qos.logback</groupId>&nbsp; &nbsp; &nbsp;<artifactId>logback-core</artifactId>&nbsp; &nbsp; &nbsp;<version>1.2.3</version>&nbsp;&nbsp;</dependency><dependency>&nbsp; &nbsp; <groupId>ch.qos.logback</groupId>&nbsp; &nbsp; <artifactId>logback-core</artifactId>&nbsp; &nbsp; <version>1.2.3</version></dependency>您可以选择与其他依赖项兼容的版本。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java