Re: [Geoserver-users] WFS 2.0.0 stored query return feature type error

2018-11-03 Thread Davor Racic
I have upgraded Geoserver to v.2.14, because of this bug:

https://osgeo-org.atlassian.net/browse/GEOS-8635

This leads me to another problem. So the capabilites request:

http://myserver/geoserver/gn/wfs?service=WFS=2.0.0=getcapabilities

has declared prefix gn:

xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;

But describestoredqueries

http://myserver/geoserver/gn/wfs?service=WFS=2.0.0=describestoredqueries_ID=http://inspire.ec.europa.eu/operation/download/GetSpatialDataset


does not, so I get an error from INSPIRE validator:

org.xml.sax.SAXException: Fatal error: org.xml.sax.SAXParseException;
lineNumber: 14; columnNumber: 151; UndeclaredPrefix: Cannot resolve
'gn:NamedPlace' as a QName: the prefix 'gn' is not declared. Response did
not validate against schema 'http://www.opengis.net/wfs/2.0
http://myserver:80/geoserver/schemas/wfs/2.0/wfs.xsd'.

As I have noticed that gn prefix is missing after CreateStoredQuery POST, i
added it manually in data_dir/wfs/query/querydefinition.xml, but the result
is the same. XML header does not contain gn prefix. Am I missing something
here or this could possibly be a Bug?

Best regards
Davor

uto, 30. lis 2018. u 07:56 Davor Racic  napisao je:

> Hi,
>
> just tried POST-ing with returnFeatureTypes="" and it worked. xmlns:gn="
> http://inspire.ec.europa.eu/schemas/gn/4.0; is stripped from query
> definition in data dir.
>
> Best regards
> Davor
>
> pon, 29. lis 2018. u 20:35 Davor Racic  napisao je:
>
>> Just an explanation where I started. I created the query definition
>> manually to datadir/wfs/query, and eventually succeeded with that:
>>
>> http://www.w3.org/2001/XMLSchema;
>> xmlns:fes="http://www.opengis.net/fes/2.0;
>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>> xmlns:gml="http://www.opengis.net/gml/3.2;
>> xmlns:ows="http://www.opengis.net/ows/1.1;
>> xmlns:xlink="http://www.w3.org/1999/xlink;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
>> "http://www.opengis.net/wfs/2.0
>> http://myserver:80/geoserver/schemas/wfs/2.0/wfs.xsd;>
>> > "urn:ogc:def:query:OGC-WFS::GetFeatureById">
>> Get feature by identifier
>> 
>> > "urn:ogc:def:queryLanguage:OGC-WFS::WFSQueryExpression"
>> returnFeatureTypes=""/>
>> 
>> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;>
>> INSPIRE GetSpatialDataSet
>> 
>> INSPIRE GetSpatialDataSet query
>> 
>> 
>> 
>> 
>> 
>> > "urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression"
>> returnFeatureTypes="gn:NamedPlace">
>> 
>> 
>> 
>> 
>> inspireID/base:Identifier/base:namespace
>> 
>> 
>> 
>> ${DataSetIdNameSpace}
>> /
>> 
>> ${DataSetIdNameSpace}
>> 
>> ${DataSetIdNameSpace}
>> /
>> 
>> 
>> 
>> 
>> inspireID/base:Identifier/base:namespace
>> 
>> 
>> 
>> ${DataSetIdCode}
>> /
>> 
>> ${DataSetIdCode}
>> 
>> ${DataSetIdCode}
>> /
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> But when I try to use it with the id "
>> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;, I get:
>>
>> http://www.w3.org/2001/XMLSchema;
>> xmlns:ows="http://www.opengis.net/ows/1.1;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; version="2.0.0"
>> xsi:schemaLocation="http://www.opengis.net/ows/1.1
>> http://myserver:80/geoserver/schemas/ows/1.1.0/owsAll.xsd;>
>> > "STOREDQUERY_ID">
>> 
>> No such stored query:
>> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet
>> 
>> 
>> 
>>
>> So I tried with CreateStoredQuery to catch some errors on Geoserver, but
>> that one was the least expected.
>>
>> Best regards
>> Davor
>>
>> pon, 29. lis 2018. u 19:47 Davor Racic  napisao
>> je:
>>
>>> Hi Andrea,
>>>
>>> I tried with that few minutes after posting:
>>>
>>> >> xmlns="http://www.opengis.net/wfs/2.0;
>>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>>> xmlns:gml="http://www.opengis.net/gml/3.2;
>>> xmlns:fes="http://www.opengis.net/fes/2.0;
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
>>> xmlns:xlink="http://www.w3.org/1999/xlink;
>>> xmlns:ows="http://www.opengis.net/ows/1.1;
>>> xmlns:gn="h

