问题描述
在tomcat下能正常运行,到了websphere6.0就不行了为什么???急**********FATALERRORSTARTINGUPSTRUTS-SPRINGINTEGRATION**********LooksliketheSpringlistenerwasnotconfiguredforyourwebapp!NothingwillworkuntilWebApplicationContextUtilsreturnsavalidApplicationContext.Youmightneedtoaddthefollowingtoweb.xml:<listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener>[10-4-191:22:42:266CST]00000024DispatcherEDispatcherinitializationfailed[10-4-191:22:42:266CST]00000024DispatcherETRAS0014I:下列异常已记录java.lang.NullPointerExceptionatcom.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)atorg.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:328)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:155)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:202)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:594)atcom.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)atcom.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171)atcom.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230)atcom.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:399)atcom.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)atcom.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)atcom.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)atcom.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)atcom.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)atcom.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)atcom.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)atcom.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)atcom.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
解决方案
解决方案二:
NothingwillworkuntilWebApplicationContextUtilsreturnsavalidApplicationContext.Youmightneedtoaddthefollowingtoweb.xml:<listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener>可能是某些包有冲突,导致无法加载spring的监听,检查下web.xml文件的配置恩
解决方案三:
LooksliketheSpringlistenerwasnotconfiguredforyourwebapp
解决方案四:
哪个监听器我配置过。。。。。。。。。。。。。但就是Spring启动不起来?????????有其他本法没?