Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-10-05 Thread Kevin Smith
You might want to try GeoServer 2.12 (Either 2.12-RC1 or wait a few days
for 2.12.0)  The way GeoServer applies security to GWC has changed
significantly in this release.  I can't promise that will fix your
problem but it's worth looking at.  Even if it's last minute, more
testing of the RC before release is always welcome.


On 2017-09-29 02:05 AM, steve.omondi wrote:
> Hi guys,
>
> I have a problem with Integrated GeowebCache.
> Seeding Layers fails and here is the stack trace.
>
> I have tried Vector and Raster layers a like. If it's important I have
> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>
> I have tried to have the raster style from the defaul Global workspace to
> same workspace as Layer and nothing works.
>
> Opening the Layer Preview through the GWC and WMS endpoint and zooming
> around actually creates the tiles.
> Seeding fails.
>
>
>
> Prior to this Exception I have the following in the  logs.
>
> 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
> *user_projections/epsg_operations.properties was not found*, using the
> default set of coordinate operation overrides (normally empty)
> 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
> "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.11.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
> as EPSG factory.
>
> and 
>
> 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] - Failure
> in the primary factory: No code "EPSG:900913" from authority "European
> Petroleum Survey Group" found for object of type "IdentifiedObject". Now
> trying the fallback factory...
> 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] - Failure
> in the primary factory: No code "EPSG:900913" from authority "European
> Petroleum Survey Group" found for object of type
> "CoordinateReferenceSystem". Now trying the fallback factory...
>
>
> This issue is killing me. Kindly assist.
>
>
>
>
>
> -
> Kind Regards,
>
> Steve Omondi
> GIS & DB Developer/DBA
> Ramani Online, Ramani Geosystems
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
> --
> 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
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users

-- 
Kevin Michael Smith





signature.asc
Description: OpenPGP digital signature
--
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

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


[Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread steve.omondi
Hi guys,

I have a problem with Integrated GeowebCache.
Seeding Layers fails and here is the stack trace.

I have tried Vector and Raster layers a like. If it's important I have
changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.

I have tried to have the raster style from the defaul Global workspace to
same workspace as Layer and nothing works.

Opening the Layer Preview through the GWC and WMS endpoint and zooming
around actually creates the tiles.
Seeding fails.

--*Stack
trace---GEOTOOLS.DEVELOPER.LOGGING.LEVE*L---


Prior to this Exception I have the following in the  logs.



and 




This issue is killing me. Kindly assist.





-
Kind Regards,

Steve Omondi
GIS & DB Developer/DBA
Ramani Online, Ramani Geosystems
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
This is very useful information @Andrea and Darell. I've struggled with
this issues for sometime now. Actually my production Geoserver currently
generates tile with user traffic.

Of course we'll look into sponsoring Geoserver development at some stage of
our work to support the work your team is doing which is great.
Thank you guys very much.

Kind regards,
Steve Omondi

On Fri, Sep 29, 2017 at 1:56 PM, Andrea Aime 
wrote:

> On Fri, Sep 29, 2017 at 12:12 PM, Steve Omondi 
> wrote:
>
>> Hi Darell,
>>
>> So on your pointer I removed all the rules, leaving *.r.* to * users and
>> *.w.* to * users and the seeding worked.
>>
>> Now this is obviously not a realistic scenario since I'll have to have a
>> lot of rules. How do I go abpout this. having rules and still being able to
>> Seed Tile Layers?
>>
>
> I believe you'll have to sponsor some development (or do it yourself and
> donate the changes), as far as I know there
> is no way to configure security for the seeding threads, and they have
> always run with no authentication.
> I believe all the existing setups with security are either let the user
> traffic generate the tiles, or pre-seed the
> tiles on some other machine that does not have security configured, and
> then transfer the tiles.
>
> Cheers
> Andrea
>
> ==
> 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
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
--
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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Darell van der Voort
Hi Steve,

Are the layers protected? Do you use the GeoFence plugin?

Kind regards,
Darell

On Fri, Sep 29, 2017 at 11:05 AM, steve.omondi 
wrote:

