Cannot login via TeamCity Command Line Tool
Hi folks,
I'm using TC10 and cannot login from the command line tool. I followed the plugin instructions, created the .teamcity-mappings.properties file under my project, pointing to a github repository. Then I attempt to login and I get:
$ java -jar tcc.jar login --host http://localhost:8111 --user jbakosi
enter password:
[Connecting to "http://localhost:8111" TeamCity Server] started
[Connecting to "http://localhost:8111" TeamCity Server] done
[Logging in] started
[Logging in] done
[ ] 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:57)
at com.jetbrains.teamcity.command.Login.execute(Login.java:47)
at com.jetbrains.teamcity.command.CommandRunner.run(CommandRunner.java:118)
at com.jetbrains.teamcity.command.CommandRunner.main(CommandRunner.java:136)
Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more
Could someone please help diagnose this problem?
Thanks,
Jozsef
Please sign in to leave a comment.
I am having the same issue.
TeamCity Enterprise 10.0.2 (build 42234)
[Logging in] started
[Logging in] done
[ ] 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:57)
at com.jetbrains.teamcity.command.Login.execute(Login.java:47)
at com.jetbrains.teamcity.command.CommandRunner.run(CommandRunner.java:118)
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
I was able to get it to work by using this (#trunk-75 (09 Aug 16 15:24)) version from the EAP build:
https://teamcity.jetbrains.com/viewLog.html?buildId=837275&tab=buildResultsDiv&buildTypeId=bt312
Hi,
Does anyone have a fix to this issue?
I'm having a similar error, Please help !
Login command:
Error:
Hi Jose,
I can confirm that with v2017.2.2 (build 50909), this is no longer a problem.
Jozsef
Thanks Jozsef,
I'll have to test out the plugin in the version of teamcity mentioned by you.