【问题标题】:Why is apache dtd for struts throwing errors为什么 apache dtd for struts 会抛出错误
【发布时间】:2018-09-12 10:15:58
【问题描述】:

今天早上,我正在处理的系统的几个分支都开始出现以下错误消息: (昨晚一切都很好)

 [37m2018-09-12 11:55:34.733[0;39m [1;31mERROR[0;39m [37m--- [           main]
 [0;39m [     ] 36mcom.opensymphony.xwork2.util.DomHelper  
 [0;39m : The markup declarations contained or pointed to by the document type declaration must be well-formed. at (-//Apache Software Foundation//DTD Struts Configuration 2.5//EN:1:3)
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

引用位于 struts.xml 中,如下所示:

<!DOCTYPE struts PUBLIC
 "-//Apache Software Foundation//DTD Struts 
  Configuration 2.5//EN"
 "http://struts.apache.org/dtds/struts-2.5.dtd">

转到上面的网址我收到这条消息:

This page contains the following errors:
error on line 35 at column 2: StartTag: invalid 
element name
Below is a rendering of the page up to the first 
error.

由于这只是在几个分支中开始发生,其中一些分支的 struts.xml 文件没有任何更改,我猜这是一个 apache 问题。还有人看到这个吗?

【问题讨论】:

标签: apache struts dtd


【解决方案1】:

我今天也遇到了同样的错误。

尝试使用 http-secure URL; “https://struts.apache.org/dtds/struts-2.5.dtd”作为 DTD。

但我并不清楚真正的原因。

【讨论】:

  • 试过了,同样的错误。在浏览器中使用该 url 也会显示错误。
【解决方案2】:

apache 刚刚发布他们解决了这个问题

https://issues.apache.org/jira/browse/WW-4959

【讨论】:

    猜你喜欢
    • 2019-05-15
    • 1970-01-01
    • 1970-01-01
    • 2018-07-04
    • 2018-12-10
    • 2019-06-13
    • 2021-06-17
    • 2015-02-25
    • 1970-01-01
    相关资源
    最近更新 更多