Struts2和Spring2结合时报的一个错

07-07-14 wind13
试着结合这两个框架,但一直不顺,现在报这个错:

2007-7-14 12:58:30 com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
警告: Unable to load config class org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor - jar:file:/D:/EclipseProject/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/Game/WEB-INF/lib/struts2-core-2.0.8.jar!/struts-default.xml:76:115 probably due to a missing jar, which might be fine if you never plan to use the debugging interceptor
2007-7-14 12:58:30 com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
严重: Actual exception
Caught Exception while registering Interceptor class org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor - jar:file:/D:/EclipseProject/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/Game/WEB-INF/lib/struts2-core-2.0.8.jar!/struts-default.xml:76:115
	... 31 more
Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).
2007-7-14 12:58:30 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2007-7-14 12:58:30 org.apache.catalina.core.StandardContext start
严重: Context [/Game] startup failed due to previous errors
2007-7-14 12:58:30 org.apache.catalina.core.ApplicationContext log
信息: Find registry server-registry.xml at classpath resource
2007-7-14 12:58:31 org.apache.catalina.startup.Catalina start
信息: Server startup in 8312 ms
<p>

找了很多地方,没有找到答案,郁闷中……

好象就是Debug注入的一个问题,又好象是Struts2包里面的问题,不知道如何解决。

谁知道提示一下,感激不尽~~

banq
2007-07-16 13:26
依赖的映射没有发现,没有找到FreemarkerManager类

No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager

猜你喜欢