Hi,
Following on from an earlier post
(http://sourceforge.net/mailarchive/message.php?msg_id=38141072) to this
list I'm still unable to deploy Geoserver. I abandoned deploying the
v1.5.0-beta2 for the time being and decided to revert back to using
v1.4.0 (which I have versions of running on other machines, although
these are earlier 1.4.0_RC2/3 releases) however the 'stable' 1.4.0
version seems to suffer the same installation/config problems I
encountered when trying to deploy v1.5.0-beta2
Setup info: Microsoft w2k3, J2SE 1.5(v1.5.0_11), Java EE 5(_02), Apache
Tomcat
5.5.20
I have attempted to apply the config fixes suggested by Justin
Deoliveira
(http://sourceforge.net/mailarchive/message.php?msg_id=38141941) but
that had no effect, the GEOSERVER_DATA_DIR had the correct
structure/contents to begin with. I also noticed Aitor Calero Garcia's
recent post about install problems on Ubuntu 5. Aitor's log errors seem
almost identical to those I'm encountering, so I checked Tomcat's
permissions and all is ok there.
I've included the log error (see below) again in the hope someone
watching this list can offer up any other suggestions;
Many thanks,
Simon Abele
Apache Tomcat logs;
---
catalina*.log
------------------
12-Feb-2007 13:32:25 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\Program Files (x86)\Apache Software Foundation\Tomcat
5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Windows
Resource
Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\P
rogram Files (x86)\FME;%JAVA_HOME%\bin
12-Feb-2007 13:32:25 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9090
12-Feb-2007 13:32:25 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 738 ms
12-Feb-2007 13:32:25 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
12-Feb-2007 13:32:25 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
12-Feb-2007 13:32:25 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
12-Feb-2007 13:32:26 org.springframework.web.context.ContextLoader
initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
12-Feb-2007 13:32:26
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/validation
-1.4.0.jar!/applicationContext.xml]
12-Feb-2007 13:32:26
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/wfs-1.4.0.
jar!/applicationContext.xml]
12-Feb-2007 13:32:26
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/data-1.4.0
.jar!/applicationContext.xml]
12-Feb-2007 13:32:26
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/wms-1.4.0.
jar!/applicationContext.xml]
12-Feb-2007 13:32:26
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/main-1.4.0
.jar!/applicationContext.xml]
12-Feb-2007 13:32:27
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/classes/applicatio
nContext.xml]
12-Feb-2007 13:32:27
org.springframework.context.support.AbstractRefreshableApplicationContex
t refreshBeanFactory
INFO: Bean factory for application context [Root WebApplicationContext]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[validation,validationConfig,validationRegisterar,validationConfigRegist
erar,wfs,wfsConfig,wfsRegisterar,wfsConfigRegisterar,wfsAbstractService,
wfsService,wfsGetCapabilities,wfsDescribeFeatureType,wfsGetFeature,wfsLo
ckFeature,wfsGetFeatureWithLock,wfsTransaction,catalog,serviceFinder,wms
,wmsConfig,wmsRegisterar,wmsConfigRegisterar,wmsAbstractService,wmsServi
ce,wmsGetCapabilities,wmsDescribeFeatureType,wmsGetFeatureInfo,wmsGetLeg
endGraphic,wmsGetMap,wmsGetMapLegacy,wmsPutStyles,kmlReflector,PNGMapPro
ducerFactory,JAIMapProducerFactory,SVGMapProducerFactory,GIFMapProducerF
actory,KMLMapProducerFactory,KMZMapProducerFactory,PDFMapProducerFactory
,config,geoServer,globalConfig,data,dataConfig,dataRegisterar,dataConfig
Registerar,globalConfigRegisterar,geoServerRegisterar,speedServiceStrate
gy,fileServiceStrategy,bufferServiceStrategy,partialBufferServiceStrateg
y,applicationState,applicationStateRegisterar]; root of BeanFactory
hierarchy
12-Feb-2007 13:32:27
org.springframework.context.support.AbstractApplicationContext refresh
INFO: 54 beans defined in application context [Root
WebApplicationContext]
12-Feb-2007 13:32:27 org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
12-Feb-2007 13:32:27
org.springframework.context.support.AbstractApplicationContext
initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using
default
[org.springframework.context.support.DelegatingMessageSource@anonymised.com]
12-Feb-2007 13:32:27
org.springframework.context.support.AbstractApplicationContext
initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default
[org.springframework.context.event.SimpleApplicationEventMulticaster@anonymised.com...
a24]
12-Feb-2007 13:32:27
org.springframework.ui.context.support.UiApplicationContextUtils
initThemeSource
INFO: Unable to locate ThemeSource with name 'themeSource': using
default
[org.springframework.ui.context.support.ResourceBundleThemeSource@anonymised.com
4]
12-Feb-2007 13:32:27
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[validation,validationConfig,validationRegisterar,validationConfigRegist
erar,wfs,wfsConfig,wfsRegisterar,wfsConfigRegisterar,wfsAbstractService,
wfsService,wfsGetCapabilities,wfsDescribeFeatureType,wfsGetFeature,wfsLo
ckFeature,wfsGetFeatureWithLock,wfsTransaction,catalog,serviceFinder,wms
,wmsConfig,wmsRegisterar,wmsConfigRegisterar,wmsAbstractService,wmsServi
ce,wmsGetCapabilities,wmsDescribeFeatureType,wmsGetFeatureInfo,wmsGetLeg
endGraphic,wmsGetMap,wmsGetMapLegacy,wmsPutStyles,kmlReflector,PNGMapPro
ducerFactory,JAIMapProducerFactory,SVGMapProducerFactory,GIFMapProducerF
actory,KMLMapProducerFactory,KMZMapProducerFactory,PDFMapProducerFactory
,config,geoServer,globalConfig,data,dataConfig,dataRegisterar,dataConfig
Registerar,globalConfigRegisterar,geoServerRegisterar,speedServiceStrate
gy,fileServiceStrategy,bufferServiceStrategy,partialBufferServiceStrateg
y,applicationState,applicationStateRegisterar]; root of BeanFactory
hierarchy]
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadGlobal
CONFIG: logging level is CONFIG
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadGlobal
CONFIG: maxFeatures is 1000000
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadGlobal
CONFIG: numDecimals returning is 8
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadGlobal
CONFIG: charSet is UTF-8
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadWFS
CONFIG: reading srsXmlStyle: [srsXmlStyle: null]
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadBaseMapLayers
INFO: No baseMap groups defined yet
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadCatalog
CONFIG: Loading configuration file: C:\GeoServer
1.4.0\webapps\geoserver\WEB-INF\catalog.xml
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadNameSpaces
CONFIG: added namespace xmlns:topp="http://www.openplans.org/topp",
isDefault=true
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadNameSpaces
CONFIG: added namespace xmlns:tiger="http://www.census.gov",
isDefault=false
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadNameSpaces
CONFIG: added namespace xmlns:cite="http://www.opengeospatial.net/cite",
isDefault=false
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore DS_giant_polygon
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore states_shapefile
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore DS_poi
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore tasmania_cities
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore tasmania_roads
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore tasmania_state_boundaries
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore DS_poly_landmarks
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore DS_tiger_roads
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadDataStore
CONFIG: Loaded datastore tasmania_water_bodies
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style giant_polygon
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style capitals
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style tiger_roads
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style poly_landmarks
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style green
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style simple_roads
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style poi
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style cite_lakes
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style population
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style point
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style line
12-Feb-2007 13:32:27 org.vfny.geoserver.global.xml.XMLConfigReader
loadStyles
CONFIG: Loaded style polygon
12-Feb-2007 13:32:27
org.springframework.beans.factory.support.AbstractBeanFactory
destroySingletons
INFO: Destroying singletons in factory
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[validation,validationConfig,validationRegisterar,validationConfigRegist
erar,wfs,wfsConfig,wfsRegisterar,wfsConfigRegisterar,wfsAbstractService,
wfsService,wfsGetCapabilities,wfsDescribeFeatureType,wfsGetFeature,wfsLo
ckFeature,wfsGetFeatureWithLock,wfsTransaction,catalog,serviceFinder,wms
,wmsConfig,wmsRegisterar,wmsConfigRegisterar,wmsAbstractService,wmsServi
ce,wmsGetCapabilities,wmsDescribeFeatureType,wmsGetFeatureInfo,wmsGetLeg
endGraphic,wmsGetMap,wmsGetMapLegacy,wmsPutStyles,kmlReflector,PNGMapPro
ducerFactory,JAIMapProducerFactory,SVGMapProducerFactory,GIFMapProducerF
actory,KMLMapProducerFactory,KMZMapProducerFactory,PDFMapProducerFactory
,config,geoServer,globalConfig,data,dataConfig,dataRegisterar,dataConfig
Registerar,globalConfigRegisterar,geoServerRegisterar,speedServiceStrate
gy,fileServiceStrategy,bufferServiceStrategy,partialBufferServiceStrateg
y,applicationState,applicationStateRegisterar]; root of BeanFactory
hierarchy}
12-Feb-2007 13:32:27 org.springframework.web.context.ContextLoader
initWebApplicationContext
***** START: ERROR *****
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'validation' defined in URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/validation
-1.4.0.jar!/applicationContext.xml]: Can't resolve reference to bean
'config' while setting property 'constructor argument'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'config' defined in URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/main-1.4.0
.jar!/applicationContext.xml]: Initialization of bean failed; nested
exception is
org.springframework.beans.factory.BeanInitializationException: Error
creating xml config reader; nested exception is
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'config' defined in URL
[jar:file:/C:/GeoServer%201.4.0/webapps/geoserver/WEB-INF/lib/main-1.4.0
.jar!/applicationContext.xml]: Initialization of bean failed; nested
exception is
org.springframework.beans.factory.BeanInitializationException: Error
creating xml config reader; nested exception is
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
org.springframework.beans.factory.BeanInitializationException: Error
creating xml config reader; nested exception is
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
at
org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReade
r.java:300)
at
org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.java:
195)
at
org.vfny.geoserver.global.xml.XMLConfigReader.<init>(XMLConfigReader.jav
a:145)
at
org.vfny.geoserver.global.Config.setApplicationContext(Config.java:43)
at
org.springframework.context.support.ApplicationContextAwareProcessor.pos
tProcessBeforeInitialization(ApplicationContextAwareProcessor.java:84)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapable
BeanFactory.java:248)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:147)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:176)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java
:713)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:611)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:329)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:275)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:318)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicatio
nContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized
(ContextLoaderListener.java:48)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
ava:3763)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NullPointerException
at
org.vfny.geoserver.global.xml.XMLConfigReader.loadFeatureTypes(XMLConfig
Reader.java:1024)
at
org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReade
r.java:297)
... 36 more
12-Feb-2007 13:32:27 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
12-Feb-2007 13:32:27 org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors
***** END: ERROR *****
12-Feb-2007 13:32:28 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9090
12-Feb-2007 13:32:28 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
12-Feb-2007 13:32:28 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
12-Feb-2007 13:32:28 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
12-Feb-2007 13:32:28 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2733 ms
---