I tried the steps below to get <arcgisLayer> to work as a geowebcache type in
GeoServer but am still getting the same error.  Who wants to do this for me
for $50 :)

1) Added gwc-arcgiscache-1.4-SNAPSHOT.jar to WEB-INF/lib in
F:\GeoServer-2.3.2

2) Updated applicationContext.xml in gwc-arcgiscache-1.4-SNAPSHOT.jar to
have an entry for the arcgiscache like all of the other beans.
<bean id="arcGisLayerConfigurationExtentionInterceptorEnabledCheck"
class="org.geoserver.gwc.config.GWCServiceEnablementInterceptor">
    <constructor-arg ref="gwcFacade" />
</bean>

3) Added geowebcache-arcgiscache-context.xml to gwc-2.3.2.jar in
F:\GeoServer-2.3.2
--edited geowebcache-arcgiscache-context.xml to match others XML file types:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC &quot;-//SPRING//DTD BEAN//EN&quot;
&quot;http://www.springframework.org/dtd/spring-beans.dtd&quot;>
<beans>
  <description>
   Bean configuration file for the gwc-arcgiscache module
  </description>

  <bean id="arcGisLayerConfigurationExtentionTarget"
class="org.geowebcache.arcgis.layer.ArcGISLayerXMLConfigurationProvider" />
</beans>

  <bean id="arcGisLayerConfigurationExtentionProxy"
class="org.springframework.aop.framework.ProxyFactoryBean">
    <property name="targetName">
      <value>arcGisLayerConfigurationExtentionTarget</value>
    </property>
    <property name="interceptorNames">
      <list>
          
          <value>arcGisLayerConfigurationExtentionInterceptor*</value>
      </list>
    </property>
  </bean>
  <alias name="arcGisLayerConfigurationExtentionProxy"
alias="arcGisLayerConfigurationExtention"/>
  
The error on startup is:
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'gwcTLDispatcher' defined in URL
[jar:file:/F:/geoserver-2.3.2
/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]:
Ins
tantiation of bean failed; nested exception is
org.springframework.beans.BeanIns
tantiationException: Could not instantiate bean class
[org.geowebcache.layer.Til
eLayerDispatcher]: Constructor threw exception; nested exception is
com.thoughtw
orks.xstream.converters.ConversionException: arcgisLayer : arcgisLayer
---- Debugging information ----
message             : arcgisLayer
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
n
cause-message       : arcgisLayer
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      :
com.thoughtworks.xstream.converters.collections.Collection
Converter
class[1]            : org.geowebcache.config.GeoWebCacheConfiguration
converter-type[1]   :
com.thoughtworks.xstream.converters.reflection.ReflectionC
onverter
version             : null
-------------------------------
        at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:288)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:294)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:225)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:291)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:193)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 40 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
insta
ntiate bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor
threw
 exception; nested exception is
com.thoughtworks.xstream.converters.ConversionEx
ception: arcgisLayer : arcgisLayer
---- Debugging information ----
message             : arcgisLayer
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
n
cause-message       : arcgisLayer
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      :
com.thoughtworks.xstream.converters.collections.Collection
Converter
class[1]            : org.geowebcache.config.GeoWebCacheConfiguration
converter-type[1]   :
com.thoughtworks.xstream.converters.reflection.ReflectionC
onverter
version             : null
-------------------------------
        at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:1
62)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:110)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:280)
        ... 49 more
Caused by: com.thoughtworks.xstream.converters.ConversionException:
arcgisLayer
: arcgisLayer
---- Debugging information ----
message             : arcgisLayer
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
n
cause-message       : arcgisLayer
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      :
com.thoughtworks.xstream.converters.collections.Collection
Converter
class[1]            : org.geowebcache.config.GeoWebCacheConfiguration
converter-type[1]   :
com.thoughtworks.xstream.converters.reflection.ReflectionC
onverter
version             : null
-------------------------------
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:79)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:66)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshallField(AbstractReflectionConverter.java:355)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.doUnmarshal(AbstractReflectionConverter.java:306)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshal(AbstractReflectionConverter.java:234)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:72)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:66)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:50)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:134)
        at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:32)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1030)
        at
org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfigur
ation.java:396)
        at
org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfigur
ation.java:380)
        at
org.geowebcache.config.XMLConfiguration.loadConfiguration(XMLConfigur
ation.java:371)
        at
org.geowebcache.config.XMLConfiguration.initialize(XMLConfiguration.j
ava:870)
        at
org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatc
her.java:189)
        at
org.geowebcache.layer.TileLayerDispatcher.initialize(TileLayerDispatc
her.java:164)
        at
org.geowebcache.layer.TileLayerDispatcher.reInit(TileLayerDispatcher.
java:118)
        at
org.geowebcache.layer.TileLayerDispatcher.<init>(TileLayerDispatcher.
java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)




geowolf wrote
> On Thu, May 23, 2013 at 5:04 PM, mortac8 &lt;

> ashley_c_mort@

> &gt; wrote:
> 
>> Thanks Andrea!  I tried adding that .jar but it didn't work :(
>>
>> I see in the GWC war there is a geowebcache-arcgiscache-content.xml and a
>> geowebcache-servlet.xml that reference the arcgiscache classes.  Any idea
>> on
>> if/how those Bean configuration files need to get into my GeoServer
>> deployment?
>>
> 
> Ah, not off the top of my head. You are right, GeoServer has its own
> Spring
> files
> to bind GeoWebCache, I guess the arcgiscache ones must be wired there
> somehow
> to work.
> I guess, look at how the wiring is done in vanilla GeoWebCache appcontext
> files,
> and try to repeat the same in GeoServer
> 
> Cheers
> Andrea
> 
> -- 
> ==
> GeoServer training in Milan, 6th & 7th June 2013!  Visit
> http://geoserver.geo-solutions.it for more information.
> ==
> 
> Ing. Andrea Aime
> @geowolf
> Technical Lead





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Serving-Layers-From-Pre-Cached-ArcGIS-Tiling-Schemes-tp5050654p5056781.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to