我的interceptor为何不起作用?(xwork.xml内容显示出来了)

05-12-05 laxxx
我用的是webwork最新版本2.2,,
在页面上输入姓名后提交到helloWorld.action,到一个新的页面,可interceptor不起作用,所以早前输入的name值也为null.
可不知为什么interceptor不起作用,请大家帮帮忙,这个问题困扰我一个星期了..还是没能解决..

Tomcat不报错,但显示如下信息:
请各位大侠帮帮忙啊,小弟先谢了...

2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.XmlConfigurationProvider verifyInterceptor
严重: Unable to load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor for interceptor name au
towiring. This interceptor will not be available.
Cause: Could not load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor. Perhaps it exists but
certain dependencies are not available?
2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
严重: Unable to find interceptor class referenced by ref-name completeStack


我的xwork.xml内容如下:

<xwork>
   <include file="webwork-default.xml"/>
   
   <package name="default" extends="webwork-default">
     <!-- Include webwork defaults (from WebWork JAR). -->
     <default-interceptor-ref name="completeStack"/>

      <action name="helloWorld"
                class="test.HelloWorldAction">
         <result name="success">hello.jsp</result>
         <result name="input">name.jsp</result>
      </action>
   </package>
  </xwork>
<p class="indent">

banq
2005-12-06 08:52
帮你看看出错信息:

> autowiring. This interceptor will not be available.
autowiring是Ioc模式的自动配对,你在代码中有一个类调用另外一个类,但是它发现这两个类并不配对,

再看下面原因
>Cause: Could not load class >com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterc>eptor. Perhaps it exists but
>certain dependencies are not available?
ActionAutowiringInterceptor是存在,但是某个依赖不合适,就是上面说的原因。

>2005-12-5 17:13:32 >com.opensymphony.xwork.config.providers.InterceptorBuilder >constructInterceptorReference
>严重: Unable to find interceptor class referenced by ref-name >completeStack

在构建解释器链时,没有发现你取名为completeStack这个名称指向的解释器,可能你没打包进去,或者你的解释器编写不符合规范