Uploaded image for project: 'GeoServer'
  1. GEOS-7918

Invalid scope attribute in gs-restconfig applicationContext.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 2.9.4, 2.10.1, 2.10.2, 2.11-beta
    • Fix Version/s: 2.10.2, 2.11-beta
    • Component/s: REST
    • Labels:
      None

      Description

      The gs-restconfig applicationContext.xml declares:

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

      yet contains:

      <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

      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:

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                bencaradocdavies Ben Caradoc-Davies
                Reporter:
                bencaradocdavies Ben Caradoc-Davies
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: