I've been working on an IssueProvider implementation to integrate our TeamCity 5.1.5 instance with our system for tracking UserStories.
The server provides a rest interface, so I thought that I might be able to to use Jersey to implement my client.
In my sandbox, everything works as I expect.
When bundled into a plugin, I start to have problems
com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.sun.jersey.api.representation.Form, and MIME media type, application/x-www-form-urlencoded, was not found
As best I can tell, what's happening here is that Jersey is defining a bunch of important readers in writers in jersey-core-1.1.4.jar/META-INF/services, and when run in the context of a teamcity server side plugin, these aren't getting picked up.
Has anybody managed to work around this problem?