Teamcity Login through command line tool Throws JDOMException
I have a Teamcity version 10.0.4 (build 42538) and I'm trying to run personal builds from my machine using the command line tool of teamcity and when I try to login to teamcity I get the following JDOMException, any idea what could be the issue here? Definitely appreciate any pointers regarding this issue from all the experienced Teamcity users and admins out there!!
Login command:
java -jar tcc.jar login --host teamcity.hostname.com --user username
Error:
[ ] login: error
java.lang.NoClassDefFoundError: org/jdom/JDOMException
at com.jetbrains.teamcity.Storage$XMLStorageFS.load(Storage.java:132)
at com.jetbrains.teamcity.Storage.<init>(Storage.java:60)
at com.jetbrains.teamcity.Storage.getInstance(Storage.java:65)
at com.jetbrains.teamcity.resources.TCAccess.<init>(TCAccess.java:66)
at com.jetbrains.teamcity.resources.TCAccess.getInstance(TCAccess.java:5
7)
at com.jetbrains.teamcity.command.Login.execute(Login.java:47)
at com.jetbrains.teamcity.command.CommandRunner.run(CommandRunner.java:1
18)
at com.jetbrains.teamcity.command.CommandRunner.main(CommandRunner.java:
136)
Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
Please sign in to leave a comment.
Hi Jose,
this issue was reported a while ago and was fixed in newer releases: https://teamcity-support.jetbrains.com/hc/en-us/community/posts/115000148850-Cannot-login-via-TeamCity-Command-Line-Tool
Please upgrade.
Hi Jose,
sorry, a follow up to yesterday's comment. This was found and reported a while ago: https://youtrack.jetbrains.com/issue/TW-49969
If you can't upgrade, please check whether the workaround mentioned there works for you.