struts2配置文件错误(The content of element type “package” must match**)
来源:互联网 发布:python nltk 编辑:程序博客网 时间:2024/06/10 14:41
今天在对struts2的做一些缺省配置,当想增加一个缺省的action时,出现了错误
错误提示是:
The content of element type “package” must match “(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)”.
个人理解,字面意思应该是可能某个节点写错了,但是仔细对照了一下没有发现配置文件中有对不上号的节点啊,于是上网搜索了一下
原来是需要是需要按照一定的顺序排列的,按照错误提示就是:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
错误提示是:
The content of element type “package” must match “(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)”.
个人理解,字面意思应该是可能某个节点写错了,但是仔细对照了一下没有发现配置文件中有对不上号的节点啊,于是上网搜索了一下
原来是需要是需要按照一定的顺序排列的,按照错误提示就是:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
- struts2配置文件错误(The content of element type “package” must match**)
- The content of element type "package" must match...
- The content of element type "package" must match 。。。。。。
- The content of element type "package" must match 随笔
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2 问题 The content of element type "package" must match "(result-types?,interceptors?,
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul
- 错误:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- Hibernate配置文件错误提示,The content of element type "list" must match "(meta*,subselect?,cache?,synchroniz
- [com.opensymphony.xwork2.util.DomHelper] The content of element type "package" must match
- 如果出现The content of element type "package" must match "(result-types?,interceptors?,default-interce
- “The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- org.xml.sax.SAXParseException The content of element type "package" must match "(result-types?,inter
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- Intel VT
- 存储过程的简单应用
- 在VC中使用自定义资源,FindResource,LoadResource,LockResource
- 三种命名规则
- ISO语言代码(ISO-639)与国家代码(ISO-3166)
- struts2配置文件错误(The content of element type “package” must match**)
- C语言考试题 移动字符串位置
- 图形图像库 集合
- 插入sim卡联系人不同情况分析
- 学习笔记——combobox绑定datatable数据源后无法设定初始选项的解决方法
- 关于二进制文件的读写RandomAccessFile
- java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream异常解决方法
- 反射的对象的属性,方法
- C++中struct/class的数据对齐与sizeof