今天启动toncat服务器出现这个错误“
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1”;
可能是web.xml没有配置监听器
web.xml
<!-- 启动服务器时,实例化Spring容器 -->
<!-- 指定Listener要加载的Spring配置文件 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- 启动服务器时实例化Listener对象,此时实例化Spring容器对象 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>