[Geoserver-users] Geoserver 1.6.0.beta2 doesn't work with Windows Service Wrapper

Hi,

I’ve tried this on 2 servers now and both give the same result, I set it up as I did with previous versions (which worked) and run the service wrapper setup as described here: http://docs.codehaus.org/display/GEOSDOC/Windows+Service+Wrapper and when I start the service it says:

Could not start the Geoserver service on Local Computer
Error 1067: The Process Terminated Unexpectedly.

Do you want to see the geoserver logs or are you unconcerned at the moment as this is a beta? I can go back to 1.5.2, I just thought it might be useful to give 1.6 a go as we’re still not using it in production yet.

cheers,

Tom

Tom (JDi Solutions) ha scritto:

Hi,

I've tried this on 2 servers now and both give the same result, I set it up as I did with previous versions (which worked) and run the service wrapper setup as described here: http://docs.codehaus.org/display/GEOSDOC/Windows+Service+Wrapper and when I start the service it says:

Could not start the Geoserver service on Local Computer
Error 1067: The Process Terminated Unexpectedly.

Do you want to see the geoserver logs or are you unconcerned at the moment as this is a beta?

Well, of course we feel no hurry, but the logs would be very much appreciated, that may help us to have the beta4 work with service
wrapper.

Can you open a jira issue and attache the logs there?

Anyways, a better way to have GeoServer run as a service is
to install it in Tomcat 6 and then use the Tomcat service
wrapper (and maybe you can install the APR runtime as well,
as we suggest in the "GeoServer in production" guide in the wiki).

Cheers
Andrea

Thanks, I’ll have a look but that’s a whole bunch of new things I’ve never used and I’ve got enough to get to grips with atm already! The service wrapper is simplicity itself and worked beautifully for 1.5.2

I’ll post the logs to jira as requested when I get a chance.

cheers

On 9/12/07, Andrea Aime < aaime@anonymised.com> wrote:

Tom (JDi Solutions) ha scritto:

Hi,

I’ve tried this on 2 servers now and both give the same result, I set it
up as I did with previous versions (which worked) and run the service
wrapper setup as described here:
http://docs.codehaus.org/display/GEOSDOC/Windows+Service+Wrapper and
when I start the service it says:

Could not start the Geoserver service on Local Computer
Error 1067: The Process Terminated Unexpectedly.

Do you want to see the geoserver logs or are you unconcerned at the
moment as this is a beta?

Well, of course we feel no hurry, but the logs would be very much
appreciated, that may help us to have the beta4 work with service
wrapper.

Can you open a jira issue and attache the logs there?

Anyways, a better way to have GeoServer run as a service is
to install it in Tomcat 6 and then use the Tomcat service
wrapper (and maybe you can install the APR runtime as well,
as we suggest in the “GeoServer in production” guide in the wiki).

Cheers
Andrea

Hi, the 1.6.0. beta2 doesn’t seem to want to allow me to log to a file. It says “Geoserver Logging Disabled” Is it supposed to be like that or am I missing something?

On 9/12/07, Tom (JDi Solutions) <tom.dean@anonymised.com> wrote:

Thanks, I’ll have a look but that’s a whole bunch of new things I’ve never used and I’ve got enough to get to grips with atm already! The service wrapper is simplicity itself and worked beautifully for 1.5.2

I’ll post the logs to jira as requested when I get a chance.

cheers

On 9/12/07, Andrea Aime < aaime@anonymised.com> wrote:

Tom (JDi Solutions) ha scritto:

Hi,

I’ve tried this on 2 servers now and both give the same result, I set it
up as I did with previous versions (which worked) and run the service
wrapper setup as described here:
http://docs.codehaus.org/display/GEOSDOC/Windows+Service+Wrapper and
when I start the service it says:

Could not start the Geoserver service on Local Computer
Error 1067: The Process Terminated Unexpectedly.

Do you want to see the geoserver logs or are you unconcerned at the
moment as this is a beta?

Well, of course we feel no hurry, but the logs would be very much
appreciated, that may help us to have the beta4 work with service
wrapper.

Can you open a jira issue and attache the logs there?

Anyways, a better way to have GeoServer run as a service is
to install it in Tomcat 6 and then use the Tomcat service
wrapper (and maybe you can install the APR runtime as well,
as we suggest in the “GeoServer in production” guide in the wiki).

