为什么apache dtd for struts抛出错误

问题描述 投票:0回答:2

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

 [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
2个回答
0
投票

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

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

但我不清楚真正的原因。


0
投票

apache刚刚发布了他们修复了这个问题

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

© www.soinside.com 2019 - 2024. All rights reserved.