REST plugin error with 8.0.5

I just upgraded to 8.0.5 from 8.0.4 and my REST plugin started getting the following error.  Any ideas?

[2013-11-14 12:28:54,296]  ERROR - gins.spring.SpringPluginLoader - Failed to initialize spring context for plugin tcstalker

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from plugin: tcstalker#tcstalker-rest-api.jar!/META-INF/build-server-plugin-rest-api.xml; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)

 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)

 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)

 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)

 at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)

 at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)

 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)

 at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)

 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)

 at jetbrains.buildServer.plugins.spring.SpringPluginLoader.pluginClassesLoaded(SpringPluginLoader.java:72)

 at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115)

 at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)

 at com.sun.proxy.$Proxy7.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:10)

 at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:19)

 at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:17)

 at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:407)

 at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:240)

 at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:475)

 at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:195)

 at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:20)

 at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:2)

 at java.lang.Thread.run(Unknown Source)

Caused by: org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:126)

 at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1330)

 at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)

 at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)

 at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)

 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)

 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)

 ... 32 more

2 comments
Comment actions Permalink

I should say that I basically started with the rest api plugin (http://svn.jetbrains.org/teamcity/plugins/rest-api/branches/Gaya-8.0.x/) but I pinned the JARs from my TeamCity distribution and modified the build file accordingly.  It worked in 8.0.4 but doesn't work now.  I found this thread with my same problem...
http://forum.spring.io/forum/spring-projects/container/38184-classloader-problems-after-upgrade-namespacehandler-interface

...but I don't know what other spring.jar it could be picking up.  BTW, after I upgraded to TC 8.0.5, I updated all my pinned JARs with whatever I could find under the TeamCity dist dir.

0
Comment actions Permalink

Argh, nevermind.  I was accidentally packaging up all the JARs that I pinned.

0

Please sign in to leave a comment.