Invalid scope attribute in gs-restconfig applicationContext.xml

Description

The gs-restconfig applicationContext.xml declares:

1 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

yet contains:

1 <bean id="fontFinder" class="org.geoserver.rest.FontListResource" scope="prototype"/>

However, the scope attribute is not defined for this DTD (Spring Beans 1.2), resulting in the following failure to start GeoServer (inexplicably for one user only):
http://osgeo-org.1560.x6.nabble.com/Could-not-access-Geoserver-admin-page-td5301339.html

1 2 28 十二月 13:30:10 ERROR [context.ContextLoader] - Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 566 in XML document from URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.10.1/webapps/geoserver/WEB-INF/lib/gs-restconfig-2.10.1.jar!/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 566; columnNumber: 89; 必须为元素类型 "bean" 声明属性 "scope"。

The invalidity of applicationContext.xml can be confirmed by opening it in Eclipse.

The DTD should be changed to:

1 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

Environment

None

Status

Assignee

Ben Caradoc-Davies

Reporter

Ben Caradoc-Davies

Triage

None

Fix versions

Affects versions

2.10.2
2.9.3
2.10.1
2.11-beta
2.9.4

Components

Priority

Medium
Configure