Hi,
I installed TDS 4.5.1.
tds.version=4.5.1
tds.version.builddate=20140613.1536
had trouble to start it up in Tomcat7.
-Dtds.content.root.path=/var/lib/tomcat7/content/ has been set in tomcat
startup script. Still get the error below.
In /var/lib/tomcat7/content/thredds, only folder logs appears and all logs
in this folder are empty
-rw-r--r--. 1 tomcat tomcat 0 Jul 16 16:00 cache.log
-rw-r--r--. 1 tomcat tomcat 0 Jul 16 16:01 catalogInit.log
-rw-r--r--. 1 tomcat tomcat 0 Jul 16 16:00 featureCollectionScan.log
-rw-r--r--. 1 tomcat tomcat 0 Jul 16 16:01 serverStartup.log
-rw-r--r--. 1 tomcat tomcat 0 Jul 16 16:00 threddsServlet.log
Could someone shed some light on this?
SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'tdsContext' defined in file
[/var/lib/tomcat7/webapps/thredds/WEB-INF/classes/thredds/server/config/TdsC
ontext.class]: Invocation of init method failed; nested exception is
java.lang.NullPointerException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:458)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:295)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:292)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:194)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:285)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:194)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:285)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:194)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:626)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:932)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:479)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicat
ionContext(ContextLoader.java:389)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:294)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:112)
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:9
01)
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:1083)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
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:11
45)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at
thredds.util.ThreddsConfigReader.getRootList(ThreddsConfigReader.java:62)
at thredds.servlet.ThreddsConfig.init(ThreddsConfig.java:64)
at
thredds.server.config.TdsContext.afterPropertiesSet(TdsContext.java:369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
... 29 more
Thanks,
Guan