> Hi guys,
>
> I have a problem with Integrated GeowebCache.
> Seeding Layers fails and here is the stack trace.
>
> I have tried Vector and Raster layers a like. If it's important I have
> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>
> I have tried to have the raster style from the defaul Global workspace to
> same workspace as Layer and nothing works.
>
> Opening the Layer Preview through the GWC and WMS endpoint and zooming
> around actually creates the tiles.
> Seeding fails.
>
>
>
> Prior to this Exception I have the following in the  logs.
>
> 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
> *user_projections/epsg_operations.properties was not found*, using the
> default set of coordinate operation overrides (normally empty)
> 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
> "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-
> 2.11.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
> as EPSG factory.
>
> and
>
> 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] - Failure
> in the primary factory: No code "EPSG:900913" from authority "European
> Petroleum Survey Group" found for object of type "IdentifiedObject". Now
> trying the fallback factory...
> 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] - Failure
> in the primary factory: No code "EPSG:900913" from authority "European
> Petroleum Survey Group" found for object of type
> "CoordinateReferenceSystem". Now trying the fallback factory...
>
>
> This issue is killing me. Kindly assist.
>
>
>
>
>
> -
> Kind Regards,
>
> Steve Omondi
> GIS & DB Developer/DBA
> Ramani Online, Ramani Geosystems
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-
> f3786390.html
>
> 
> --
> 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
>
> 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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Andrea Aime
On Fri, Sep 29, 2017 at 12:12 PM, Steve Omondi 
wrote:

> Hi Darell,
>
> So on your pointer I removed all the rules, leaving *.r.* to * users and
> *.w.* to * users and the seeding worked.
>
> Now this is obviously not a realistic scenario since I'll have to have a
> lot of rules. How do I go abpout this. having rules and still being able to
> Seed Tile Layers?
>

I believe you'll have to sponsor some development (or do it yourself and
donate the changes), as far as I know there
is no way to configure security for the seeding threads, and they have
always run with no authentication.
I believe all the existing setups with security are either let the user
traffic generate the tiles, or pre-seed the
tiles on some other machine that does not have security configured, and
then transfer the tiles.

Cheers
Andrea

==
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
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
--
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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
No. I don't use Geofence module. However, I have some Data security rules
yes using the Geoserver Data Securty Subsystem.

I'm seeding while logged in with the admin user.

Kind regards,
Steve Omondi

On Fri, Sep 29, 2017 at 1:00 PM, Darell van der Voort 
wrote:

> Hi Steve,
>
> Are the layers protected? Do you use the GeoFence plugin?
>
> Kind regards,
> Darell
>
> On Fri, Sep 29, 2017 at 11:05 AM, steve.omondi 
> wrote:
>
>> Hi guys,
>>
>> I have a problem with Integrated GeowebCache.
>> Seeding Layers fails and here is the stack trace.
>>
>> I have tried Vector and Raster layers a like. If it's important I have
>> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>>
>> I have tried to have the raster style from the defaul Global workspace to
>> same workspace as Layer and nothing works.
>>
>> Opening the Layer Preview through the GWC and WMS endpoint and zooming
>> around actually creates the tiles.
>> Seeding fails.
>>
>>
>>
>> Prior to this Exception I have the following in the  logs.
>>
>> 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
>> *user_projections/epsg_operations.properties was not found*, using the
>> default set of coordinate operation overrides (normally empty)
>> 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
>> "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.
>> 11.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
>> as EPSG factory.
>>
>> and
>>
>> 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] -
>> Failure
>> in the primary factory: No code "EPSG:900913" from authority "European
>> Petroleum Survey Group" found for object of type "IdentifiedObject". Now
>> trying the fallback factory...
>> 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] -
>> Failure
>> in the primary factory: No code "EPSG:900913" from authority "European
>> Petroleum Survey Group" found for object of type
>> "CoordinateReferenceSystem". Now trying the fallback factory...
>>
>>
>> This issue is killing me. Kindly assist.
>>
>>
>>
>>
>>
>> -
>> Kind Regards,
>>
>> Steve Omondi
>> GIS & DB Developer/DBA
>> Ramani Online, Ramani Geosystems
>> --
>> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.
>> html
>>
>> 
>> --
>> 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
>>
>> 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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
Hi Darell, thanks a lot for this. I get it.

*I can recommend the Geofence plug-in as this gives you much more control
> over data security.*


I have tried working with Geofence but it has a great conflict with Monitor
Extension due to difference in Hibernate Library used by each. I needed
Monitor Extension more than Geofence.

Let me try your solution on GWC and I'll let you know when it works perfect.

Kind regards,
Steve Omondi

On Fri, Sep 29, 2017 at 1:17 PM, Darell van der Voort 
wrote:

