Caused by: 元素类型为 "package" 的内容必须匹配 "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)"。

在Struts-2.3的配置文件struts.xml中,Caused by: 元素类型为 "package" 的内容必须匹配 "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)"。 

该错误的意思是:package的内容

必须按

  result-types

  interceptors

  default-interceptor-ref

  default-action-ref

  default-class-ref

  global-results

  global-exception-mappings

  action*

这样的顺序放置。

没有的跳过,有的按此顺序书写。

原文地址:https://www.cnblogs.com/chenmingjun/p/9209937.html