You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2021/12/08 06:34:00 UTC

[jira] [Closed] (WW-5150) Element type "struts" must be declared

     [ https://issues.apache.org/jira/browse/WW-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-5150.
-----------------------------
    Resolution: Not A Problem

Please upgrade to the latest version of Struts 2.3.x at least

> 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)