webwork 与spring继承报错
bybas 2006-12-22 12:27:55 在用webwork时报如下的错误,
12-22-2006 11:44 [main] com.opensymphony.webwork.spring.WebWorkSpringObjectFactory [43]
FATAL - ********** FATAL ERROR STARTING UP SPRING-WEBWORK INTEGRATION **********
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>
这个web.xml本来是部署struts 时的一个配置文件,现在在其中增加如下的配置,服务器用的是
weblogic8.1 web.xml部分内容如下:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/applicationContext.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-
class>
</listener>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>