Have PR build failure on master here: geoserver/geoserver#4541

That is not related to the very small PR contents. Trying to determine if:
a) the repo or build server is failing; or
b) a prior merge to master is in error

I note Andrea has just removed the DTD reference here:
geoserver/geoserver@ecb9874
<https://github.com/geoserver/geoserver/commit/ecb9874d53ee0b2149c00b8769096ab0c27a6f84>,
the the DTD reference we have been using is no longer available.

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>

So what is next? Update web.xml a more modern servlet api?

It looks like XSD is available:
*
https://stackoverflow.com/questions/43146137/where-is-the-xsd-and-semantics-of-the-web-xml-defined
* http://xmlns.jcp.org/xml/ns/javaee/

What version to pick may be dictated about what version of tomcat we wish
to support.
* https://tomcat.apache.org/whichversion.html

In our manual supported versions are:
* Tomcat 8.5.x: Servlet 3.1 <-- oldest active branch
* Tomcat 9.0.x: Servlet 4.0
* Tomat 10.0.x: Servlet 5.0 <-- milestone release so we do not support yet

The tomcat docs all reference the same web-app_2_3.dtd we are using (so
they are out of date).

So something like geonetwork has:

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xmlns="http://java.sun.com/xml/ns/javaee";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                     http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
 version="3.0" metadata-complete="true">

Or websphere docs:

<web-app  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xmlns="http://java.sun.com/xml/ns/javaee";
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
         id="WebApp_ID" version="3.0">

Or tomcat sample app:

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee

http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd";
  version="4.0"
  metadata-complete="true">

--
Jody Garnett
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to