Looks like the Spring listener was not configured for your web app
2013-06-19 14:49
381 查看
刚刚做一个小Project,想用struts2做测试,结果总是报错,内容如下:
Looks like the Spring listener was not configured for your web app!
Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
You might need to add the following to web.xml:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
刚开始的时候,很纳闷:我没有添加Spring应用,怎么会提醒我加载Spring的监听器呢?
原来我在添加spring应用的时候,勾选的jar包不正确。struts2-spring-plugin-2.1.6.jar这个包没有用到,删掉这个包后,就不报错了,上网查才知道只要你增加
了这个jar包后,服务器启动的时候会自动的监听
Looks like the Spring listener was not configured for your web app!
Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
You might need to add the following to web.xml:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
刚开始的时候,很纳闷:我没有添加Spring应用,怎么会提醒我加载Spring的监听器呢?
原来我在添加spring应用的时候,勾选的jar包不正确。struts2-spring-plugin-2.1.6.jar这个包没有用到,删掉这个包后,就不报错了,上网查才知道只要你增加
了这个jar包后,服务器启动的时候会自动的监听
相关文章推荐
- Looks like the Spring listener was not configured for your web app!
- Looks like the Spring listener was not configured for your web app!
- Looks like the Spring listener was not configured for your web app!
- Spring:Looks like the Spring listener was not configured for your web app!
- [转载]Looks like the Spring listener was not configured for your web app
- Could not find the Visual SourceSafe Internet Web Service connection information for the specified database Would you like to launch the Visual sourceSafe connection wizard?
- the apk for your currently selected variant(app-release-unsigned.apk)is not signed.Please specity a
- [AX]AX2012激活HTTP适配器AIF端口提示错误“The deployment web site was not found for port”
- Spring MVC looks for a file named [servlet-name]-servlet.xml in the WEB-INF
- You third iOS app,解决1The identity used to sign the executable is no longer valid 2.A valid provisioning profile for this executable was not found。
- 8.1 Details Your app does not comply with the Guidelines for Using Apple's Trademarks and Copyrights
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- java.lang.ClassNotFoundException: org.springframework.web.util.WebAppRootListener
- 【iOS】Could not launch Verify the Developer App certificate for your account is trusted on your devic
- Building a large webapp today - what language for the backend, and why?
- maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- spring.net Could not initialize proxy - the owning Session was closed 解决
- spring.net Could not initialize proxy - the owning Session was closed 解决
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- VSS问题:Could not find the Visual SourceSafe Internet Web Service connection information for the speci