> Ok. I faced the exact same problem, however I am using Geofence on top of
> the Geoserver security system. So maybe my solution does not work, but this
> is how I fixed it;
>
> First make sure that there are separate read and write data rules for the
> workspace in data security:
>
> workspace.*.r
> workspace.*w
>
> and make sure the admin has acces to these rules.
>
> Next set a Geofence data rule that allows every users to every layer of
> that workspace. This is a temporarily rule, which is only needed for
> seeding. If this rule is not applied, seeding does not work as the layer is
> still protected. After seeding you can remove the rule and the layer will
> be protected. The internal data rules should remain set.
>
> Hope this helps. I can recommend the Geofence plug-in as this gives you
> much more control over data security.
>
> Kind regards,
> Darell
>
> On Fri, Sep 29, 2017 at 12:02 PM, Steve Omondi 
> wrote:
>
>> No. I don't use Geofence module. However, I have some Data security rules
>> yes using the Geoserver Data Securty Subsystem.
>>
>> I'm seeding while logged in with the admin user.
>>
>> Kind regards,
>> Steve Omondi
>>
>> On Fri, Sep 29, 2017 at 1:00 PM, Darell van der Voort <
>> darell...@gmail.com> wrote:
>>
>>> Hi Steve,
>>>
>>> Are the layers protected? Do you use the GeoFence plugin?
>>>
>>> Kind regards,
>>> Darell
>>>
>>> On Fri, Sep 29, 2017 at 11:05 AM, steve.omondi <
>>> steve.omo...@ramani.co.ke> wrote:
>>>
 Hi guys,

 I have a problem with Integrated GeowebCache.
 Seeding Layers fails and here is the stack trace.

 I have tried Vector and Raster layers a like. If it's important I have
 changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.

 I have tried to have the raster style from the defaul Global workspace
 to
 same workspace as Layer and nothing works.

 Opening the Layer Preview through the GWC and WMS endpoint and zooming
 around actually creates the tiles.
 Seeding fails.



 Prior to this Exception I have the following in the  logs.

 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
 *user_projections/epsg_operations.properties was not found*, using the
 default set of coordinate operation overrides (normally empty)
 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
 "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.1
 1.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
 as EPSG factory.

 and

 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] -
 Failure
 in the primary factory: No code "EPSG:900913" from authority "European
 Petroleum Survey Group" found for object of type "IdentifiedObject". Now
 trying the fallback factory...
 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] -
 Failure
 in the primary factory: No code "EPSG:900913" from authority "European
 Petroleum Survey Group" found for object of type
 "CoordinateReferenceSystem". Now trying the fallback factory...


 This issue is killing me. Kindly assist.





 -
 Kind Regards,

 Steve Omondi
 GIS & DB Developer/DBA
 Ramani Online, Ramani Geosystems
 --
 Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.
 html

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

 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 follow

Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Darell van der Voort
Ok. I faced the exact same problem, however I am using Geofence on top of
the Geoserver security system. So maybe my solution does not work, but this
is how I fixed it;

First make sure that there are separate read and write data rules for the
workspace in data security:

workspace.*.r
workspace.*w

and make sure the admin has acces to these rules.

Next set a Geofence data rule that allows every users to every layer of
that workspace. This is a temporarily rule, which is only needed for
seeding. If this rule is not applied, seeding does not work as the layer is
still protected. After seeding you can remove the rule and the layer will
be protected. The internal data rules should remain set.

Hope this helps. I can recommend the Geofence plug-in as this gives you
much more control over data security.

Kind regards,
Darell

On Fri, Sep 29, 2017 at 12:02 PM, Steve Omondi 
wrote:

