[Geoserver-users] first steps on GWC

Hi,
I'm trying to get into the world of GeoWebCache. I tried /gwc/demo page and tried to reload layers without success. Here's the log:

2009-06-04 13:24:40,222 DEBUG [geoserver.filters] - filtering http://hyrynsalmi.digikartta.net/asemakaavat/gwc/rest/reload
2009-06-04 13:24:40,265 DEBUG [layer.TileLayerDispatcher] - Thread initLayers(), initializing
2009-06-04 13:24:40,266 ERROR [util.GetCapabilitiesConfiguration] - http://localhost:8080/geoserver/wms?request=GetCapabilities -> Connection refused
2009-06-04 13:24:40,266 ERROR [layer.TileLayerDispatcher] - Unable to connect to http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-06-04 13:24:40,266 ERROR [layer.TileLayerDispatcher] - Failed to add layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-06-04 13:24:40,266 INFO [layer.TileLayerDispatcher] - Adding layers from http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-06-04 13:24:40,266 ERROR [layer.TileLayerDispatcher] - Configuration http://localhost:8080/geoserver/wms?request=GetCapabilities contained no layers.
2009-06-04 13:24:40,266 INFO [util.XMLConfiguration] - Configuration directory set to: /home/tomcat/hyrynsalmi/asemakaavat/../resources
2009-06-04 13:24:40,266 INFO [util.XMLConfiguration] - Configuration directory set to: /home/tomcat/hyrynsalmi/asemakaavat/../resources
2009-06-04 13:24:40,266 ERROR [util.XMLConfiguration] - Configuration file cannot be read or does not exist!
2009-06-04 13:24:40,267 ERROR [layer.TileLayerDispatcher] - Error parsing file /home/tomcat/hyrynsalmi/asemakaavat/../resources/geowebcache.xml
2009-06-04 13:24:40,267 ERROR [layer.TileLayerDispatcher] - Failed to add layers from /home/tomcat/hyrynsalmi/asemakaavat/../resources
2009-06-04 13:24:40,267 INFO [layer.TileLayerDispatcher] - Adding layers from /home/tomcat/hyrynsalmi/asemakaavat/../resources
2009-06-04 13:24:40,267 ERROR [layer.TileLayerDispatcher] - Configuration /home/tomcat/hyrynsalmi/asemakaavat/../resources contained no layers.
2009-06-04 13:24:40,267 INFO [reload.ReloadRestlet] - Configuration reloaded. Read 0 layers from configuration resources.

Where is that localhost:8080 coming from? I know my server can't be reached from that; I am using virtual hosts in Tomcat and besides that, the port number is 80.

- mika -

Lehtonen, Mika wrote:

Hi,
I'm trying to get into the world of GeoWebCache. I tried /gwc/demo page and tried to reload layers without success. Here's the log:

<snip>
  Where is that localhost:8080 coming from? I know my server can't be reached from that; I am using virtual hosts in Tomcat and besides that, the port number is 80.

- mika -
  

See http://geoserver.org/display/GEOSDOC/5.+GWC+-+GeoWebCache

Please remember to say what version of GeoServer, GWC still changes quite a bit, so the answers may vary.

-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Oops,
I missed that tutorial. But it doesn't still work. Maybe because I have a little exotic setup on security side. I have switched off the Acegi and have LDAP based authentication on Tomcat's side. I noticed that the GS log included 'unable to connect' and 'failed to add layers' errors. I tried to define Geoserver to be in

http://EXAMPLE.COM:PORT/PATH/wms?request=GetCapabilities
or
http://user:password@anonymised.com:PORT/PATH/wms?request=GetCapabilities

No success. If I copy the link from the log and put it into browser, I get the GetCapabilities document.
GS version is 1.7.4, BTW.

- mika -

Arne Kepp kirjoitti:

Lehtonen, Mika wrote:

Hi,
I'm trying to get into the world of GeoWebCache. I tried /gwc/demo page and tried to reload layers without success. Here's the log:

<snip>
  Where is that localhost:8080 coming from? I know my server can't be reached from that; I am using virtual hosts in Tomcat and besides that, the port number is 80.

- mika -
  

See http://geoserver.org/display/GEOSDOC/5.+GWC+-+GeoWebCache

Please remember to say what version of GeoServer, GWC still changes quite a bit, so the answers may vary.

-Arne

Unfortunately the HTTP client included with Java does not support this URL scheme (with username and password). If you file a feature request ticket on geowebcache.org I'll see whether I can include support for it in the next release.

I don't recall whether we actually have a way of allowing bypass per ip. However, since you are using LDAP you are probably not using our wrappers anyway.

-Arne

Lehtonen, Mika wrote:

Oops,
I missed that tutorial. But it doesn't still work. Maybe because I have a little exotic setup on security side. I have switched off the Acegi and have LDAP based authentication on Tomcat's side. I noticed that the GS log included 'unable to connect' and 'failed to add layers' errors. I tried to define Geoserver to be in

http://EXAMPLE.COM:PORT/PATH/wms?request=GetCapabilities
or
http://user:password@anonymised.com:PORT/PATH/wms?request=GetCapabilities

No success. If I copy the link from the log and put it into browser, I get the GetCapabilities document.
GS version is 1.7.4, BTW.

- mika -

Arne Kepp kirjoitti:

Lehtonen, Mika wrote:

Hi,
I'm trying to get into the world of GeoWebCache. I tried /gwc/demo page and tried to reload layers without success. Here's the log:

<snip>
  Where is that localhost:8080 coming from? I know my server can't be reached from that; I am using virtual hosts in Tomcat and besides that, the port number is 80.

- mika -
  

See http://geoserver.org/display/GEOSDOC/5.+GWC+-+GeoWebCache

Please remember to say what version of GeoServer, GWC still changes quite a bit, so the answers may vary.

-Arne

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers