解决方案 »

  1.   

    java.lang.IllegalStateException: @Resource annotation is not supported on static
    大家有没有出现这样的问题
      

  2.   

    HTTP Status 500 - Unable to instantiate Action, com.yft.actions.index.IndexAction, defined for 'indexPage' in namespace '/'@Resource annotation is not supported on static fieldstype Exception reportmessage Unable to instantiate Action, com.yft.actions.index.IndexAction, defined for 'indexPage' in namespace '/'@Resource annotation is not supported on static fieldsdescription The server encountered an internal error (Unable to instantiate Action, com.yft.actions.index.IndexAction, defined for 'indexPage' in namespace '/'@Resource annotation is not supported on static fields) that prevented it from fulfilling this request.exceptionUnable to instantiate Action, com.yft.actions.index.IndexAction,  defined for 'indexPage' in namespace '/'@Resource annotation is not supported on static fields
    com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:319)
    com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
    com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
    org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
    org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
    com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
    org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)