Closed markus101 closed 12 years ago
Hi Markus,
It turns out the readme is a bit limited, sorry about that.
From your error you will need to add the twitter api jar on the TeamCity server ( twitter4j-core-2.2.2.jar ) it can be found in the following location. All the jars I used to build it are in the /lib directory. https://github.com/ornatwork/tc_plugins/tree/master/tctweet/lib
Further in order for the tweets to appear on your build tweet account you need to change CxGlobal.java to include your own login, keys, tokens. You need to set it and then you can compile and create your own jar and use that on your TeamCity server. https://github.com/ornatwork/tc_plugins/blob/master/tctweet/src/com/deloitte/acs/CxGlobal.java
Ahhh, I didn't realize that I had to edit that, but I still seem to be getting the same error, I'm not 100% sure that I'm doing everything correctly, but I created a jar file and copied it + twitter4j-core-2.2.2.jar over to the lib directory on my TC server.
I restarted TC and got the same error, I also tried deleting tctweet.jar, leaving just twitter4j, I received the same error then as well. Perhaps I'm just doing something wrong, If I run the unit tests (from Eclipse) a test tweet ends up being posted to my Twitter account, so I know that I put in the right values, now I just have issues with TeamCity trying to load the jar file(s).
Ok, that's something, at least we know your twitter account works.
Did you drop the jars in here on the server ? both the plugin and the other. \TeamCity\webapps\ROOT\WEB-INF\lib
Can you also make sure you have all jars present on the server that are in the project /lib directory
Instead of ROOT its teamcity in my case (\TeamCity\webapps\teamcity\WEB-INF\lib) since I have youtrack running under the same Tomcat instance.
Annotations, OpenAPI, spring, spring-webmvc existed, but were different sizes, when I put the others in there I get a new error: http://pastebin.com/jKASY25n
Seems like some of the jars are not compatible, can you get your TeamCity directory to the initial state. ( I hope you have backup )
I did a minor update on the code you should get latest. The create jar.jardesc was also pointing incorrectly not outputting the jar in the root of the project.
Can you then try again, just using the tctweet.jar and the twitter4j jar
Thanks! That is working now, I re-copied over twitter4j as it looks like it somehow got corrupted during the copy before, so that may have been part of the issue. Thanks for all your help.
Excellent,
Running TeamCity: 6.5.4 (build 18046)
When I add tctweet.jar from the git repo to my TeamCity install it does not start and throws the error here: http://pastebin.com/gtgNdizz
If I remove tctweet.jar and restart TC everything begins working again.
Please let me know if any further information is required.