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