Cheers
Andrea

Tom (JDi Solutions) ha scritto:

Hi, the 1.6.0. beta2 doesn't seem to want to allow me to log to a file. It says "Geoserver Logging Disabled" Is it supposed to be like that or am I missing something?

I guess you just spotted a bug, just don't have time to confirm it.
Care to open a jira issue about this?

Cheers
Andrea

Ok but before I do, I get the same problem with 1.5.3 only this time it won’t startup as a standalone app either. The output is below. I’ve just tried a completely fresh install with the same problem. The only non standard is my data directory.

rar,wfsAbstractService,wfsService,wfsGetCapabilities,wfsDescribeFeatureType,wfsG
etFeature,wfsLockFeature,wfsGetFeatureWithLock,wfsTransaction,wms,wmsConfig,wmsR
egisterar,wmsConfigRegisterar,wmsAbstractService,wmsService,wmsGetCapabilities,w
msGetCapabilitiesLegacy,wmsDescribeFeatureType,wmsGetFeatureInfo,wmsGetLegendGra
phic,wmsGetMap,wmsGetMapLegacy,wmsPutStyles,kmlReflector,wmsReflect,GIFLegendPro
ducerFactory,JaiLegendProducerFactory,PNGLegendProducerFactory,PNGMapProducerFac
tory,GeoTiffMapProducerFactory,TiffMapProducerFactory,SVGMapProducerFactory,GIFM
apProducerFactory,KMLMapProducerFactory,KMZMapProducerFactory,PDFMapProducerFact
ory,JPEGMapProducerFactory,OpenLayersMapProducerFactory,GeoRSSMapProducerFactory
,wcs,wcsConfig,wcsRegisterar,wcsConfigRegisterar,wcsAbstractService,wcsService,w
csGetCapabilities,wcsDescribeCoverage,wcsGetCoverage]; root of BeanFactory hiera
rchy
3687 [main] INFO org.springframework.web.context.support.XmlWebApplicationContex
t - 72 beans defined in application context [Root WebApplicationContext]
3718 [main] INFO org.springframework.core.CollectionFactory - Commons Collection
s 3.x available
3734 [main] INFO org.springframework.web.context.support.XmlWebApplicationContex
t - Unable to locate MessageSource with name ‘messageSource’: using default [org
.springframework.context.support.DelegatingMessageSource@anonymised.com]
3750 [main] INFO org.springframework.web.context.support.XmlWebApplicationContex
t - Unable to locate ApplicationEventMulticaster with name ‘applicationEventMult
icaster’: using default [org.springframework.context.event.SimpleApplicationEven
tMulticaster@anonymised.com]
3750 [main] INFO org.springframework.ui.context.support.UiApplicationContextUtil
s - Unable to locate ThemeSource with name ‘themeSource’: using default [org.spr
ingframework.ui.context.support.ResourceBundleThemeSource@anonymised.com ]
3750 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFa
ctory - Pre-instantiating singletons in factory [org.springframework.beans.facto
ry.support.DefaultListableBeanFactory defining beans [validation,validationConfi
g,validationRegisterar,validationConfigRegisterar,config,geoServer,globalConfig,
data,dataConfig,dataRegisterar,dataConfigRegisterar,globalConfigRegisterar,geoSe
rverRegisterar,speedServiceStrategy,fileServiceStrategy,bufferServiceStrategy,pa
rtialBufferServiceStrategy2,catalog,serviceFinder,applicationState,applicationSt
ateRegisterar,wfs,wfsConfig,wfsRegisterar,wfsConfigRegisterar,wfsAbstractService
,wfsService,wfsGetCapabilities,wfsDescribeFeatureType,wfsGetFeature,wfsLockFeatu
re,wfsGetFeatureWithLock,wfsTransaction,wms,wmsConfig,wmsRegisterar,wmsConfigReg
isterar,wmsAbstractService,wmsService,wmsGetCapabilities,wmsGetCapabilitiesLegac
y,wmsDescribeFeatureType,wmsGetFeatureInfo,wmsGetLegendGraphic,wmsGetMap,wmsGetM
apLegacy,wmsPutStyles,kmlReflector,wmsReflect,GIFLegendProducerFactory,JaiLegend
ProducerFactory,PNGLegendProducerFactory,PNGMapProducerFactory,GeoTiffMapProduce
rFactory,TiffMapProducerFactory,SVGMapProducerFactory,GIFMapProducerFactory,KMLM
apProducerFactory,KMZMapProducerFactory,PDFMapProducerFactory,JPEGMapProducerFac
tory,OpenLayersMapProducerFactory,GeoRSSMapProducerFactory,wcs,wcsConfig,wcsRegi
sterar,wcsConfigRegisterar,wcsAbstractService,wcsService,wcsGetCapabilities,wcsD
escribeCoverage,wcsGetCoverage]; root of BeanFactory hierarchy]

  • GEOSERVER_DATA_DIR: d:\geoserverdata

