Lukasz Kujawiak ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5b13c3c7b0d76456f36da965
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMjM5MzM0OTljNTE5NDI2ZTg4OGQwMmQ4MGRiMTk2MWYiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10267?atlOrigin=eyJpIjoiMjM5MzM0OTljNTE5NDI2ZTg4OGQwMmQ4MGRiMTk2MWYiLCJwIjoiaiJ9
 ) GEOS-10267 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10267?atlOrigin=eyJpIjoiMjM5MzM0OTljNTE5NDI2ZTg4OGQwMmQ4MGRiMTk2MWYiLCJwIjoiaiJ9
 ) The app-schema-tutorial doesn't work. Data store connection parameters 
aren't correct. Feature type schema isn't loaded ( 
https://osgeo-org.atlassian.net/browse/GEOS-10267?atlOrigin=eyJpIjoiMjM5MzM0OTljNTE5NDI2ZTg4OGQwMmQ4MGRiMTk2MWYiLCJwIjoiaiJ9
 )

Issue Type: Bug 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: Medium Reporter: Lukasz Kujawiak ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5b13c3c7b0d76456f36da965
 )

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

( 
https://osgeo-org.atlassian.net/secure/attachment/33775/33775_image-2021-10-07-11-45-36-536.png
 )

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? _

( 
https://osgeo-org.atlassian.net/secure/attachment/33774/33774_image-2021-10-07-11-47-18-097.png
 )

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>

2. The schema isn't loaded
( 
https://osgeo-org.atlassian.net/secure/attachment/33773/33773_image-2021-10-07-11-49-10-899.png
 )

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

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

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#100180- 
sha1:9ba4f0d )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to