Giter VIP home page Giter VIP logo

Comments (7)

ornatwork avatar ornatwork commented on August 22, 2024

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

from tc_plugins.

markus101 avatar markus101 commented on August 22, 2024

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).

from tc_plugins.

ornatwork avatar ornatwork commented on August 22, 2024

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

from tc_plugins.

markus101 avatar markus101 commented on August 22, 2024

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

from tc_plugins.

ornatwork avatar ornatwork commented on August 22, 2024

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

from tc_plugins.

markus101 avatar markus101 commented on August 22, 2024

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.

from tc_plugins.

ornatwork avatar ornatwork commented on August 22, 2024

Excellent,

from tc_plugins.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.