4031 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFa
ctory - Destroying singletons in factory {org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory defining beans [validation,validationConfig,valid
ationRegisterar,validationConfigRegisterar,config,geoServer,globalConfig,data,da
taConfig,dataRegisterar,dataConfigRegisterar,globalConfigRegisterar,geoServerReg
isterar,speedServiceStrategy,fileServiceStrategy,bufferServiceStrategy,partialBu
fferServiceStrategy2,catalog,serviceFinder,applicationState,applicationStateRegi
sterar,wfs,wfsConfig,wfsRegisterar,wfsConfigRegisterar,wfsAbstractService,wfsSer
vice,wfsGetCapabilities,wfsDescribeFeatureType,wfsGetFeature,wfsLockFeature,wfsG
etFeatureWithLock,wfsTransaction,wms,wmsConfig,wmsRegisterar,wmsConfigRegisterar
,wmsAbstractService,wmsService,wmsGetCapabilities,wmsGetCapabilitiesLegacy,wmsDe
scribeFeatureType,wmsGetFeatureInfo,wmsGetLegendGraphic,wmsGetMap,wmsGetMapLegac
y,wmsPutStyles,kmlReflector,wmsReflect,GIFLegendProducerFactory,JaiLegendProduce
rFactory,PNGLegendProducerFactory,PNGMapProducerFactory,GeoTiffMapProducerFactor
y,TiffMapProducerFactory,SVGMapProducerFactory,GIFMapProducerFactory,KMLMapProdu
cerFactory,KMZMapProducerFactory,PDFMapProducerFactory,JPEGMapProducerFactory,Op
enLayersMapProducerFactory,GeoRSSMapProducerFactory,wcs,wcsConfig,wcsRegisterar,
wcsConfigRegisterar,wcsAbstractService,wcsService,wcsGetCapabilities,wcsDescribe
Coverage,wcsGetCoverage]; root of BeanFactory hierarchy}
4031 [main] ERROR org.springframework.web.context.ContextLoader - Context initia
lization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name ‘validation’ defined in URL [jar:file:/C:/Program%20Files/GeoServer%201.5
.3/webapps/geoserver/WEB-INF/lib/validation-1.5.3.jar!/applicationContext.xml]:
Can’t resolve reference to bean ‘config’ while setting property ‘constructor arg
ument’; nested exception is org.springframework.beans.factory.BeanCreationExcept
ion: Error creating bean with name ‘config’ defined in URL [jar:file:/C:/Program
%20Files/GeoServer%201.5.3/webapps/geoserver/WEB-INF/lib/main-1.5.3.jar!/applica
tionContext.xml]: Initialization of bean failed; nested exception is org.springf
ramework.beans.factory.BeanInitializationException: Error creating xml config re
ader; nested exception is org.vfny.geoserver.global.ConfigurationException: java
.lang.NullPointerException
org.springframework.beans.factory.BeanCreationException : Error creating bean wit
h name ‘config’ defined in URL [jar:file:/C:/Program%20Files/GeoServer%201.5.3/w
ebapps/geoserver/WEB-INF/lib/main-1.5.3.jar!/applicationContext.xml]: Initializa
tion of bean failed; nested exception is org.springframework.beans.factory.BeanI
nitializationException: Error creating xml config reader; nested exception is or
g.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException
org.springframework.beans.factory.BeanInitializationException : Error creating xm
l config reader; nested exception is org.vfny.geoserver.global.ConfigurationExce
ption: java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException

