I am posting to this list because the GeoBatch User group for some reason does 
not permit me to post a new topic to it.

I just installed GeoBatch 1.3.0 and ran through the Installation instructions 
in the documentation.  I overrode the configuration to have a separate config 
directory and separate location for my 'gb_database.properties' file.
I am using the default sample "catalog.xml" file located in my GeoBatch config 
directory and upon startup I get the following error in the geobatch.log file:

The key error below is:  "Caused by: 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot 
construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor" and when I look at the GeoBatch 
source code sure enough the FileBasedCatalogConfiguration class does not have a 
no-args constructor which I believe is necessary in order for the Spring 
Framework to instantiate that class.

Any help on this would be appreciated.
Thanks,
--Steve


2014-07-30 17:50:11,330 ERROR            ContextLoader:220 - Context 
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalConfig' defined in URL 
[jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]:
 Invocation of init method failed; nested exception is java.io.IOException: 
Unable to load catalog config 'catalog' from base dir D:\Data\GeoBatch\config
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
            at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
            at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
            at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
            at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
            at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
            at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
            at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
            at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Unable to load catalog config 'catalog' from 
base dir D:\Data\GeoBatch\config
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)
            at 
it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)
            at 
it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
            ... 25 more
Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot 
construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
cause-exception     : 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
class               : 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration
required-type       : 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration
path                : /CatalogConfiguration
line number         : 2
-------------------------------
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
            at 
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
            at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
            at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
            at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
            at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)
            ... 35 more
Caused by: 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot 
construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
            at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
            at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
            at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
            ... 44 more
2014-07-30 17:50:11,330 ERROR            ContextLoader:220 - Context 
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalConfig' defined in URL 
[jar:file:/D:/apache-tomcat-7.0.53-8787-geobatch/webapps/geobatch/WEB-INF/lib/gb-dao-xstream-1.3.0.jar!/applicationContext.xml]:
 Invocation of init method failed; nested exception is java.io.IOException: 
Unable to load catalog config 'catalog' from base dir D:\Data\GeoBatch\config
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
            at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
            at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
            at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)
            at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
            at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
            at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
            at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
            at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
            at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Unable to load catalog config 'catalog' from 
base dir D:\Data\GeoBatch\config
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:80)
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:47)
            at 
it.geosolutions.geobatch.catalog.impl.BasePersistentResource.load(BasePersistentResource.java:85)
            at 
it.geosolutions.geobatch.global.XStreamCatalogLoader.init(XStreamCatalogLoader.java:101)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
            at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
            ... 25 more
Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot 
construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
cause-exception     : 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
class               : 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration
required-type       : 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration
path                : /CatalogConfiguration
line number         : 2
-------------------------------
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
            at 
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
            at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
            at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
            at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
            at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
            at 
it.geosolutions.geobatch.catalog.dao.file.xstream.XStreamCatalogDAO.find(XStreamCatalogDAO.java:70)
            ... 35 more
Caused by: 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot 
construct 
it.geosolutions.geobatch.configuration.flow.file.FileBasedCatalogConfiguration 
as it does not have a no-args constructor
            at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
            at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
            at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
            at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
            ... 44 more



Stephen Brooke (a.k.a. Steve)
Software Engineer III
Ground Systems
MDA
http://www.mda.ca<http://www.mda.ca/>
[email protected]<mailto:[email protected]>

Direct phone

+1 604 231 2429

Cell phone

+1 778 839 3274

Switchboard

+1 604 278 3411

FAX

+1 604 231 2757





------------------------------------------------------------------
This e-mail and any attachments are intended solely for the use of the intended 
recipient(s) and may contain legally privileged, proprietary and/or 
confidential information.  Any use, disclosure, dissemination, distribution or 
copying of this e-mail and any attachments for any purposes that have not been 
specifically authorized by the sender is strictly prohibited.  If you are not 
the intended recipient, please immediately notify the sender by reply e-mail 
and permanently delete all copies and attachments.
The entire content of this e-mail is for "information purposes" only and should 
not be relied upon by the recipient in any way unless otherwise confirmed in 
writing by way of letter or facsimile.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to