[Geoserver-users] 2 "fresh instances" side-by-side

Hi Guys

I have ‘war dumped’ (ie – no configuration) a 2.1.2 (stable) and a trunk snapshot on the one machine, [geoserver.war and geoserver-trunk.war], and I am having issues with geowebcache (GWC) forcing one instance to stop.

By default – nothing is setup, and the GWC is picking up the other geoservers GWC config and trying to lock a file (see log below).

How can I set the GWC per context? Noting that they were just loaded via the tomcat manager as WARs.

Regards,

Terry Rankine

See the Log:

03 Nov 09:25:08 INFO [gwc.config] - Initializing GeoServer specific GWC configuration from gwc-gs.xml

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - ***************************************************************************************

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - *** Reverting to java.io.tmpdir null for storage. Please set GEOWEBCACHE_CACHE_DIR. ***

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - ***************************************************************************************

03 Nov 09:25:08 ERROR [jdbc.JDBCMetaBackend] - Failed to start JDBC metastore: IO Exception: java.io.IOException: Could not create directory: /var/lib/tomcat6/trace.db [90028-119]

03 Nov 09:25:08 WARN [jdbc.JDBCMetaBackend] - Disabling JDBC metastore, not all functionality will be available!

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Will look for geowebcache.xml in ‘/tmp/tomcat6-tmp/geowebcache’

03 Nov 09:25:08 WARN [config.XMLConfiguration] - Found no configuration file in config directory, will create one at ‘/tmp/tomcat6-tmp/geowebcache/geowebcache.xml’ from template jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-core-1.3-SNAPSHOT.jar!/geowebcache_empty.xml

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Configuration file validated fine.

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Adding layers from /tmp/tomcat6-tmp/geowebcache

03 Nov 09:25:08 INFO [layer.TileLayerDispatcher] - Configuration /tmp/tomcat6-tmp/geowebcache contained no layers.

03 Nov 09:25:09 WARN [storage.EntityStoreBuilder] - Neither disk quota page store’ cache memory percent nor cache size was provided. Defaulting to 25% Heap Size

03 Nov 09:25:09 INFO [seed.SeederThreadPoolExecutor] - Initiating shut down for running and pending seed tasks…

03 Nov 09:25:09 INFO [seed.SeederThreadPoolExecutor] - Seeder thread pool executor shut down complete.

03 Nov 09:25:09 INFO [storage.StorageBroker] - Destroying StorageBroker

03 Nov 09:25:09 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘wmsLifecycleHandler’: Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

03 Nov 09:25:09 ERROR [context.ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-2.2-SNAPSHOT.jar!/geowebcache-geoserver-context.xml]: Cannot resolve reference to bean ‘DiskQuotaStore’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘DiskQuotaStore’ defined in URL [jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-2.2-SNAPSHOT.jar!/geowebcache-diskquota-context.xml]: Invocation of init method failed; nested exception is com.sleepycat.je.EnvironmentLockedException: (JE 4.1.10) /tmp/tomcat6-tmp/geowebcache/diskquota_page_store The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed.

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)


|

image001

|

Terry Rankine
Research Group Leader
CSIRO Earth Science and Resource Engineering



26 Dick Perry Avenue, Kensington, WA 6151



P +61-8-6436 8601 | M +61 (0)430 393 364 | W www.csiro.au

|
| - | - |

sorry I just saw this message.

So there’s no GEOSERVER_DATA_DIR nor GEOWEBCACHE_CACHE_DIR set for any of the instances, meaning both are defaulting to the same temp dir and hence the conflict.

Check the docs to see how to configure that: <http://docs.geoserver.org/latest/en/user/geowebcache/config.html>

cheers,
Gabriel

On Wed, Nov 2, 2011 at 10:35 PM, Terry.Rankine@anonymised.com wrote:

Hi Guys

I have ‘war dumped’ (ie – no configuration) a 2.1.2 (stable) and a trunk snapshot on the one machine, [geoserver.war and geoserver-trunk.war], and I am having issues with geowebcache (GWC) forcing one instance to stop.

By default – nothing is setup, and the GWC is picking up the other geoservers GWC config and trying to lock a file (see log below).

How can I set the GWC per context? Noting that they were just loaded via the tomcat manager as WARs.

Regards,

Terry Rankine

See the Log:

03 Nov 09:25:08 INFO [gwc.config] - Initializing GeoServer specific GWC configuration from gwc-gs.xml

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - ***************************************************************************************

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - *** Reverting to java.io.tmpdir null for storage. Please set GEOWEBCACHE_CACHE_DIR. ***

03 Nov 09:25:08 INFO [storage.DefaultStorageFinder] - ***************************************************************************************

03 Nov 09:25:08 ERROR [jdbc.JDBCMetaBackend] - Failed to start JDBC metastore: IO Exception: java.io.IOException: Could not create directory: /var/lib/tomcat6/trace.db [90028-119]

03 Nov 09:25:08 WARN [jdbc.JDBCMetaBackend] - Disabling JDBC metastore, not all functionality will be available!

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Will look for geowebcache.xml in ‘/tmp/tomcat6-tmp/geowebcache’

03 Nov 09:25:08 WARN [config.XMLConfiguration] - Found no configuration file in config directory, will create one at ‘/tmp/tomcat6-tmp/geowebcache/geowebcache.xml’ from template jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-core-1.3-SNAPSHOT.jar!/geowebcache_empty.xml

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Configuration file validated fine.

03 Nov 09:25:08 INFO [config.XMLConfiguration] - Adding layers from /tmp/tomcat6-tmp/geowebcache

03 Nov 09:25:08 INFO [layer.TileLayerDispatcher] - Configuration /tmp/tomcat6-tmp/geowebcache contained no layers.

03 Nov 09:25:09 WARN [storage.EntityStoreBuilder] - Neither disk quota page store’ cache memory percent nor cache size was provided. Defaulting to 25% Heap Size

03 Nov 09:25:09 INFO [seed.SeederThreadPoolExecutor] - Initiating shut down for running and pending seed tasks…

03 Nov 09:25:09 INFO [seed.SeederThreadPoolExecutor] - Seeder thread pool executor shut down complete.

03 Nov 09:25:09 INFO [storage.StorageBroker] - Destroying StorageBroker

03 Nov 09:25:09 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘wmsLifecycleHandler’: Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

03 Nov 09:25:09 ERROR [context.ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘gwcFacade’ defined in URL [jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-2.2-SNAPSHOT.jar!/geowebcache-geoserver-context.xml]: Cannot resolve reference to bean ‘DiskQuotaStore’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘DiskQuotaStore’ defined in URL [jar:file:/var/lib/tomcat6/webapps/geoserver-trunk/WEB-INF/lib/gwc-2.2-SNAPSHOT.jar!/geowebcache-diskquota-context.xml]: Invocation of init method failed; nested exception is com.sleepycat.je.EnvironmentLockedException: (JE 4.1.10) /tmp/tomcat6-tmp/geowebcache/diskquota_page_store The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed.

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)


|



|

Terry Rankine
Research Group Leader
CSIRO Earth Science and Resource Engineering



26 Dick Perry Avenue, Kensington, WA 6151



P +61-8-6436 8601 | M +61 (0)430 393 364 | W www.csiro.au

|
| - | - |


RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.