cctray-standalone plugin available for TC7?

Hi all,

I've upgraded one of my build servers to TeamCity ver7, and attempted to use Yegor Yarko's CCTray plugin (which works great for 6.5).
Unfortunately, it doesn't appear to be supported or I've made an error when installing it.

Is there support for this CCTray plugin available for TeamCity 7?

Thanks.


Here's the output and stack trace I receive when attempting to browse to the '/guestAuth/app/cctray-standalone/cctray/projects.xml' page.

Error message: The scope of the component class  jetbrains.buildServer.server.rest.jersey.UrlBuilderProvider must be a  singleton
TeamCity: 7.0 (build 21241)
Operating system: Windows Vista (6.0, x86)
Java: 1.6.0_31-b05 (Sun Microsystems Inc.)
Servlet container: Apache Tomcat/7.0.23


Trace: java.lang.RuntimeException: The scope of the component class jetbrains.buildServer.server.rest.jersey.UrlBuilderProvider must be a singleton
     at com.sun.jersey.core.spi.component.ioc.IoCProviderFactory.wrap(IoCProviderFactory.java:99)
     at com.sun.jersey.core.spi.component.ioc.IoCProviderFactory._getComponentProvider(IoCProviderFactory.java:90)
     at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:150)
     at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:128)
     at com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:233)
     at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:182)
     at com.sun.jersey.core.spi.factory.InjectableProviderFactory.configure(InjectableProviderFactory.java:104)
     at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:580)
     at jetbrains.buildServer.server.rest.jersey.JerseyWebComponent.initiate(JerseyWebComponent.java:43)
     at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:253)
     at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:517)
     at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:199)
     at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:308)
     at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:642)
     at jetbrains.buildServer.server.rest.APIController.init(APIController.java:154)
     at jetbrains.buildServer.server.rest.APIController.ensureInitialized(APIController.java:293)
     at jetbrains.buildServer.server.rest.APIController.doHandle(APIController.java:203)
     at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:74)
     at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
     at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:149)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:3)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at jetbrains.buildServer.web.DiagnosticFilter.runChainWithModifiedThreadName(DiagnosticFilter.java:41)
     at jetbrains.buildServer.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:17)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
6 comments
Comment actions Permalink

Hmm.. Added a few more build configs this morning, and now all is working correctly.
Nothing to see here.

Apologies.

0
Comment actions Permalink

This has just happened again with a different machine acting as a server, the plugin is loaded, and there's multiple configs, all built at least twice.
I can't see how to resolve this issue at all.

Does anyone have any clues?

Thanks

0
Comment actions Permalink

It appears to be related to the guest user login, it's enabled on my server, but generates that error when I attempt to use the CCTray plugin with it.
I've resolved it by logging into the page using my admin account (http://user:pass@teamcity.server/httpAuth/app/rest/cctray/projects.xml), so I'm pleased to continue with that.
Shame the guest user can't appear to use this plugin though.

0
Comment actions Permalink

Jim,
CTray support is bundled with TeamCity 7.0, see more: http://confluence.jetbrains.net/display/TW/REST+API+Plugin#RESTAPIPlugin-CCTray
It would be great if you can try the bundled URL (you can remove old cctray plugin from .BuildServer/plugins) and let us know if the issue is reproducible with the bundled URL.

0
Comment actions Permalink

Thanks for the response Yegor,
I've just switched to using that address, and I'll remove that plugin as soon as my build queue relaxes.
I'll let you know if I can replicate this issue without the plugin.

Thanks,

0
Comment actions Permalink

Yup, that's perfect.
Works correctly without the old cctray plugin present.

Thanks again.

0

Please sign in to leave a comment.