[OpenLayers-Users] GeoWebCache setup

GeoGEOrge awmlamp at yahoo.com
Mon Oct 24 11:40:00 EDT 2011


I am running geoserver 2.1.1 on Ubuntu 11.10 and would like to make use of
GeoWebCache to cache a layer with EPSG:2249 MA state plane projection. I
added a simple test geowebcache.xml to /data_dir/gwc and then geoserver
doesn't respond to requests anymore. the xml appears to be valid and
accepted.
Is anyone successfully using a geowebcache custom projection?

geoserver error log section:
2011-10-24 11:30:58,061 ERROR [context.ContextLoader] - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'wms-1_1_1-ServiceDescriptor' defined in URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/wms-2.1.1.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'wmsService2' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'wmsService2': FactoryBean threw exception on object creation;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'wmsServiceInterceptor_CachingWMS' defined in
URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/gwc-2.1.1.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'cachingWebMapService' while setting bean
property 'advice'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'cachingWebMapService' defined in URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/gwc-2.1.1.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'gwcFacade' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcFacade' defined in URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/gwc-2.1.1.jar!/geowebcache-geoserver-context.xml]:
Cannot resolve reference to bean 'gwcTLDispatcher' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcTLDispatcher' defined in URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/gwc-2.1.1.jar!/geowebcache-geoserver-context.xml]:
Cannot resolve reference to bean 'gwcXmlConfig' while setting constructor
argument with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcXmlConfig' defined in URL
[jar:file:/opt/geoserver-2.1.1/webapps/geoserver/WEB-INF/lib/gwc-2.1.1.jar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.geowebcache.config.XMLConfiguration]: Constructor threw
exception; nested exception is java.lang.NullPointerException


geowebcache.xml (with local geowebcache.xsd)

<?xml version="1.0" encoding="utf-8"?>
<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="geowebcache.xsd"
	xmlns:gwc="http://geowebcache.org/schema/1.2.2"
        elementFormDefault="qualified">

<version>1.2.2</version>
<backendTimeout>120</backendTimeout>

<gridSet>
<name>e4326</name>
<srs><number>4326</number></srs>
<extent>
  <coords>
    <double>-180.0</double>
    <double>-90.0</double>
    <double>180.0</double>
    <double>90.0</double>
  </coords>
</extent>
<tileHeight>256</tileHeight>
<tileWidth>256</tileWidth>
<levels>8</levels>
</gridSet>



<layers>
  <wmsLayers>
    <name>statesgwc</name>
    <mimeFormats>
      <string>image/png</string>
    </mimeFormats>
<gridSubset>
  <gridSetName>e4326</gridSetName>
</gridSubset>
    <wmsUrl>
      <string>http://localhost:8080/geoserver/wms</string>
    </wmsUrl>
    <wmsLayers>topp:states</wmsLayers>
  </wmsLayers>
</layers>

</gwcConfiguration>


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GeoWebCache-setup-tp6925459p6925459.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list