I followed Graeme's tutorial and it worked the first time. I've since rebooted STS and now I can't launch the web app. The error is:
2011-07-07 10:35:23,942 [Thread-23] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'springDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'springDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
... 5 more
Caused by: org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at org.grails.plugins.gemfire.GemfireDatastoreFactoryBean.getObject(GemfireDatastoreFactoryBean.groovy:58)
at org.grails.plugins.gemfire.GemfireDatastoreFactoryBean.getObject(GemfireDatastoreFactoryBean.groovy)
... 5 more
Caused by: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.getAllConnections(QueueManagerImpl.java:177)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeOnQueuesAndReturnPrimaryResult(OpExecutorImpl.java:272)
at com.gemstone.gemfire.cache.client.internal.PoolImpl.executeOnQueuesAndReturnPrimaryResult(PoolImpl.java:673)
at com.gemstone.gemfire.cache.client.internal.RegisterInterestOp.execute(RegisterInterestOp.java:52)
at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.registerInterest(ServerRegionProxy.java:364)
at com.gemstone.gemfire.internal.cache.LocalRegion.processSingleInterest(LocalRegion.java:3025)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:3115)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2934)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2928)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2924)
... 7 more
Can anyone help with this?
I've tried from within STS and cmdline with the same results. Any pointers on what's up?
Thanks,
Wayne
2011-07-07 10:35:23,942 [Thread-23] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'springDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'springDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
... 5 more
Caused by: org.springframework.datastore.mapping.model.DatastoreConfigurationException: Failed to configure Gemfire cache and regions: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at org.grails.plugins.gemfire.GemfireDatastoreFactoryBean.getObject(GemfireDatastoreFactoryBean.groovy:58)
at org.grails.plugins.gemfire.GemfireDatastoreFactoryBean.getObject(GemfireDatastoreFactoryBean.groovy)
... 5 more
Caused by: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Could not initialize a primary queue on startup. No queue servers available.
at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.getAllConnections(QueueManagerImpl.java:177)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeOnQueuesAndReturnPrimaryResult(OpExecutorImpl.java:272)
at com.gemstone.gemfire.cache.client.internal.PoolImpl.executeOnQueuesAndReturnPrimaryResult(PoolImpl.java:673)
at com.gemstone.gemfire.cache.client.internal.RegisterInterestOp.execute(RegisterInterestOp.java:52)
at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.registerInterest(ServerRegionProxy.java:364)
at com.gemstone.gemfire.internal.cache.LocalRegion.processSingleInterest(LocalRegion.java:3025)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:3115)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2934)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2928)
at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterest(LocalRegion.java:2924)
... 7 more
Can anyone help with this?
I've tried from within STS and cmdline with the same results. Any pointers on what's up?
Thanks,
Wayne