> No. I don't use Geofence module. However, I have some Data security rules
> yes using the Geoserver Data Securty Subsystem.
>
> I'm seeding while logged in with the admin user.
>
> Kind regards,
> Steve Omondi
>
> On Fri, Sep 29, 2017 at 1:00 PM, Darell van der Voort  > wrote:
>
>> Hi Steve,
>>
>> Are the layers protected? Do you use the GeoFence plugin?
>>
>> Kind regards,
>> Darell
>>
>> On Fri, Sep 29, 2017 at 11:05 AM, steve.omondi > > wrote:
>>
>>> Hi guys,
>>>
>>> I have a problem with Integrated GeowebCache.
>>> Seeding Layers fails and here is the stack trace.
>>>
>>> I have tried Vector and Raster layers a like. If it's important I have
>>> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>>>
>>> I have tried to have the raster style from the defaul Global workspace to
>>> same workspace as Layer and nothing works.
>>>
>>> Opening the Layer Preview through the GWC and WMS endpoint and zooming
>>> around actually creates the tiles.
>>> Seeding fails.
>>>
>>>
>>>
>>> Prior to this Exception I have the following in the  logs.
>>>
>>> 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
>>> *user_projections/epsg_operations.properties was not found*, using the
>>> default set of coordinate operation overrides (normally empty)
>>> 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
>>> "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.1
>>> 1.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
>>> as EPSG factory.
>>>
>>> and
>>>
>>> 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] -
>>> Failure
>>> in the primary factory: No code "EPSG:900913" from authority "European
>>> Petroleum Survey Group" found for object of type "IdentifiedObject". Now
>>> trying the fallback factory...
>>> 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] -
>>> Failure
>>> in the primary factory: No code "EPSG:900913" from authority "European
>>> Petroleum Survey Group" found for object of type
>>> "CoordinateReferenceSystem". Now trying the fallback factory...
>>>
>>>
>>> This issue is killing me. Kindly assist.
>>>
>>>
>>>
>>>
>>>
>>> -
>>> Kind Regards,
>>>
>>> Steve Omondi
>>> GIS & DB Developer/DBA
>>> Ramani Online, Ramani Geosystems
>>> --
>>> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.
>>> html
>>>
>>> 
>>> --
>>> 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
>>>
>>> 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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
Hi Darell,

So on your pointer I removed all the rules, leaving *.r.* to * users and
*.w.* to * users and the seeding worked.

Now this is obviously not a realistic scenario since I'll have to have a
lot of rules. How do I go abpout this. having rules and still being able to
Seed Tile Layers?

Kind regards,
Steve Omondi

On Fri, Sep 29, 2017 at 1:02 PM, Steve Omondi 
wrote:

> No. I don't use Geofence module. However, I have some Data security rules
> yes using the Geoserver Data Securty Subsystem.
>
> I'm seeding while logged in with the admin user.
>
> Kind regards,
> Steve Omondi
>
> On Fri, Sep 29, 2017 at 1:00 PM, Darell van der Voort  > wrote:
>
>> Hi Steve,
>>
>> Are the layers protected? Do you use the GeoFence plugin?
>>
>> Kind regards,
>> Darell
>>
>> On Fri, Sep 29, 2017 at 11:05 AM, steve.omondi > > wrote:
>>
>>> Hi guys,
>>>
>>> I have a problem with Integrated GeowebCache.
>>> Seeding Layers fails and here is the stack trace.
>>>
>>> I have tried Vector and Raster layers a like. If it's important I have
>>> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>>>
>>> I have tried to have the raster style from the defaul Global workspace to
>>> same workspace as Layer and nothing works.
>>>
>>> Opening the Layer Preview through the GWC and WMS endpoint and zooming
>>> around actually creates the tiles.
>>> Seeding fails.
>>>
>>>
>>>
>>> Prior to this Exception I have the following in the  logs.
>>>
>>> 2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
>>> *user_projections/epsg_operations.properties was not found*, using the
>>> default set of coordinate operation overrides (normally empty)
>>> 2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
>>> "file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.1
>>> 1.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
>>> as EPSG factory.
>>>
>>> and
>>>
>>> 2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] -
>>> Failure
>>> in the primary factory: No code "EPSG:900913" from authority "European
>>> Petroleum Survey Group" found for object of type "IdentifiedObject". Now
>>> trying the fallback factory...
>>> 2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] -
>>> Failure
>>> in the primary factory: No code "EPSG:900913" from authority "European
>>> Petroleum Survey Group" found for object of type
>>> "CoordinateReferenceSystem". Now trying the fallback factory...
>>>
>>>
>>> This issue is killing me. Kindly assist.
>>>
>>>
>>>
>>>
>>>
>>> -
>>> Kind Regards,
>>>
>>> Steve Omondi
>>> GIS & DB Developer/DBA
>>> Ramani Online, Ramani Geosystems
>>> --
>>> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.
>>> html
>>>
>>> 
>>> --
>>> 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
>>>
>>> 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

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


