Hi,
today I’ve tryied to deploy the 2.2.3 version of geoserver war in a tomcat (v.6.0.38) and WIN 2003; geoserver does not start and the log shows an error loading a catalog.xml file.
Attached the catalina log file; any idea?
tomcat6-stdout.2013-01-16.log (39.2 KB)
On Wed, Jan 16, 2013 at 3:01 PM, Gianni Barrotta <giannibarrotta@anonymised.com84…> wrote:
Hi,
today I’ve tryied to deploy the 2.2.3 version of geoserver war in a tomcat (v.6.0.38) and WIN 2003; geoserver does not start and the log shows an error loading a catalog.xml file.
Attached the catalina log file; any idea?
Really weird, the error message refers to a catalog.xml file, but we don’t have one in the data dir (as in, it’s not part
of the normal set of files in the root of the data dir).
- GEOSERVER_DATA_DIR: C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
16 gen 13:18:10 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: java.lang.NullPointerException
16 gen 13:18:10 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wmsLifecycleHandler’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/wms-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘wms’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wms’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/wms-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘catalog’ while setting bean property ‘catalog’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accessRulesDao’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationSecurityContext.xml]: Cannot resolve reference to bean ‘rawCatalog’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rawCatalog’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
and later:
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:122)
at org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:54)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
… 101 more
Caused by: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:129)
at org.geoserver.config.GeoServerLoader.readLegacyCatalog(GeoServerLoader.java:553)
at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:225)
at org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:42)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:116)
… 105 more
Hum… it seems GeoServer thinks the data dir included in the war is a old style one (1.7.x series), and it’s trying
to upgrade it, but failing to do so.
Maybe this rings a bell to someone else?
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Hi,
is it a freshly deployed GeoServer or is there already some configuration done, for example an old data-dir? And if so, have you searched for a catalog.xml in it? Has the GeoServer write permissions in the directory? What kind of java are you using?
Just some standard questions for getting some hints where to search.
Cheers
Stefan
From: Gianni Barrotta [mailto:giannibarrotta@…84…]
Sent: Wednesday, January 16, 2013 3:02 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] problems with the deploy
Hi,
today I’ve tryied to deploy the 2.2.3 version of geoserver war in a tomcat (v.6.0.38) and WIN 2003; geoserver does not start and the log shows an error loading a catalog.xml file.
Attached the catalina log file; any idea?
Hi Andreaa,
it’s a new installation of geoserver, so I wonder why tryies to load a file used by GS 1.7; really strange.
On Wed, Jan 16, 2013 at 3:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Wed, Jan 16, 2013 at 3:01 PM, Gianni Barrotta <giannibarrotta@anonymised.com…> wrote:
Hi,
today I’ve tryied to deploy the 2.2.3 version of geoserver war in a tomcat (v.6.0.38) and WIN 2003; geoserver does not start and the log shows an error loading a catalog.xml file.
Attached the catalina log file; any idea?
Really weird, the error message refers to a catalog.xml file, but we don’t have one in the data dir (as in, it’s not part
of the normal set of files in the root of the data dir).
- GEOSERVER_DATA_DIR: C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
16 gen 13:18:10 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: java.lang.NullPointerException
16 gen 13:18:10 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wmsLifecycleHandler’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/wms-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘wms’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wms’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/wms-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘catalog’ while setting bean property ‘catalog’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accessRulesDao’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationSecurityContext.xml]: Cannot resolve reference to bean ‘rawCatalog’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘rawCatalog’ defined in URL [jar:file:/C:/opt/apache-tomcat-6.0.36/webapps/geoserver/WEB-INF/lib/main-2.1.3.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
and later:
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:122)
at org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:54)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
… 101 more
Caused by: java.io.FileNotFoundException: Could not find catalog.xml under:C:\opt\apache-tomcat-6.0.36\webapps\geoserver\data
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:129)
at org.geoserver.config.GeoServerLoader.readLegacyCatalog(GeoServerLoader.java:553)
at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:225)
at org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:42)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:116)
… 105 more
Hum… it seems GeoServer thinks the data dir included in the war is a old style one (1.7.x series), and it’s trying
to upgrade it, but failing to do so.
Maybe this rings a bell to someone else?
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Hi Stefan,
it’s a totally new deploy, no old configurations.
No problem with permissions, I suppose, beacuse it’s a windows installation with a single user.
Java SE 1.6.0_38.
On Wed, Jan 16, 2013 at 3:59 PM, Stefan Engelhardt (HBT) <Stefan.Engelhardt@anonymised.com> wrote:
Hi,
is it a freshly deployed GeoServer or is there already some configuration done, for example an old data-dir? And if so, have you searched for a catalog.xml in it? Has the GeoServer write permissions in the directory? What kind of java are you using?
Just some standard questions for getting some hints where to search.
Cheers
Stefan
From: Gianni Barrotta [mailto:giannibarrotta@anonymised.com]
Sent: Wednesday, January 16, 2013 3:02 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] problems with the deploy
Hi,
today I’ve tryied to deploy the 2.2.3 version of geoserver war in a tomcat (v.6.0.38) and WIN 2003; geoserver does not start and the log shows an error loading a catalog.xml file.
Attached the catalina log file; any idea?