TeamCity .ipr Build Configurations Trouble

I have a simple web application that I'm trying to deploy to TC 1.1.1 and build using a .ipr build configuration. My project references two lilbraries: "Tomcat-5.5" which is an application server library in IDEA and includes the Tomcat runtime libs and "1.5" which is my JDK.

I get these errors while building on TC:

Reading IDEA config is skipped
Source project file: /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/WebApp-Reference.ipr
Loading libraries
Loading modules
Test roots are included
Checking project...
Error : Tomcat-5.5 - Library is referenced, but not defined
Container where it's expected to find the library:
- Global
Warning: 1.5 - Project JDK not found
Warning: Project: WebApp-Reference - No forms_rt.jar found in your project classpath. Add it if you use IntelliJ IDEA's form builder.
Checking done, errors: 1 warnings: 2
...

The error that ends up killing it is:

Reference 'global.library.Tomcat-5.5.path' not found

I've tried adding both a JDK and Library to the build configuration:

]]>

And then I set the properties in buildAgent.properties:

  1. Not sure which of system/global.system is right...

system.jdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/
global.system.jdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/

system.global.library.Tomcat-5.5.home=/opt/apache-tomcat-5.5.20
global.library.Tomcat-5.5.home=/opt/apache-tomcat-5.5.20

No matter what I do I get the same exact errors when the project builds.

Help! What am I missing???

Christian

3 comments
Comment actions Permalink

Hello Christian,

Could you please attach the whole build log (Log->All messages) and your
TeamCity configuration folder (.BuildServer/config)?

Thanks!

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


"Christian Nelson" <no_reply@jetbrains.com> wrote in message
news:14754218.1164959482848.JavaMail.itn@is.intellij.net...
>I have a simple web application that I'm trying to deploy to TC 1.1.1 and
>build using a .ipr build configuration. My project references two
>lilbraries: "Tomcat-5.5" which is an application server library in IDEA and
>includes the Tomcat runtime libs and "1.5" which is my JDK.
>

I get these errors while building on TC:

>

Reading IDEA config is skipped
Source project file:
/opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/WebApp-Reference.ipr
Loading libraries
Loading modules
Test roots are included
Checking project...
Error : Tomcat-5.5 - Library is referenced, but not
defined
Container where it's expected to find the library:
- Global
Warning: 1.5 - Project JDK not found
Warning: Project: WebApp-Reference - No forms_rt.jar found
in your project classpath. Add it if you use IntelliJ IDEA's form builder.
Checking done, errors: 1 warnings: 2
..

>

The error that ends up killing it is:

>

Reference 'global.library.Tomcat-5.5.path' not found

>

I've tried adding both a JDK and Library to the build configuration:

>

<path id="global.library.Tomcat-5.5.path">
<fileset dir="%system.global.library.Tomcat-5.5.home%">
<include name="**/*.jar"/> <!-- also tried "common/lib/*.jar" -->
</fileset>
</path>
<path id="jdk.1.5.classpath">
<fileset dir="%system.jdk.1.5.home%/jre/lib">
<include name="*.jar"/>
</fileset>
</path>

>

And then I set the properties in buildAgent.properties:

>

  1. Not sure which of system/global.system is right...

system.jdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/
global.system.jdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/

>

system.global.library.Tomcat-5.5.home=/opt/apache-tomcat-5.5.20
global.library.Tomcat-5.5.home=/opt/apache-tomcat-5.5.20

>

No matter what I do I get the same exact errors when the project builds.

>

Help! What am I missing???

>

Christian



0
Comment actions Permalink

The complete log:

