Hi Alessio,

I managed to add -Dgwc.context.suffix=gwc into the Jvm Options, and it did it!!

Thank you so much.

Greg
________________________________
De : VANDENSCHRICK, Grégoire <gvandenschrick@urban.brussels>
Envoyé : vendredi 18 novembre 2022 13:41
À : Alessio Fabiani <alessio.fabi...@geosolutionsgroup.com>
Cc : geoserver-users@lists.sourceforge.net 
<geoserver-users@lists.sourceforge.net>
Objet : Re: [Geoserver-users] geoserver 2.21.2 /gwc inaccessible with geofence 
server plugin installed

Hi,

I'll try this. But my testing environment is an old windows server 2012, in 
which Tomcat 8.5 is installed as a service. This was done a long time ago, and 
not by me, so I'll have to try and find how I can add this. Under the rest of 
our infrastructure, with linux services it's much more straigtforward...

Thanks already for the suggestion.

Just to try to understand: why is this gwc.context.suffix is not read from 
geofence.properties or geofence_server.properties?

Greg
________________________________
De : Alessio Fabiani <alessio.fabi...@geosolutionsgroup.com>
Envoyé : vendredi 18 novembre 2022 10:51
À : VANDENSCHRICK, Grégoire <gvandenschrick@urban.brussels>
Cc : Jody Garnett <jody.garn...@gmail.com>; 
geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net>
Objet : Re: [Geoserver-users] geoserver 2.21.2 /gwc inaccessible with geofence 
server plugin installed

Dear Grégoire,
please add the following option to your JMV OPTS

-Dgwc.context.suffix=gwc



On Fri, Nov 18, 2022 at 10:48 AM VANDENSCHRICK, Grégoire 
<gvandenschrick@urban.brussels> wrote:
A precision again:

even with only the geofence client plugin only does the /gwc becomes 
inaccessible.

Greg
________________________________
De : VANDENSCHRICK, Grégoire <gvandenschrick@urban.brussels>
Envoyé : vendredi 18 novembre 2022 09:25
À : Jody Garnett <jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>>
Cc : 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Objet : Re: [Geoserver-users] geoserver 2.21.2 /gwc inaccessible with geofence 
server plugin installed

I'm not sure I catch precisely what you mean and don(t know how to check this.

Global services are on I would say (I have the problem with the demo dataset 
coming with geoserver, I assume in this data directory, global services are on, 
right?);

One of my colleagues was in the process of recreating a data directory on 
geoserver 2.21.2 with all the extensions we need via REST (we port the data 
directory configuration from one geoserver version to the new stable one with a 
python script automating this). We were arrived at the step of creating the 
geowebcache definitions for the layers that require them, when we found out 
that geoserver/gwc was not available, hence we could not use its REST api to 
modify the geowebcached layers (choosing the proper projection, tiles format 
and so on).

So I went back the a clean geoserver 2.21.2 without our data (only the demo 
dataset) and tested out the availability simply of geoserver/gwc (via for 
instance the link in the Caching Defaults page of the Tile Caching menu in the 
GUI), that's how I found out the all the extensions I added did not hinder or 
modify that url, except the geofence server one.

Don't know what to do I fear...

Greg
________________________________
De : Jody Garnett <jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>>
Envoyé : vendredi 18 novembre 2022 06:22
À : VANDENSCHRICK, Grégoire <gvandenschrick@urban.brussels>
Cc : 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Objet : Re: [Geoserver-users] geoserver 2.21.2 /gwc inaccessible with geofence 
server plugin installed

There were some security fixes for GWC; and a fix so it so would still work if 
global services were off.

Chances are it is mapping to a virtual WMS endpoint for the layer now? Rather 
than a global service layer.

Do you think you can check?

You are the first person to report this - thanks for speaking up.
—
Jody

On Thu, Nov 17, 2022 at 5:37 AM VANDENSCHRICK, Grégoire 
<gvandenschrick@urban.brussels> wrote:
Hi,

sorry, double post.

All the best,

Greg
________________________________
De : VANDENSCHRICK, Grégoire <gvandenschrick@urban.brussels>
Envoyé : jeudi 17 novembre 2022 11:33
À : 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Objet : [Geoserver-users] geoserver 2.21.2 /gwc inaccessible with geofence 
server plugin installed

Hi,

I have some trouble trying to feed via rest a new version of geoserver 2.21.2.

Basically, I'm loosing localhost:8080/geoserver/gwc/ as soon as I add the 
geofence server plugin.

I tested side effects by testing geoserver 2.21.2 vanilla, with it own internal 
data data directory, and adding all the extensions I need, being precise on the 
proper version number.

I added incrementally and in this order the app schema, csw, inspire, printing, 
all of them do let me access geoserver/gwc.

But as soon as I add the geofence server plugin, this geoserver/gwc returns an 
HTTP 404.
I discovered it's still accessible, but under localhost:8080/geoserver.
This one usually redirects towards geoserver/web.

Adding a general rule 'allow everything to ADMIN' in geofence does not clear 
this.

I tried also something suggested on stackexchange 
(https://gis.stackexchange.com/questions/417999/geoserver-gwc-sending-404-when-geofence-is-activated),
 ie adding gwc.context.suffix=gwc in geofence-server.properties but it does not 
help either.

I tried also to deploy geoserver2.21.2 with the geofence server plugin only, 
and I get exactly the same issue, with or without the stackexchange suggestion.

Hence it does not seem to be a problem of some interactions with other 
extensions, but only an interference between geofence server plugin and gwc.

Does someone experience the same issue? Is there a known workaround?

All the very best,

Gregoire Vandenschrick, BruGIS (https://gis.urban.brussels/)
[https://cdn.sstatic.net/Sites/gis/Img/apple-touch-i...@2.png?v=54e3ab1edcf3]<https://gis.stackexchange.com/questions/417999/geoserver-gwc-sending-404-when-geofence-is-activated>
GeoServer GWC sending 404 when geofence is 
activated<https://gis.stackexchange.com/questions/417999/geoserver-gwc-sending-404-when-geofence-is-activated>
Stack Exchange network consists of 182 Q&A communities including Stack 
Overflow, the largest, most trusted online community for developers to learn, 
share their knowledge, and build their careers.. Visit Stack Exchange
gis.stackexchange.com<http://gis.stackexchange.com>


_______________________________________________
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<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
--
Jody Garnett
_______________________________________________
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<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--

Regards,

Alessio Fabiani

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  331 6233686


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail.
_______________________________________________
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

Reply via email to