Re: [Geoserver-users] WFS 2.0.0 stored query return feature type error

2018-10-30 Thread Davor Racic
Hi,

just tried POST-ing with returnFeatureTypes="" and it worked. xmlns:gn="
http://inspire.ec.europa.eu/schemas/gn/4.0; is stripped from query
definition in data dir.

Best regards
Davor

pon, 29. lis 2018. u 20:35 Davor Racic  napisao je:

> Just an explanation where I started. I created the query definition
> manually to datadir/wfs/query, and eventually succeeded with that:
>
> http://www.w3.org/2001/XMLSchema;
> xmlns:fes="http://www.opengis.net/fes/2.0;
> xmlns:wfs="http://www.opengis.net/wfs/2.0;
> xmlns:gml="http://www.opengis.net/gml/3.2;
> xmlns:ows="http://www.opengis.net/ows/1.1;
> xmlns:xlink="http://www.w3.org/1999/xlink;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
> http://www.opengis.net/wfs/2.0
> http://myserver:80/geoserver/schemas/wfs/2.0/wfs.xsd;>
>  >
> Get feature by identifier
> 
>  "urn:ogc:def:queryLanguage:OGC-WFS::WFSQueryExpression" returnFeatureTypes
> =""/>
> 
> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;>
> INSPIRE GetSpatialDataSet
> 
> INSPIRE GetSpatialDataSet query
> 
> 
> 
> 
> 
>  "urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression"
> returnFeatureTypes="gn:NamedPlace">
> 
> 
> 
> 
> inspireID/base:Identifier/base:namespace
> 
> 
> 
> ${DataSetIdNameSpace}
> /
> 
> ${DataSetIdNameSpace}
> 
> ${DataSetIdNameSpace}
> /
> 
> 
> 
> 
> inspireID/base:Identifier/base:namespace
> 
> 
> 
> ${DataSetIdCode}
> /
> 
> ${DataSetIdCode}
> 
> ${DataSetIdCode}
> /
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> But when I try to use it with the id "
> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;, I get:
>
> http://www.w3.org/2001/XMLSchema;
> xmlns:ows="http://www.opengis.net/ows/1.1;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; version="2.0.0"
> xsi:schemaLocation="http://www.opengis.net/ows/1.1
> http://myserver:80/geoserver/schemas/ows/1.1.0/owsAll.xsd;>
>  "STOREDQUERY_ID">
> 
> No such stored query:
> http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet
> 
> 
> 
>
> So I tried with CreateStoredQuery to catch some errors on Geoserver, but
> that one was the least expected.
>
> Best regards
> Davor
>
> pon, 29. lis 2018. u 19:47 Davor Racic  napisao je:
>
>> Hi Andrea,
>>
>> I tried with that few minutes after posting:
>>
>> > xmlns="http://www.opengis.net/wfs/2.0;
>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>> xmlns:gml="http://www.opengis.net/gml/3.2;
>> xmlns:fes="http://www.opengis.net/fes/2.0;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
>> xmlns:xlink="http://www.w3.org/1999/xlink;
>> xmlns:ows="http://www.opengis.net/ows/1.1;
>> xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;
>> xsi:schemaLocation="http://www.opengis.net/wfs/2.0
>> http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2
>> http://schemas.opengis.net/gml/3.2.1/gml.xsd;>
>>
>> But with no luck...
>>
>> pon, 29. lis 2018. u 18:59 Andrea Aime 
>> napisao je:
>>
>>> Hi,
>>> I don't see a namespace declaration for gn in the XML... a
>>> xmlns:gn="..." one I mean, at the top of the request.
>>> I don't know if that's causing the error, but it might be
>>>
>>> Cheers
>>> Andrea
>>>
>>>
>>> On Mon, Oct 29, 2018 at 6:43 PM dracic  wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I'm stuck at creating stored query via CreateStoredQuery request. So
>>>> the XML
>>>> of a stored query definition is:
>>>>
>>>>  >>> xmlns="http://www.opengis.net/wfs/2.0;
>>>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>>>> xmlns:gml="http://www.opengis.net/gml/3.2;
>>>> xmlns:fes="http://www.opengis.net/fes/2.0;
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
>>>> xmlns:xlink="http://www.w3.org/1999/xlink;
>>>> xmlns:ows="http://www.opengis.net/ows/1.1;
>>>> xsi:schemaLocation="http://www.open

