开发者社区> 问答> 正文

大家帮忙看看好吗?。。看哪里报错了 400 请求报错 

10:48:37,656  WARN Configurator:126 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/F:/apache-tomcat-5.5.28/webapps/HM_CRM/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

10:48:38,265 ERROR ContextLoaderPlugIn:229 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/login' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

Caused by:

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

    at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86)

    at org.springframework.web.struts.DelegatingActionUtils.findRequiredWebApplicationContext(DelegatingActionUtils.java:148)

    at org.springframework.web.struts.ActionSupport.initWebApplicationContext(ActionSupport.java:98)

    at org.springframework.web.struts.ActionSupport.setServlet(ActionSupport.java:78)

    at org.springframework.web.struts.ActionServletAwareProcessor.postProcessBeforeInitialization(ActionServletAwareProcessor.java:54)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:302)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1168)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

    at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)

    at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)

    at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)

    at javax.servlet.GenericServlet.init(GenericServlet.java:212)

    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)

    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1117)

    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)

    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)

    at java.lang.Thread.run(Thread.java:619)

10:48:38,265  WARN PropertyMessageResources:352 -   Resource org/apache/struts/action/ActionResources_zh_CN.properties Not Found.

10:48:38,265  WARN PropertyMessageResources:352 -   Resource org/apache/struts/action/ActionResources_zh.properties Not Found.

10:48:38,281 ERROR [/HM_CRM]:682 - action: null

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/login' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

Caused by:

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

    at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86)

    at org.springframework.web.struts.DelegatingActionUtils.findRequiredWebApplicationContext(DelegatingActionUtils.java:148)

    at org.springframework.web.struts.ActionSupport.initWebApplicationContext(ActionSupport.java:98)

    at org.springframework.web.struts.ActionSupport.setServlet(ActionSupport.java:78)

    at org.springframework.web.struts.ActionServletAwareProcessor.postProcessBeforeInitialization(ActionServletAwareProcessor.java:54)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:302)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1168)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

    at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)

    at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)

    at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)

    at javax.servlet.GenericServlet.init(GenericServlet.java:212)

    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)

    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1117)

    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)

    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)

    at java.lang.Thread.run(Thread.java:619)

10:48:38,281 ERROR [/HM_CRM]:3998 - Servlet /HM_CRM threw load() exception

javax.servlet.UnavailableException

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)

    at javax.servlet.GenericServlet.init(GenericServlet.java:212)

    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)

    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1117)

    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)

    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)

    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)

    at java.lang.Thread.run(Thread.java:619)

展开
收起
kun坤 2020-05-29 10:11:12 527 0
1 条回答
写回答
取消 提交回答
  • 是不是没有ehcache的jar包 ######回复 @姓吕名布字子乔 : 再找找吧######昨天红薯说影响不大的,应该不是这个问题。###### google一下:
    1.java.lang.IllegalStateException: 
    2.No WebApplicationContext found: no ContextLoaderListener registered?  ######这些问题都问过了,都没有好的解决方法。######o WebApplicationContext found: no ContextLoaderListener registered? ###### 看看这个,不知道能不能帮到你:
    http://hi.baidu.com/andy_ywn/item/029ea1aaaba8a69c15107384 ###### No WebApplicationContext found######是不是少了什么jar的问题呢?大家觉得是吗?###### bean name可以加斜线?奇了怪了。。。
    到底是web.xml出问题了还是applicationContext.xml出问题了?

    2020-05-29 11:35:32
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载