[Geoserver-devel] [JIRA] (GEOS-11038) Geoserver 2.23.1 doesnt pick up web-fragment.xml within custom jar when deployed on WebLogic

Luke South created an issue

GeoServer / BugGEOS-11038

Geoserver 2.23.1 doesnt pick up web-fragment.xml within custom jar when deployed on WebLogic

Issue Type:

BugBug

Affects Versions:

2.23.1

Assignee:

Unassigned

Components:

web-app

Created:

21/Jun/23 12:46 PM

Environment:

WebLogic 14.1.1

GeoServer 2.23.1

Priority:

LowLow

Reporter:

Luke South

We have a custom jar file that contains filters, a servlet, and a web-fagment.xml that are to be included alongside the deployment of GeoServer. Adding this jar to WEB-INF/lib is sufficient for a Tomcat 9 deployment, the jar is picked up, the customisations are executed when testing. However when deploying this same customised geoserver war to WebLogic, the custom servlet and filters are not getting executed.

I found that if i edited the web.xml file by replacing the first tag with the following to explicitly mention servlet version 3 the customisations are picked up and executed.

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

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100227-sha1:28a616e)

Atlassian logo