Re: [Geoserver-users] WFS 2.0.0 stored query return feature type error

2018-10-29 Thread Davor Racic
Just an explanation where I started. I created the query definition
manually to datadir/wfs/query, and eventually succeeded with that:

http://www.w3.org/2001/XMLSchema;
xmlns:fes="http://www.opengis.net/fes/2.0;
xmlns:wfs="http://www.opengis.net/wfs/2.0;
xmlns:gml="http://www.opengis.net/gml/3.2;
xmlns:ows="http://www.opengis.net/ows/1.1;
xmlns:xlink="http://www.w3.org/1999/xlink;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
http://www.opengis.net/wfs/2.0
http://myserver:80/geoserver/schemas/wfs/2.0/wfs.xsd;>

Get feature by identifier



http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;>
INSPIRE GetSpatialDataSet

INSPIRE GetSpatialDataSet query










inspireID/base:Identifier/base:namespace



${DataSetIdNameSpace}
/

${DataSetIdNameSpace}

${DataSetIdNameSpace}
/




inspireID/base:Identifier/base:namespace



${DataSetIdCode}
/

${DataSetIdCode}

${DataSetIdCode}
/










But when I try to use it with the id "
http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet;, I get:

http://www.w3.org/2001/XMLSchema;
xmlns:ows="http://www.opengis.net/ows/1.1;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; version="2.0.0"
xsi:schemaLocation="http://www.opengis.net/ows/1.1
http://myserver:80/geoserver/schemas/ows/1.1.0/owsAll.xsd;>


No such stored query:
http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet




So I tried with CreateStoredQuery to catch some errors on Geoserver, but
that one was the least expected.

Best regards
Davor

pon, 29. lis 2018. u 19:47 Davor Racic  napisao je:

> Hi Andrea,
>
> I tried with that few minutes after posting:
>
>  xmlns="http://www.opengis.net/wfs/2.0;
> xmlns:wfs="http://www.opengis.net/wfs/2.0;
> xmlns:gml="http://www.opengis.net/gml/3.2;
> xmlns:fes="http://www.opengis.net/fes/2.0;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
> xmlns:xlink="http://www.w3.org/1999/xlink;
> xmlns:ows="http://www.opengis.net/ows/1.1;
> xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;
> xsi:schemaLocation="http://www.opengis.net/wfs/2.0
> http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2
> http://schemas.opengis.net/gml/3.2.1/gml.xsd;>
>
> But with no luck...
>
> pon, 29. lis 2018. u 18:59 Andrea Aime 
> napisao je:
>
>> Hi,
>> I don't see a namespace declaration for gn in the XML... a xmlns:gn="..."
>> one I mean, at the top of the request.
>> I don't know if that's causing the error, but it might be
>>
>> Cheers
>> Andrea
>>
>>
>> On Mon, Oct 29, 2018 at 6:43 PM dracic  wrote:
>>
>>> Hi guys,
>>>
>>> I'm stuck at creating stored query via CreateStoredQuery request. So the
>>> XML
>>> of a stored query definition is:
>>>
>>>  >> xmlns="http://www.opengis.net/wfs/2.0;
>>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>>> xmlns:gml="http://www.opengis.net/gml/3.2;
>>> xmlns:fes="http://www.opengis.net/fes/2.0;
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
>>> xmlns:xlink="http://www.w3.org/1999/xlink;
>>> xmlns:ows="http://www.opengis.net/ows/1.1;
>>> xsi:schemaLocation="http://www.opengis.net/wfs/2.0
>>> http://schemas.opengis.net/wfs/2.0/wfs.xsd
>>> http://www.opengis.net/gml/3.2
>>> http://schemas.opengis.net/gml/3.2.1/gml.xsd;>
>>> >> id="http://inspire.ec.europa.eu/operation/download/GetSpatialDataset/;>
>>> INSPIRE GetSpatialDataSet
>>> INSPIRE predefined Spatial Data Set
>>> query
>>> 
>>> 
>>> 
>>> 
>>> >> isPrivate="false"
>>> language="urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression">
>>> >> wfs:srsName="${CRS}">
>>> 
>>> 
>>> 
>>>
>>>
>>> inspireID/base:Identifier/base:namespace
>>> 
>>> 
>>>
>>> ${DataSetIdNameSpace}
>>> /
>>> 
>>>
>>> ${DataSetIdNameSpace}
>>> 
>>>
>>> ${DataSetIdNameSpace}
>>> /
>>>  

