[
https://issues.apache.org/jira/browse/WW-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454845#comment-17454845
]
Paniagua commented on WW-5150:
------------------------------
We had a problem over the weekend that prevented us from accessing the
application.
The error in the log is:
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.
In our struts-plugin.xml we have the indicated call
<! DOCTYPE struts PUBLIC
"- // Apache Software Foundation // DTD Struts Configuration 2.0 // EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
In this way it should go to the URL and download the dtd but it gives us that
previous error indicated.
To solve it we had to modify the jar and add the .DTD at the same level and
remove the call to the URL leaving the name nothing else
<! DOCTYPE struts PUBLIC
"- // Apache Software Foundation // DTD Struts Configuration 2.0 // EN"
"struts-2.0.dtd">
Could you tell us what is the problem?
Thank you
> 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)