[Geoserver-devel] [JIRA] (GEOS-10267) The app-schema-tutorial doesn't work. Data store connection parameters aren't correct. Feature type schema isn't loaded

Lukasz Kujawiak created an issue

GeoServer / BugGEOS-10267

The app-schema-tutorial doesn’t work. Data store connection parameters aren’t correct. Feature type schema isn’t loaded

Issue Type:

BugBug

Affects Versions:

2.19.2

Assignee:

Unassigned

Attachments:

image-2021-10-07-11-45-36-536.png, image-2021-10-07-11-47-18-097.png, image-2021-10-07-11-49-10-899.png

Components:

Documentation

Created:

07/Oct/21 11:51 AM

Environment:

Docker container https://github.com/kartoza/docker-geoserver

Priority:

MediumMedium

Reporter:

Lukasz Kujawiak

I came across two issues related to the app-schema-tutorial published on Github https://github.com/geoserver/geoserver/tree/main/data/app-schema-tutorial

  1. The datastore definition doesn’t work out of the box

Error message taken from layers section: Failed to load attribute list, internal error is: Failed to find the datastore factory for gsml_MappedFeature, did you forget to install the store extension jar?

I was able to fix it by changing the datastore configuration connection parameters:
e.g:
<connectionParameters>
<entry key=“namespace”>urn:cgi:xmlns:CGI:GeoSciML:2.0</entry>
<entry key=“dbtype”>app-schema</entry>
<entry key=“directory”>file:workspaces/gsml/gsml_GeologicUnit/gsml_GeologicUnit.properties</entry>
<entry key=“url”>file:workspaces/gsml/gsml_GeologicUnit/gsml_GeologicUnit.xml</entry>
</connectionParameters>

  1. The schema isn’t loaded

2021-10-07 09:48:39,638 WARN [org.geoserver.catalog] - Error while getting feature type, flushing cache and retrying: Schema ‘GeologicUnit’ does not exist.
2021-10-07 09:48:39,641 WARN [org.geoserver.catalog] - Unable to flush 'urn:cgi:xmlns:CGI:GeoSciML:2.0:GeologicUnit
java.io.IOException: Schema ‘GeologicUnit’ does not exist.
at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:533)
at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:331)
at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:303)
at org.geoserver.catalog.ResourcePool.flushState(ResourcePool.java:2672)
at org.geoserver.catalog.ResourcePool.flushDataStore(ResourcePool.java:2645)
at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:929)
at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:915)
at org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureType(FeatureTypeInfoImpl.java:123)
at jdk.internal.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
at

I wasn’t able to find the solution

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#100180-sha1:9ba4f0d)

Atlassian logo