Re: [Geoserver-users] WFS 2.0.0 stored query return feature type error

2018-10-29 Thread Davor Racic
Hi Andrea,

I tried with that few minutes after posting:

http://www.opengis.net/wfs/2.0;
xmlns:wfs="http://www.opengis.net/wfs/2.0;
xmlns:gml="http://www.opengis.net/gml/3.2;
xmlns:fes="http://www.opengis.net/fes/2.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd="http://www.w3.org/2001/XMLSchema;
xmlns:xlink="http://www.w3.org/1999/xlink;
xmlns:ows="http://www.opengis.net/ows/1.1;
xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;
xsi:schemaLocation="http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2
http://schemas.opengis.net/gml/3.2.1/gml.xsd;>

But with no luck...

pon, 29. lis 2018. u 18:59 Andrea Aime 
napisao je:

> Hi,
> I don't see a namespace declaration for gn in the XML... a xmlns:gn="..."
> one I mean, at the top of the request.
> I don't know if that's causing the error, but it might be
>
> Cheers
> Andrea
>
>
> On Mon, Oct 29, 2018 at 6:43 PM dracic  wrote:
>
>> Hi guys,
>>
>> I'm stuck at creating stored query via CreateStoredQuery request. So the
>> XML
>> of a stored query definition is:
>>
>>  > xmlns="http://www.opengis.net/wfs/2.0;
>> xmlns:wfs="http://www.opengis.net/wfs/2.0;
>> xmlns:gml="http://www.opengis.net/gml/3.2;
>> xmlns:fes="http://www.opengis.net/fes/2.0;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema;
>> xmlns:xlink="http://www.w3.org/1999/xlink;
>> xmlns:ows="http://www.opengis.net/ows/1.1;
>> xsi:schemaLocation="http://www.opengis.net/wfs/2.0
>> http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2
>> http://schemas.opengis.net/gml/3.2.1/gml.xsd;>
>> > id="http://inspire.ec.europa.eu/operation/download/GetSpatialDataset/;>
>> INSPIRE GetSpatialDataSet
>> INSPIRE predefined Spatial Data Set
>> query
>> 
>> 
>> 
>> 
>> > isPrivate="false"
>> language="urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression">
>> 
>> 
>> 
>> 
>>
>>
>> inspireID/base:Identifier/base:namespace
>> 
>> 
>>
>> ${DataSetIdNameSpace}
>> /
>> 
>>
>> ${DataSetIdNameSpace}
>> 
>>
>> ${DataSetIdNameSpace}
>> /
>> 
>> 
>> 
>> 
>>
>>
>> inspireID/base:Identifier/base:namespace
>> 
>> 
>>
>> ${DataSetIdCode}
>> /
>> 
>>
>> ${DataSetIdCode}
>> 
>>
>> ${DataSetIdCode}
>> /
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Geoserver 2.13 latest returns an error:
>>
>> > locator="CreateStoredQuery">
>>   StoredQuery declares return feature type(s) not not
>> referenced in query definition: gn:NamedPlace
>> StoredQuery declares return feature type(s) not not referenced in query
>> definition: gn:NamedPlace
>>   
>> 
>>
>> I thought wfs:typeNames="gn:NamedPlace" would do exactly what the error
>> complains about. Can anyone help me with this issue?
>>
>> Best regards
>> Davor
>>
>>
>>
>>
>> --
>> Sent from:
>> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>>
>>
>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
> --
>
> Regards, Andrea Aime == GeoServer Professional Services from the experts!
> Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
> @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
> Massarosa
> 
> (LU) phone: +39 0584 962313 <+39%200584%20962313> fax: +39 0584 1660272
> <+39%200584%20166%200272> mob: +39 339 8844549 <+39%20339%20884%204549>
> http://www.geo-solutions.it http://twitter.com/geosolutions_it
> --- *Con riferimento
> alla normativa sul trattamento 

