Local WMS service in local.config

123 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Andreea M

unread,
Dec 21, 2023, 10:05:26 AM12/21/23
to mapstore-developers
Hello everyone

I wonder if you can help. I'm new to MapStore and GeoServer so bear with me. 

I managed to install MapStore running on Tomcat and GeoServer on Java, both on the same server, but running on different ports - Mapstore on 8082 and GeoServer on 8080. I have a few layers in GeoServer organised in different workspaces. Now, I'm trying to add the GeoServer base root - http://localhost:8080/geoserver/wms to the local.config file in MapStore, but with no joy; I get an error message saying 'Service not available. Please check the provided URL'. If I change that to include the name of the workspace - http://localhost:8080/geoserver/flooding/wms it works and the layers come up in the Catalog. 
Any ideas what setting have I have got wrong (presuming in GeoServer) that prevents all of the layers to show up when adding the base URL? Or is it that the URL needs to be formatted in a different way for MapStore?

Many thanks in advance,
Andreea

Lorenzo Natali

unread,
Jan 8, 2024, 6:08:24 AM1/8/24
to mapstore-developers
Hi, 
it is more a GeoServer question, but I suggest to check the configuration "Enable global services" in your GeoServer.

Andreea M

unread,
Jan 8, 2024, 6:15:36 AM1/8/24
to mapstore-developers
Hi Lorenzo

Many thanks for taking the time to reply and for confirming my suspicion, I'll give that a read.

Andreea

Andreea M

unread,
Jan 22, 2024, 10:34:42 AM1/22/24
to mapstore-developers
Hi Lorenzo

You were right, it was the global services in GeoServer. Now I've stumbled over another issue with the selected services for the dashboard. I've installed several plugins for GeoServer: WPS, CSW, CSS and added my local WFS service to the local.config file as follows:
"local_wfs": {
  "url": "http://localhost/geoserver/wfs",
  "type": "wfs",
  "title": "My WFS"
}

When trying to add a chart widget in a new Dashboard, I get the error below. The workspace for my layer has the WFS, WMS & WPS services ticked on. I tried the WPS request builder in GeoServer and it seems to be working ok. All the services under the WPS Security settings in GeoServer are active, though I could not see a separate record for gs:aggregate . Any ideas what settings I should be looking into to get it working?

"Can not create the widget for the selected layer

Please try to select another layer or widget type

The server doesn't provide the needed services for the layer and the widget type selected

Possible causes are:

  • The selected layer is a raster layer
  • WFS service is not available
  • The WPS process gs:aggregate is not available"

On Monday, January 8, 2024 at 11:08:24 AM UTC Lorenzo Natali wrote:

Lorenzo Natali

unread,
Jan 23, 2024, 3:57:20 AM1/23/24
to mapstore-...@googlegroups.com
Hi,
usually is one of the reasons expressed in the list. 
If you can not identify which one, try to open the developer tools and identify if some request is failing or the response of one of them when you have the error.

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/ed5cf74b-a66e-4b21-b920-912b3cd27436n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages