0

Problems when renaming teamcity.war to foo#bar.war

I am using version 7.0.2 (build 21349) of TeamCity and installing into an existing tomcat container, following the instructions here:

http://confluence.jetbrains.net/display/TCD7/Installing+and+Configuring+the+TeamCity+Server#InstallingandConfiguringtheTeamCityServer-InstallingTeamCityintoExistingJ2EEContainer

If I rename the teamcity-7.0.2.war file to foo.war in the webapps directory, then I'm able to see a complete working installation at http://localhost:8111/foo, as expected.

I would like to have the url for teamcity be http://localhost:811/foo/bar. As per the tomcat documentation here:

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

I rename the .war file to foo#bar.war, and browse to http://localhost:8111/foo/bar and everything *appears* to work fine. This is until I create a new project and attempt to add a new VCS root. The combo box which would usually contain a list of different VCS types is empty.

Type of VCS:                                     -- Choose type of VCS --                                                 


I have attached a complete log file from a minimal demonstration of the problem.

The first ERROR is cut and pasted below. My java-fu is weak, so I'm not sure how best to debug this issue.

So, a few of questions:

1) Is this a TeamCity bug, and should I submit a bug report?
2) Is there a bugfix/work around which I can apply?
3) If not, is there another way to easily have a TeamCity instance running at http://localhost:8111/foo/bar?

Cheers,

Tim

[2012-05-11 20:31:45,161]  ERROR - gins.spring.SpringPluginLoader - Failed to initialize spring context for plugin rest-api-6.0
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [jetbrains.buildServer.server.rest.data.ServerListener] for bean with name 'serverListener' defined in URL [file:/home/timl/tc/temp/spring-rest-api-6.06790097657395104054-spring.config.tmp.xml]; nested exception is java.lang.ClassNotFoundException: Class 'jetbrains.buildServer.server.rest.data.ServerListener' was not found
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1250)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at jetbrains.buildServer.plugins.spring.SpringPluginLoader$1.configsExtracted(SpringPluginLoader.java:65)
        at jetbrains.buildServer.plugins.spring.SpringPluginConfigExtracter.start(SpringPluginConfigExtracter.java:42)
        at jetbrains.buildServer.plugins.spring.SpringPluginLoader.pluginClassesLoaded(SpringPluginLoader.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:114)
        at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:66)
        at $Proxy5.pluginClassesLoaded(Unknown Source)
        at jetbrains.buildServer.plugins.PluginManagerImpl$2.visitPlugin(PluginManagerImpl.java:122)
        at jetbrains.buildServer.plugins.PluginsCollection.foreachLoadedPlugins(PluginsCollection.java:107)
        at jetbrains.buildServer.plugins.PluginManagerImpl.firePluginClassesLoaded(PluginManagerImpl.java:120)
        at jetbrains.buildServer.plugins.PluginManagerImpl.loadPlugins(PluginManagerImpl.java:80)
        at jetbrains.buildServer.web.plugins.PluginManagerConfigurator.initializePlugins(PluginManagerConfigurator.java:5)
        at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:3)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.createServerServlet(TeamCityDispatcherServlet.java:180)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerInternal(TeamCityDispatcherServlet.java:241)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerSafe(TeamCityDispatcherServlet.java:382)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.access$400(TeamCityDispatcherServlet.java:24)
        at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet$6.run(TeamCityDispatcherServlet.java:1)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.ClassNotFoundException: Class 'jetbrains.buildServer.server.rest.data.ServerListener' was not found
        at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.doLoadClass(TeamCityClassLoader.java:80)

        at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.loadClass(TeamCityClassLoader.java:37)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
        ... 28 more



Attachment(s):
teamcity-server.log.zip

0 comments

Please sign in to leave a comment.