TeamCity 2.0 Tomcat trouble.

I'm using Gentoo Linux with Tomcat 6.0.

I've copied TeamCity-2.0.war in webapps directory, but when I try to start it(using tomcat manager) it fails:

-


May 28, 2007 11:05:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
TeamCity data path directory: /dev/null/.BuildServer
Cannot find /dev/null/.BuildServer/config/database.properties.
Use database settings from buildServerSpring.xml
ERROR - work.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildServer' defined in ServletContext resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.RuntimeException: Failed to create directory: /dev/null/.BuildServer/system
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.RuntimeException: Failed to create directory: /dev/null/.BuildServer/system
java.lang.RuntimeException: Failed to create directory: /dev/null/.BuildServer/system
at jetbrains.buildServer.util.FileUtil.createDir(FileUtil.java:97)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.]]>(BuildServerImpl.java:612)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:703)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.manager.ManagerServlet.start(Unknown Source)
at org.apache.catalina.manager.HTMLManagerServlet.start(Unknown Source)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source)
at org.apache.coyote.http11.Http11Processor.process(Unknown Source)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Unknown Source)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
May 29, 2007 11:56:53 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 29, 2007 11:56:53 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
-


1 comment

Hi Dmitry!

Looks like user.home system property is not available to TeamCity in your installation.
Please pass teamcity.data.path system property with location of TeamCity data files directory (like /home/teamcity/data:

-Dteamcity.data.path=/home/teamcity/data

Ensure that /home/teamcity/data is writable to the Tomcat process.

Hope this helps,
KIR

0

Please sign in to leave a comment.