[Geoserver-devel] [JIRA] (GEOS-10678) "cd web/app; mvn jetty:run" doesn't work

David Blasby created an issue

GeoServer / BugGEOS-10678

“cd web/app; mvn jetty:run” doesn’t work

Issue Type:

BugBug

Affects Versions:

2.22-M0

Assignee:

Unassigned

Created:

29/Sep/22 2:06 AM

Priority:

MediumMedium

Reporter:

David Blasby

  1. new GS checkout
  2. “mvn clean install -DskipTests -U”
  3. cd web/app
  4. mvn jetty:run

When running, you will get this issue;

28 005 15:05:40 WARN [support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘wmsServiceDescriptor’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/web/gs-web-wms/2.22-SNAPSHOT/gs-web-wms-2.22-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/gs-main/2.22-SNAPSHOT/gs-main-2.22-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘catalog’ while setting bean property ‘catalog’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘localWorkspaceCatalog’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/gs-main/2.22-SNAPSHOT/gs-main-2.22-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘advertisedCatalog’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘advertisedCatalog’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/gs-main/2.22-SNAPSHOT/gs-main-2.22-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘secureCatalog’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accessRulesDao’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/gs-main/2.22-SNAPSHOT/gs-main-2.22-SNAPSHOT.jar!/applicationSecurityContext.xml]: Cannot resolve reference to bean ‘rawCatalog’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rawCatalog’ defined in URL [jar:file:/Users/db/.m2/repository/org/geoserver/gs-main/2.22-SNAPSHOT/gs-main-2.22-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.converters.ConversionException:

(and a bunch more errors)

The issue is caused here;

https://github.com/geoserver/geoserver/blob/main/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java#L2582

info.getSettings() is null.

This root issue is that there isn’t a settings section in the global.xml file.

Running “jetty:run” will create a “minimal” datadir with this global.xml (no settings);

% more ./src/main/webapp/data/global.xml

<global><contact/><jai><allowInterpolation>false</allowInterpolation><recycling>true</recycling><tilePriority>5</tilePriority><tileThreads>7</tileThreads><memoryCapacity>0.5</memoryCapacity><memoryThreshold>0.75</memoryThreshold><imageIOCache>false</imageIOCache><pngAcceleration>false</pngAcceleration><jpegAcceleration>false</jpegAcceleration><allowNativeMosaic>false</allowNativeMosaic></jai><charset>UTF-8</charset><numDecimals>8</numDecimals><onlineResource><http://geoserver.org</onlineResource>>
  <verbose>false</verbose><verboseExceptions>false</verboseExceptions><updateSequence>0</updateSequence></global>

See https://github.com/geoserver/geoserver/blob/main/data/minimal/global.xml

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#100207-sha1:ee9e30a)

Atlassian logo