Re: [Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
Sorry for the multiple messages. But I still need the help.


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Kind regards,
Steve Omondi

On Fri, Sep 29, 2017 at 12:08 PM, steve.omondi 
wrote:

> Hi guys,
>
> I have a problem with Integrated GeowebCache.
> Seeding Layers fails and here is the stack trace.
>
> I have tried Vector and Raster layers a like. If it's important I have
> changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.
>
> I have tried to have the raster style from the defaul Global workspace to
> same workspace as Layer and nothing works.
>
> Opening the Layer Preview through the GWC and WMS endpoint and zooming
> around actually creates the tiles.
> Seeding fails.
>
> --*Stack
> trace---GEOTOOLS.DEVELOPER.LOGGING.LEVE*L---
>
>
> Prior to this Exception I have the following in the  logs.
>
>
>
> and
>
>
>
>
> This issue is killing me. Kindly assist.
>
>
>
>
>
> -
> Kind Regards,
>
> Steve Omondi
> GIS & DB Developer/DBA
> Ramani Online, Ramani Geosystems
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-
> f3786390.html
>
> 
> --
> 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
>
> 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

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


[Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread Steve Omondi
Hi guys,

I have a problem with Integrated GeowebCache.
Seeding Layers fails and here is the stack trace.

I have tried Vector and Raster layers a like. If it's important I have
changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.

I have tried to have the raster style from the defaul Global workspace to
same workspace as Layer and nothing works.

Opening the Layer Preview through the GWC and WMS endpoint and zooming
around actually creates the tiles.
Seeding fails.

--*Stack trace---GEOTOOLS.DEVELOPER.LOGGING.LEVE*
L---

2017-09-29 11:41:37,257 ERROR [org.geoserver.ows] -
org.geoserver.platform.ServiceException: Could not find layer
raster_kenya:aerial
at 
org.geoserver.wms.map.GetMapKvpRequestReader.parseLayers(GetMapKvpRequestReader.java:1357)
at 
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:235)
at 
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:85)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1521)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:680)
at 
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:258)
at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1275)
at 
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:661)
at 
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:605)
at 
org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:800)
at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:141)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2017-09-29 11:41:37,258 ERROR [org.geowebcache.seed.MTSeeder] -
Problem communicating with GeoServer
org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer
at 
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:611)
at 
org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:800)
at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:141)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Expected:
RenderedImageMap, got null
at 
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:664)
at 
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:605)

END---


Prior to this Exception I have the following in the  logs.

2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
user_projections/epsg_operations.properties was not found,
using the default set of coordinate operation overrides (normally
empty)
2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] -
Using 
"file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.11.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
as EPSG factory.


and

2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] -
Failure in the primary factory: No code "EPSG:900913" from authority
"European Petroleum Survey Group" found for object of type
"IdentifiedObject". Now trying the fallback factory...
2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] -
Failure in the primary factory: No code "EPSG:900913" from authority
"European Petroleum Survey Group" found for object of type
"CoordinateReferenceSystem". Now trying the fallback factory...



This issue is killing me. Kindly assist.

Kind regards,
Steve Omondi


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

[Geoserver-users] GWC tiles Seeding fails with error: Problem communicating with GeoServer ServiceException Could not find layer

2017-09-29 Thread steve.omondi
Hi guys,

I have a problem with Integrated GeowebCache.
Seeding Layers fails and here is the stack trace.

I have tried Vector and Raster layers a like. If it's important I have
changed the GEOWEBCACHE_CACHE_DIR=/serverDir/ externalized.

I have tried to have the raster style from the defaul Global workspace to
same workspace as Layer and nothing works.

Opening the Layer Preview through the GWC and WMS endpoint and zooming
around actually creates the tiles.
Seeding fails.



Prior to this Exception I have the following in the  logs.

2017-09-29 11:41:09,759 INFO [org.geotools.referencing.factory] -
*user_projections/epsg_operations.properties was not found*, using the
default set of coordinate operation overrides (normally empty)
2017-09-29 11:41:09,760 INFO [org.geotools.referencing.factory] - Using
"file:/opt/tomcat2/webapps/geoserver/WEB-INF/lib/gs-main-2.11.2.jar!/org/vfny/geoserver/crs/epsg_operations.properties"
as EPSG factory.

and 

2017-09-29 11:41:37,242 DEBUG [org.geotools.referencing.factory] - Failure
in the primary factory: No code "EPSG:900913" from authority "European
Petroleum Survey Group" found for object of type "IdentifiedObject". Now
trying the fallback factory...
2017-09-29 11:41:37,249 DEBUG [org.geotools.referencing.factory] - Failure
in the primary factory: No code "EPSG:900913" from authority "European
Petroleum Survey Group" found for object of type
"CoordinateReferenceSystem". Now trying the fallback factory...


This issue is killing me. Kindly assist.





-
Kind Regards,

Steve Omondi
GIS & DB Developer/DBA
Ramani Online, Ramani Geosystems
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

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

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