ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
21 stars 21 forks source link

Invalid xml in thredds web.xml file #575

Closed nathanlcarlson closed 5 years ago

nathanlcarlson commented 5 years ago

/usr/local/tomcat/logs/catalina.out reported the following error when starting tomcat

21-Sep-2018 09:51:59.829 SEVERE [localhost-startStop-1] org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 66 column 7: An invalid XML character (Unicode: 0x1) was found in the element content of the document.
 org.xml.sax.SAXParseException; systemId: file:/usr/local/apache-tomcat-8.5.20/webapps/thredds/WEB-INF/web.xml; lineNumber: 66; columnNumber: 7; An invalid XML character (Unicode: 0x1) was found in the element content of the document.

Looking at that line and file

  <init-param>
      <param-name>trustoreFile</param-name>
      ^A/esg/config/tomcat/esg-truststore.ts^B
    </init-param>

The offending line has some unknown characters or something, they seem to be quotes. There is another case.

 <init-param>
      <param-name>authorizationServiceUrl</param-name>
      <param-value>
        ^Aesgf-dev1.llnl.gov^B
      </param-value>
    </init-param>

This is likely related to #548.

nathanlcarlson commented 5 years ago

The first error line is also missing <param-value> ... </param-value> tags.

nathanlcarlson commented 5 years ago

This may be related to #573

William-Hill commented 5 years ago

@nathanlcarlson You are correct, #573 addresses this issue

nathanlcarlson commented 5 years ago

Okay, I will close this one.