Checking for changes (<1s)
Building in /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference
Getting project sources (30s)
taskdef (<1s)
generateBuild (1s)
Reading IDEA config is skipped
Source project file: /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/WebApp-Reference.ipr
Loading libraries
Loading modules
Test roots are included
Checking project...
Error : Tomcat-5.5 - Library is referenced, but not defined
Container where it's expected to find the library:
- Global
Warning: 1.5 - Project JDK not found
Warning: Project: WebApp-Reference - No forms_rt.jar found in your project classpath. Add it if you use IntelliJ IDEA's form builder.
Checking done, errors: 1 warnings: 2
Generating build...
Build saved to: /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/integrationBuild.xml
Build workspace saved to: /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/integrationBuild.xml.workspace
Unable to find /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/coverage.em, cannot create EMMA report
import (<1s)
property (<1s)
property (<1s)
import (<1s)
property (<1s)
property (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
patternset (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
path (<1s)
path (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
taskdef (<1s)
genTests (<1s)
Basedir = '/opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference'
GenerateJUnitTask (<1s)
GenerateJUnitTask (<1s)
Unable to find /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/coverage.em, cannot create EMMA report
import (<1s)
property (<1s)
property (<1s)
import (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
patternset (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
path (<1s)
path (<1s)
path (<1s)
path (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
property (<1s)
import (<1s)
taskdef (<1s)
checkRequirements (<1s)
fail (<1s)
checkReference (<1s)
Reference 'global.library.Tomcat-5.5.path' not found
Unable to find /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/coverage.em, cannot create EMMA report
Ant output: /usr/lib/jvm/jdk/bin/java -Djdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/ -Dbuild.working.dir=/opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference -Dbuild.number=8 -Demma.instrumentation.parameters=-ix -Test -Duser.language=en -Duser.country=US -Didea.build.server.buildType.id=bt1 -Dos.version=2.6.17-10-generic -Duser.timezone=SystemV/PST8PDT -Dfile.encoding=UTF-8 -Dfile.separator=/ -Dagent.work.dir=/opt/teamcity-1.1.1/buildAgent/work -Dos.arch=amd64 -Dsystem.global.library.Tomcat.5.5.home=/opt/apache-tomcat-5.5.20 -Dworking.dir=/tmp/idea14813runner -Dbuild.vcs.number.1=118 -Demma.report.html.out.encoding=UTF-8 -Duser.name=root -Dos.name=Linux -Dreport.html.out.file=coverage/index.html -Dant.task.extensions=jetbrains.buildServer.coverage.AntCoverageAdapter,jetbrains.buildServer.agent.ant.EchoAntExtension,jetbrains.buildServer.agent.ant.CompilerAntExtension,jetbrains.buildServer.testng.TestNGTaskExtension, -Didea.build.agent.port=9090 -Dglobal.library.Tomcat.5.5.home=/opt/apache-tomcat-5.5.20 -Dagent.classpath=/opt/teamcity-1.1.1/buildAgent/plugins/antPlugin/lib/buildServerAntServerLogging.jar:/opt/teamcity-1.1.1/buildAgent/lib/utils.jar:/opt/teamcity-1.1.1/buildAgent/lib/buildServerXmlRpcWrapper.jar:/opt/teamcity-1.1.1/buildAgent/lib/junit-3.8.1.jar:/opt/teamcity-1.1.1/buildAgent/plugins/testNGPlugin/lib/testNGAntExtension.jar:/opt/teamcity-1.1.1/buildAgent/plugins/coveragePlugin/lib/emma.jar:/opt/teamcity-1.1.1/buildAgent/lib/buildServerServerLogging.jar:/opt/teamcity-1.1.1/buildAgent/plugins/ant/lib/ant-launcher.jar:/opt/teamcity-1.1.1/buildAgent/lib/xmlrpc-2.0.1.jar:/opt/teamcity-1.1.1/buildAgent/lib/nanocontainer-1.0-RC-1.jar:/opt/teamcity-1.1.1/buildAgent/plugins/coveragePlugin/lib/buildServerCoverageAgent.jar:/opt/teamcity-1.1.1/buildAgent/lib/buildServerCommonRuntime.jar:/opt/teamcity-1.1.1/buildAgent/lib/commons-codec-1.3.jar:/opt/teamcity-1.1.1/buildAgent/lib/buildServerMessages.jar:/opt/teamcity-1.1.1/buildAgent/lib/xstream-1.1.2.jar:/opt/teamcity-1.1.1/buildAgent/lib/xpp3_min-1.1.3.4.M.jar -Dsuccessful.build.number=1 -Dsystem.jdk.JDK.1.5.0.home=/usr/lib/jvm/jdk1.5.0_09/ -Duser.home=/root -Didea.build.server.build.id=15 -Dant.home=/opt/apache-ant -Dpath.separator=: -Dbasedir=/opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference -Djunit.generator.lib=/opt/teamcity-1.1.1/buildAgent/plugins/iprPlugin/lib/buildServerIprRunner.jar -classpath /opt/apache-ant-1.6.5/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -lib /opt/teamcity-1.1.1/buildAgent/plugins/antPlugin/lib/buildServerAntRunntime.jar:/opt/teamcity-1.1.1/buildAgent/plugins/idea/lib/asm-commons.jar:/opt/teamcity-1.1.1/buildAgent/lib/resources_en.jar:/opt/teamcity-1.1.1/buildAgent/lib/junit-3.8.1.jar:/opt/teamcity-1.1.1/buildAgent/lib/jdom.jar:/opt/teamcity-1.1.1/buildAgent/plugins/idea/lib/asm.jar:/opt/teamcity-1.1.1/buildAgent/plugins/iprPlugin/lib/javac2.jar:/opt/teamcity-1.1.1/buildAgent/plugins/iprPlugin/lib/bd-ant-extensions.jar:/opt/teamcity-1.1.1/buildAgent/lib/buildServerRuntimeUtil.jar:/opt/teamcity-1.1.1/buildAgent/plugins/idea/lib/jgoodies-forms.jar -listener jetbrains.buildServer.agent.ant.AgentBuildListener -buildfile /tmp/idea14813runner/test-output.xml Buildfile: /tmp/idea14813runner/test-output.xml checkRequirements: BUILD FAILED /opt/teamcity-1.1.1/buildAgent/work/WebApp_Reference/checkRequirements.xml:5: Reference 'global.library.Tomcat-5.5.path' not found Total time: 1 second

Configuration Folder:

Ant build.xml Configuration ]]>
<param name="coverage.instr.parameters" value="-ix -Test" />
Intellij IDEA Project File Configuration ]]>
<param name="coverage.instr.parameters" value="-ix -Test" />
]]>

0
Comment actions Permalink

I managed to get my project to build... I had to define these variables in the buildAgentProperties:

system.jdk.1.5.home=/usr/lib/jvm/jdk1.5.0_09/
system.global.library.Tomcat-5.5.home=/opt/apache-tomcat-5.5.20/

And add these libraries from the TC interface:

]]>

I don't know what was out of whack when I started this thread, but alas, it's working now.

The build log is confusing to be however. The same error(s) are reported, but TC is able to build the application nonetheless. The errors are:

Checking project...
Error : Tomcat-5.5 - Library is referenced, but not defined
Container where it's expected to find the library:
- Global
Warning: 1.5 - Project JDK not found
Warning: Project: WebApp-Reference - No forms_rt.jar found in your project classpath. Add it if you use IntelliJ IDEA's form builder.
Checking done, errors: 1 warnings: 2

It can find both Tomcat-5.5 and 1.5, otherwise it wouldn't be able to build. Why is it still reporting these as errors? I'm happy it's working, though I'd like to understand what's going on (and get rid of these error messages).

Thanks,
Christian

0

Please sign in to leave a comment.