[ 
https://issues.apache.org/jira/browse/WW-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454985#comment-17454985
 ] 

Lukasz Lenart commented on WW-5150:
-----------------------------------

It's related to a bug in older version of Tomcat/SAX. XML parser tries to 
validate the XML using remote DTD even if local copy in JAR is already provided 
and it tries to fetch the DTD from http://struts.apache.org/dtds/struts-2.0.dtd 
- yet Apache disabled access over http:// to all the sites and sends redirect 
(HTTP 302) to use https:// - but probably the parser cannot handle it. You can 
check that the version under https:// is available: 
https://struts.apache.org/dtds/struts-2.0.dtd

> Element type "struts" must be declared
> --------------------------------------
>
>                 Key: WW-5150
>                 URL: https://issues.apache.org/jira/browse/WW-5150
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Paniagua
>            Priority: Major
>
> Buenas tardes,
>  
> nos ha ocurrido un problema el fin de semana que nos impedía acceder a la 
> aplicación.
> El error en el log es:
> Element type "struts" must be declared. at (null:28:9)
> org.xml.sax.SAXParseException; systemId: 
> jar:file:/var/apache-tomcat-7.0.85/webapps/oegam2/WEB-INF/lib/struts2-spring-plugin-2.3.8.jar!/struts-plugin.xml;
>  lineNumber: 28; columnNumber: 9; Element type "struts" must be declared.
> En nuestro struts-plugin.xml tenemos la llamada indicado
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
>  
> De esta forma debería ir a la URL y descargar el dtd pero nos da ese error 
> anterior indicado.
> Para solventarlo tuvimos que modificar el jar y añadirle al mismo nivel el 
> .DTD y quitar la llamada a la URL dejando el nombre nada mas
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "struts-2.0.dtd">
>  
> Nos podrían indicar a que se debe ese problema?
>  
> Muchas gracias



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to