ssh java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
来源:互联网 发布:双11销售额包括淘宝吗 编辑:程序博客网 时间:2024/05/22 13:54
启动tomcat时,包这个错误。java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
web.xml配置错误。大多数是顺序错误导致的!
正确的web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<display-name>OldArticleSwap</display-name>
<filter>
<filter-name>struts-config</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-config</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<!-- 设置编码 -->
<filter>
<filter-name>encoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
- ssh java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' bef
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the A
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- BeanFactory not initialized or already closed - call 'refresh' before access
- ORACLE 的锁
- 全排列与八皇后的转化
- 没有当前目录访问权限/重装系统后无法访问文件夹 解决办法
- ffmpeg进行YUV420P和RGB24转换
- ORACLE SQL优化
- ssh java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
- Xcode5.1.1+ios7.1.2免证书真机调试
- 快速排序(QuickSort)
- MFC中DUBUG模式没有出错,转换到Release下报Debug Assert Access Error 解决方法
- FreeBSD10 安装软件
- but no declaration can be found for element 'tx:advice'
- SPRING的学习笔记
- ieee802.1X
- codeforces 41D Pawn (简单dp+路径打印)