Re: [Geoserver-users] Geoserver ArcSDE

2018-05-30 Thread Davor Racic
ArcSDE 10.3 doesn't exist. You can only connect directly to enterprise
geodatabase, so I'm not sure that ArcSDE plugin which used ArcSDE
middleware or direct ArcSDE database connection is going to work with
Enterprise Geodatabases. They had upgrade database tool:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700q700


so things obviously have changed in db structure.

The proper way to use Geoserver with newer versions of ArcGIS Enterprise
Geodatabases (if you have access to SDE) to use PostgreSQL with PostGIS,
and also set GEOMETRY_STORAGE to PG_GEOMETRY in sde_dbtune table, and the
use PostGIS data store on Geoserver side.

Some useful links:

https://community.esri.com/groups/technical-support/blog/2015/02/11/where-is-the-install-for-arcsde-10-3

http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/data-types-postgresql.htm

https://tereshenkov.wordpress.com/2016/08/20/esri-enterprise-geodatabase-and-postgis-database/


Best regards
Davor

sri, 30. svi 2018. u 11:39  napisao je:

> The only thing I can see is that maybe you did not math the version of the
> plugin with the version of geoserver you have installed – you didn’t really
> describe those. Also, rather than getting jars from some random place on
> the internet, ensure you are using the full install, as described in
> http://docs.geoserver.org/latest/en/user/data/database/arcsde.html#installing-the-arcsde-extension
>
>
>
> Brad
>
>
>
> *From:* Idriss ELACHABI 
> http://docs.geoserver.org/latest/en/user/data/database/arcsde.html#installing-the-arcsde-extension
> *Sent:* Wednesday, 30 May 2018 11:12 AM
> *To:* geoserver-users@lists.sourceforge.net
> *Subject:* [Geoserver-users] Geoserver ArcSDE
>
>
>
> Hello!
>
>
>
> I want to connect my local instance of geoserver to ArcSDE ( Postgresql
> 9.3 with ArcSDE 10.3).
>
>
>
> I followed the description in readme.text (in the extension ArcSDE folder)
>
>
>
> I serched for the files : jsde_sdk.jar , jpe_sdk.jar, icu4j_3_2.jar in the
> internet and I copied them to [container]/webapps/geoserver/WEB-INF/lib/
>
>
>
> Unfortunately when I tried this extension, I got this error :
>
>
>
> rg.apache.wicket.WicketRuntimeException: Method onRequest of interface
> org.apache.wicket.behavior.IBehaviorListener targeted at
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1@10c7eee on
> component [AjaxSubmitLink [Component id = save]] threw an exception
>
>
>
>
>
> Any help please!
>
> --
>
> *IDRISS ELACHABI*
>
> *Ingénieur d'état en Géoinformation *
>
> *Mobile : +212 (0) 660 56 93 69*
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver upgrade 2.11 -> 2.12 integrated gwc nota vailable

2018-02-15 Thread Davor Racic
Hi everyone.

After upgrade 2.11.x -> 2.12.x, geoserver page redirects me to /gwc page
instead of /web, and when I try to go to "Seed->truncate" in Geoserver GUI
i'm getting HTTP 404:

No mapping found for HTTP request with URI
[/geoserver/gwc/rest/seed/workspacename:layername] in DispatcherServlet
with name 'dispatcher'

Geoserver is behind NGINX proxy (proxy base url is ok, and I also tried
with proxy base url setting in web.xml), but the same error is present when
I use Geoserver directly (Tomcat 8080). Everything worked fine on 2.11. On
the other hand, tiled layers are working as they should. Can any
configuration setting cause this kind of behavior?

Best regards
Davor
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver 2.11 + Geofence 3.2 - upgrade to Geoserver 2.12

2018-01-06 Thread Davor Racic
Does anyone have experience with upgrading Geoserver 2.11 + Geofence 3.2 to
Geoserver 2.12. It's not fully clear from docs whether I need Geofence 3.3,
and is it possible to upgrade old db.

I tried with Geofence 3.2 branch, but getting errors in geoserver log:

2018-01-03 20:47:48,854 ERROR [geoserver.ows] -
java.lang.NoClassDefFoundError: Could not initialize class
org.geoserver.geofence.services.dto.AccessInfo
   at
org.geoserver.geofence.GeofenceAccessManager.getAccessLimits(GeofenceAccessManager.java:306)
   at
