Problems running tcc.jar under Linux

So we finally upgraded our TC server to 5.1.5 and I was planning on testing the remote build feature from my Linux (Mint 10) workstation. However, I keep getting an exception after logging in:

marco@kefka:~/Desktop$ java -jar ./tcc.jar login --host http://XXXXX --user marco
enter password:
Connecting to "http://XXXXX" TeamCity Server... done
Logging in.... done
login: error
java.lang.NoClassDefFoundError: jetbrains.buildServer.messages.Status
    at jetbrains.buildServer.messages.StatusConverter.class$(StatusConverter.java:25)
    at jetbrains.buildServer.messages.StatusConverter.<clinit>(StatusConverter.java:25)
    at jetbrains.buildServer.xstream.ServerXStreamFormat.formatXStream(ServerXStreamFormat.java:43)
    at com.jetbrains.teamcity.Storage$XMLStorageFS$1.configureXStream(Storage.java:162)
    at jetbrains.buildServer.messages.XStreamHolder.createXStreamInstance(XStreamHolder.java:86)
    at jetbrains.buildServer.messages.XStreamHolder.getXStreamInternal(XStreamHolder.java:44)
    at jetbrains.buildServer.messages.XStreamHolder.getXStream(XStreamHolder.java:51)
    at jetbrains.buildServer.messages.XStreamHolder.getXStream(XStreamHolder.java:39)
    at jetbrains.buildServer.xstream.XStreamWrapper.serializeObject(XStreamWrapper.java:83)
    at com.jetbrains.teamcity.Storage$XMLStorageFS.serializeObject(Storage.java:156)
    at com.jetbrains.teamcity.Storage$XMLStorageFS.save(Storage.java:180)
    at com.jetbrains.teamcity.Storage.flush(Storage.java:87)
    at com.jetbrains.teamcity.Storage.put(Storage.java:82)
    at com.jetbrains.teamcity.resources.TCAccess.setCredential(TCAccess.java:137)
    at com.jetbrains.teamcity.command.Login.execute(Login.java:37)
    at com.jetbrains.teamcity.command.CommandRunner.run(CommandRunner.java:71)
    at com.jetbrains.teamcity.command.CommandRunner.main(CommandRunner.java:89)

My coworker got the same thing in Ubuntu Maverick. Any ideas?

4 comments

I'm getting the same error on Mac OS X 10.6.6, java version "1.6.0_22", TeamCity Enterprise 5.1.5 (build 13602)

0

Hi Charles

The tool has separate branches for 5.0, 5.1, and 6.0 versions of TeamCity server.
Could you recheck installed version is compatible with your server instace.

Michael

0

Redownloaded tcc.jar just to be safe but I'm still getting the same thing.

Server: TeamCity Enterprise 5.1.5 (build 13602)

tcc.jar: TeamCity Commandline utility v5.0 EAP (build 316) Copyright 2000-2010 JetBrains s.r.o. (version mismatch?)


Does the command line tool come bundled with the server or does it have to be maintained separately?
0

Please sign in to leave a comment.