Unable to start on disconnected network due to web.xml DTD reference

Description

I had the joy of working without internet recently, and was unable to start the application due to web.xml containing a DTD reference. The parsing of web.xml happens deep within the jetty application server (so I cannot easily supply my own entity resolver), the only way I was able to start up was by commenting out the DTD at the top of the web.xml file:

<?xml version="1.0" encoding="UTF-8"?> <!-- !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"--> <web-app> <display-name>GeoServer</display-name> <context-param> <param-name>serviceStrategy</param-name> ...

Environment

None

Web links

Activity

Andrea Aime
December 10, 2017 at 1:54 PM

Jody, both ticket and pull request are now eligible to get closed due to lack of progress. What do you want to do?

Jody Garnett
October 25, 2016 at 4:41 PM

I am going to issue this as a pull request to promote discussion - https://github.com/geoserver/geoserver/pull/1916

Cannot Reproduce

Details

Assignee

Reporter

Fix versions

Priority

Created October 25, 2016 at 4:36 PM
Updated March 20, 2018 at 4:19 PM
Resolved March 20, 2018 at 4:19 PM