org.geoserver.geofence.GeofenceAccessManager.getAccessLimits(GeofenceAccessManager.java:291)


On the other hand, when I try to use 3.3, i'm getting in geofence log:

20:58:25,110 ERROR ContextLoader:351 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'startupService' defined in class path resource
[applicationContext-S
ervice.xml]: Invocation of init method failed; nested exception is
javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException: Can
not open connection
...
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Unsupported database file version or invalid
file header in
file /var/lib/geoserver/data/geofence_db/geofence.h2.db [90048-118])

I suppose I wil have to migrate all users, groups and rules through REST?

Best regards
Davor
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver WFS - app-schema plugin - java.lang.StackOverflowErrors

2017-12-20 Thread Davor Racic
Hi Ben & Nuno, thank you for your suggestions.

things seem a little bit clearer. We are testing INSPIRE download service,
not an application, so we assume that someone can and should be able to
download/transfer whole set of data (cca 13 features). I suppose some
sort of pagination should be done by Geoserver itself in background when
data PG store is configured with some value set on "fetch size", and
suppose that this XLST post-processing is done page by page after each
fetch? In our case, that property was missing in app-schema store
definition. We are testing this at the moment.

Best regards
Davor

sri, 20. pro 2017. u 00:12 Ben Caradoc-Davies <b...@transient.nz> napisao je:

> Davor,
>
> GeoServer uses XSLT to post-process WFS responses (and halve the number
> of database queries). Do you have the other end of the stack trace so we
> can see the origin and confirm this as the cause? Try *reducing* your
> stack size to make the trace shorter.
>
> It looks like this failure might be caused by the Xalan XSLT embedded in
> the JVM standard library using Quicksort to sort an array of integers.
> Quicksort is a terrible algorithm because its worst-case performance is
> O(n**2):
> https://en.wikipedia.org/wiki/Quicksort
>
> Some Quicksort implementations can exhibit this behaviour when the input
> is already sorted, already reverse-sorted, or all inputs are the same
> (first two criteria combined). Recursive implementations will then use
> O(n**2) time and stack.
>
> Heapsort is often preferred because its worst-case performance is O(n
> log n):
> https://en.wikipedia.org/wiki/Heapsort
>
> Kind regards,
> Ben.
>
> On 20/12/17 03:41, Davor Racic wrote:
> > I'm using Geoserver 2.11.dev and app-schema plugin. WFS max request limit
> > is set to 1mil features. When serving large WFS 2.0 requests (over 10
> > fetures) from app-schema store (PostGIS backend) requests fail with
> error:
> >
> > 19 pro 09:49:48 ERROR [geoserver.ows] -
> > java.lang.StackOverflowError
> > at
> >
> com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:162)
> >
> > at
> >
> com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)
> >
> > at
> >
> com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)
> >
> > at
> >
> com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)
> > ...
> >
> > Serving smaller set of features (<10) doesn't cause any error. When I
> > set maximum thread stack size for JAVA in JAVA_OPTS to -Xss4096K, errors
> > disappear, but I'm still wondering why this setting is necessary. Any
> idea?
> > Can something like reprojection cause this?
> >
> > Best regards
> > Davor
> >
> >
> >
> >
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >
> >
> >
> > ___
> > Geoserver-users mailing list
> >
> > Please make sure you read the following two resources before posting to
> this list:
> > - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> > - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
> >
> > If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
> >
> >
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>
> --
> Ben Caradoc-Davies <b...@transient.nz>
> Director
> Transient Software Limited <https://transient.nz/>
> New Zealand
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver WFS - app-schema plugin - java.lang.StackOverflowErrors

2017-12-19 Thread Davor Racic
I'm using Geoserver 2.11.dev and app-schema plugin. WFS max request limit
is set to 1mil features. When serving large WFS 2.0 requests (over 10
fetures) from app-schema store (PostGIS backend) requests fail with error:

19 pro 09:49:48 ERROR [geoserver.ows] -
java.lang.StackOverflowError
   at
com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:162)

   at
com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)

   at
com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)

   at
com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.quicksort(IntegerArray.java:163)
   ...

Serving smaller set of features (<10) doesn't cause any error. When I
set maximum thread stack size for JAVA in JAVA_OPTS to -Xss4096K, errors
disappear, but I'm still wondering why this setting is necessary. Any idea?
Can something like reprojection cause this?

Best regards
Davor
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users