David Blasby ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e5850b0e7724a0e726439a4
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10678?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 ) GEOS-10678 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10678?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 ) "cd web/app; mvn jetty:run" doesn't work ( 
https://osgeo-org.atlassian.net/browse/GEOS-10678?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.22-M0 Assignee: Unassigned Created: 
29/Sep/22 2:06 AM Priority: Medium Reporter: David Blasby ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e5850b0e7724a0e726439a4
 )

* new GS checkout
* “mvn clean install -DskipTests -U”
* cd web/app
* 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]:
 ( 
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]:
 ( 
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]:
 ( 
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]:
 ( 
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]:
 ( 
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]:
 ( 
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
 ( 
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 ( 
https://github.com/geoserver/geoserver/blob/main/data/minimal/global.xml )

( 
https://osgeo-org.atlassian.net/browse/GEOS-10678#add-comment?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10678#add-comment?atlOrigin=eyJpIjoiMWQzMjFiOGI1MWEwNDI4YjgxNmI0OWU4NjY0MDgzMTUiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- 
sha1:ee9e30a )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to