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

5 comments
Comment actions Permalink

I am having the same issue.
TeamCity Enterprise 10.0.2 (build 42234)

Command-line runner for personal builds
10.0-9

[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

0
Comment actions Permalink

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

0
Comment actions Permalink

Hi,


Does anyone have a fix to this issue?
I'm having a similar error, Please help !

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
0
Comment actions Permalink

Hi Jose,

 

I can confirm that with v2017.2.2 (build 50909), this is no longer a problem.

 

Jozsef

0
Comment actions Permalink

Thanks Jozsef,
I'll have to test out the plugin in the version of teamcity mentioned by you.

0

Please sign in to leave a comment.