at org.vfny.geoserver.global.xml.XMLConfigReader.loadGlobal(XMLConfigRea
der.java:666)
at org.vfny.geoserver.global.xml.XMLConfigReader.loadServices(XMLConfigR
eader.java:236)
at org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.ja
va:189)
at org.vfny.geoserver.global.xml.XMLConfigReader.(XMLConfigReader.
java:155)
at org.vfny.geoserver.global.Config.setApplicationContext (Config.java:69
)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:84)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java :362)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java :147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java :713)

at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:611)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:329)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:48)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
java:450)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1129)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
420)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457
)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:156)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java :120)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:156)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
119)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:905)
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.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.NullPointerException
at java.util.logging.Handler.setLevel(Unknown Source)
at org.vfny.geoserver.global.Log4JFormatter.init(Log4JFormatter.java:252
)
at org.vfny.geoserver.global.GeoServer.initLogging(GeoServer.java:469)
at org.vfny.geoserver.global.xml.XMLConfigReader.loadGlobal (XMLConfigRea
der.java:466)
… 43 more
4093 [main] WARN org.mortbay.log - failed ContextHandler@anonymised.com{/geoserver,file:
/C:/Program%20Files/GeoServer%201.5.3/webapps/geoserver/}
4093 [main] WARN org.mortbay.log - failed ContextHandlerCollection@anonymised.com
4125 [main] WARN org.mortbay.log - failed HandlerCollection@anonymised.com
4297 [main] INFO org.mortbay.log - Started SelectChannelConnector @ 0.0.0.0:8080

4297 [main] WARN org.mortbay.log - failed Server@anonymised.com
4297 [main] ERROR org.mortbay.log - EXCEPTION
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name ‘validation’ defined in URL [jar:file:/C:/Program%20Files/GeoServer%201.5
.3/webapps/geoserver/WEB-INF/lib/validation-1.5.3.jar!/applicationContext.xml]:
Can’t resolve reference to bean ‘config’ while setting property ‘constructor arg
ument’; nested exception is org.springframework.beans.factory.BeanCreationExcept
ion: Error creating bean with name ‘config’ defined in URL [jar:file:/C:/Program
%20Files/GeoServer%201.5.3/webapps/geoserver/WEB-INF/lib/main-1.5.3.jar!/applica
tionContext.xml]: Initialization of bean failed; nested exception is org.springf
ramework.beans.factory.BeanInitializationException: Error creating xml config re
ader; nested exception is org.vfny.geoserver.global.ConfigurationException: java
.lang.NullPointerException
org.springframework.beans.factory.BeanCreationException : Error creating bean wit
h name ‘config’ defined in URL [jar:file:/C:/Program%20Files/GeoServer%201.5.3/w
ebapps/geoserver/WEB-INF/lib/main-1.5.3.jar!/applicationContext.xml]: Initializa
tion of bean failed; nested exception is org.springframework.beans.factory.BeanI
nitializationException: Error creating xml config reader; nested exception is or
g.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException
org.springframework.beans.factory.BeanInitializationException : Error creating xm
l config reader; nested exception is org.vfny.geoserver.global.ConfigurationExce
ption: java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException: java.lang.NullPointerException

at org.vfny.geoserver.global.xml.XMLConfigReader.loadGlobal(XMLConfigRea
der.java:666)
at org.vfny.geoserver.global.xml.XMLConfigReader.loadServices(XMLConfigR
eader.java:236)
at org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.ja
va:189)
at org.vfny.geoserver.global.xml.XMLConfigReader.(XMLConfigReader.
java:155)
at org.vfny.geoserver.global.Config.setApplicationContext (Config.java:69
)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:84)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java :362)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java :147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java :713)

at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:611)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:329)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:48)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
java:450)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1129)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
420)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:457
)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:156)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java :120)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:156)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
119)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:
38)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:905)
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.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.NullPointerException
at java.util.logging.Handler.setLevel(Unknown Source)
at org.vfny.geoserver.global.Log4JFormatter.init(Log4JFormatter.java:252
)
at org.vfny.geoserver.global.GeoServer.initLogging(GeoServer.java:469)
at org.vfny.geoserver.global.xml.XMLConfigReader.loadGlobal (XMLConfigRea
der.java:466)
… 43 more

On 9/17/07, Andrea Aime <aaime@anonymised.com> wrote:

Tom (JDi Solutions) ha scritto:

