After a colleague was having issues getting CORS working on a Windows
installation, I took a crack at installing it on a Dev machine that I have
and noticed that the jetty plugin used for CORS that one needs to add to
web.xml based on the documentation is referencing a plural module name, but
there is only a singular module by that name in the /libs folder.  If I
changed the document to reference the singular "servlet", the server would
not start up.

Example Documentation from
https://www.eclipse.org/jetty/documentation/9.4.x/cross-origin-filter.html

    <filter>
        <filter-name>cross-origin</filter-name>

<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>cross-origin</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

I downloaded the appropriate plugin at
https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlets/9.2.13.v20150730/jetty-servlets-9.2.13.v20150730.jar
and dropped it in /webapps/geoserver/WEB-INF/lib and it started up without
issue.

Am I missing something? Does this need to be added to the build?

Operating System: Windows Server 2012 R2
GeoServer Version: 2.10.1 Stable

Thanks!
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to