building with ant

I might be somewhat dimwitted, but it's sort of depressing the lack of polish in teamcity so far (I know, 1.0 release and all, but this seems like basic stuff...)

Basically, I can't build my projects with ant. I am using the stanalone install, and first of all, the default agent doesn't even have an ant builder registered. I had to manually unzip the ant builder as well as a number of others (ipr builder) in the plugins directory.

Now ant is an option, but when I try to actually use it, I get:

etbrains.buildServer.RunBuildException: java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:66)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$5.run(BuildAgentImpl.java:436)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
at jetbrains.buildServer.agent.ant.AntBuildRunner.composeAgentClasspath(AntBuildRunner.java:175)
at jetbrains.buildServer.agent.ant.AntBuildRunner.getVMProperties(AntBuildRunner.java:160)
at jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:69)
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:59)
... 2 more

I did the usual faffing about with ant165.jar, putting it in various places, without any luck. Is this is a known issue or am I just very unlucky?

4 comments
Comment actions Permalink

Did you redefine anthome for the build configuration? By default runner uses
bundled ant so you don't have to put in ant jar anywhere.
Please attach agent logs. They're located in agent/logs folder.
Thanks!

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Hani Suleiman" <hani@formicary.net> wrote in message
news:8916284.1160609364110.JavaMail.itn@is.intellij.net...
>I might be somewhat dimwitted, but it's sort of depressing the lack of
>polish in teamcity so far (I know, 1.0 release and all, but this seems like
>basic stuff...)
>

Basically, I can't build my projects with ant. I am using the stanalone
install, and first of all, the default agent doesn't even have an ant
builder registered. I had to manually unzip the ant builder as well as a
number of others (ipr builder) in the plugins directory.

>

Now ant is an option, but when I try to actually use it, I get:

>

etbrains.buildServer.RunBuildException: java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:66)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl$5.run(BuildAgentImpl.java:436)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
at
jetbrains.buildServer.agent.ant.AntBuildRunner.composeAgentClasspath(AntBuildRunner.java:175)
at
jetbrains.buildServer.agent.ant.AntBuildRunner.getVMProperties(AntBuildRunner.java:160)
at
jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:69)
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:59)
... 2 more

>

I did the usual faffing about with ant165.jar, putting it in various
places, without any luck. Is this is a known issue or am I just very
unlucky?



0
Comment actions Permalink

Hani Suleiman wrote:

I might be somewhat dimwitted, but it's sort of depressing the lack of polish in teamcity so far (I know, 1.0 release and all, but this seems like basic stuff...)

Basically, I can't build my projects with ant. I am using the stanalone install, and first of all, the default agent doesn't even have an ant builder registered. I had to manually unzip the ant builder as well as a number of others (ipr builder) in the plugins directory.


Pretty strange. Upon a startup, build agent downloads corresponding plugins from the server and
unzips them. If it wasn't the case, I'd appriciate if you create a Jira issue and attach build agent
logs (from TeamCity/buildAgent/logs directory).

Regards,
KIR

--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Should I delete everything in my plugins dir then rerun the agent so it can redownload everything and that way I get a logfile?

0
Comment actions Permalink

Hani Suleiman wrote:

Should I delete everything in my plugins dir then rerun the agent so it can redownload everything and that way I get a logfile?


I think so. This should work.

KIR


--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.