Hi, the 1.6.0. beta2 doesn’t seem to want to allow me to log to a file.
It says “Geoserver Logging Disabled” Is it supposed to be like that or
am I missing something?

I guess you just spotted a bug, just don’t have time to confirm it.
Care to open a jira issue about this?

Cheers
Andrea

Tom (JDi Solutions) ha scritto:

Ok but before I do, I get the same problem with 1.5.3 only this time it won't startup as a standalone app either. The output is below. I've just tried a completely fresh install with the same problem. The only non standard is my data directory.

Well, I think the trouble is that we make sure data dirs are forward
compatible, but now backwards compatibile. I think you saved the
config with GeoServer 1.6 and now GeoServer 1.5 breaks with it.
I looked into the stack trace, but I'm not sure what may make
the logging level break this way.

In any case, I suggest you hack your config.xml by using
a text editor and add back in the following lines:

<!--
       Defines the logging level. Common options are SEVERE,
       WARNING, INFO, CONFIG, FINER, FINEST, in order of
       Increasing statements logged.
     -->
     <loggingLevel>INFO</loggingLevel>
     <loggingToFile value = "false" />
     <logLocation>logs/geoserver.log</logLocation>

Let's hope this is enough to make 1.5.3 pick up your data dir...
Cheers
Andrea

Couldn’t find config.xml anywhere so I just recreated the data_dir from scratch and it worked. I also discovered that in 1.5.3 the reason the service wrapper wasn’t working was because there was no JAVA_HOME environment variable. I’ve put that in and it’s fine. Am gonna try now with 1.6.0 and if that works that only leaves the inability to change the logging level in 1.6.0 which I’ll report in JIRA.

Thanks for your help Andrea,

Tom

On 9/18/07, Andrea Aime <aaime@anonymised.com> wrote:

Tom (JDi Solutions) ha scritto:

Ok but before I do, I get the same problem with 1.5.3 only this time it
won’t startup as a standalone app either. The output is below. I’ve
just tried a completely fresh install with the same problem. The only
non standard is my data directory.

Well, I think the trouble is that we make sure data dirs are forward
compatible, but now backwards compatibile. I think you saved the
config with GeoServer 1.6 and now GeoServer 1.5 breaks with it.
I looked into the stack trace, but I’m not sure what may make
the logging level break this way.

In any case, I suggest you hack your config.xml by using
a text editor and add back in the following lines:

INFO

logs/geoserver.log

Let’s hope this is enough to make 1.5.3 pick up your data dir…
Cheers
Andrea

Tom (JDi Solutions) ha scritto:

Couldn't find config.xml anywhere so I just recreated the data_dir from scratch and it worked. I also discovered that in 1.5.3 the reason the service wrapper wasn't working was because there was no JAVA_HOME environment variable. I've put that in and it's fine. Am gonna try now with 1.6.0 and if that works that only leaves the inability to change the logging level in 1.6.0 which I'll report in JIRA.

Cool :slight_smile:

Thanks for your help Andrea,

Thank you for your patience and for testing GeoServer :slight_smile:
As for 1.6, I guess you may want to try out beta3, which I'm releasing today (if all goes fine).
It has some quite needs speedups in WMS, I guess you may be interested in them (thought using Oracle datastore you'll only experience some
part of it, to get the full thing you need shapefile and to a lesser
extent postgis) :slight_smile:

Cheers
Andrea

Ok, I’ll wait for that then. Cheers.

On 9/18/07, Andrea Aime <aaime@anonymised.com> wrote:

Tom (JDi Solutions) ha scritto:

Couldn’t find config.xml anywhere so I just recreated the data_dir from
scratch and it worked. I also discovered that in 1.5.3 the reason the
service wrapper wasn’t working was because there was no JAVA_HOME
environment variable. I’ve put that in and it’s fine. Am gonna try now
with 1.6.0 and if that works that only leaves the inability to change
the logging level in 1.6.0 which I’ll report in JIRA.

Cool :slight_smile:

Thanks for your help Andrea,

Thank you for your patience and for testing GeoServer :slight_smile:
As for 1.6, I guess you may want to try out beta3, which I’m releasing
today (if all goes fine).
It has some quite needs speedups in WMS, I guess you may be interested
in them (thought using Oracle datastore you’ll only experience some
part of it, to get the full thing you need shapefile and to a lesser
extent postgis) :slight_smile:

Cheers
Andrea