package javax.servlet does not exist

Hi,

we 're evaluating TeamCity 2.1.

I wish to build a web application. But unfortunatly the build fails because no javax.servlet package is found.

The web application has several modules and should run on JBoss. We configured the build to run with .ipr

First try, we were using javaee.jar et j2ee.jar file from the idea folder to compile.
Of course, the file wasn't there on the teamcity installation and fails.

Second try, after reading this post (http://intellij.net/forums/thread.jspa?messageID=5190130??), we replace javaee.jar with a reference to the JBoss library (module -> dependencies -> add -> Application Server Library -> JBoss.4.2.0.GA) and pay attention to avoid space char in the name.
This try fails with error : /.../teamcity/buildAgent/work/Server/Project/%system.global.library.JBoss.4.2.0.GA.path% not found.

Third try : we add the system property for the agent. This property points to a JBoss installation. And this try also fail with errors like package javax.* does not exist

What's wrong ? How to process to make a web build successfull ?

Thanks,

Benoit

Message was edited by:
Benoit

1 comment

I found the solution.

in buildAgent/conf/buildAgent.properties,

add : system.global.library.JBoss.4.2.0.GA.path=/....../jboss-4.2.0/server/default/lib


now, the integrationBuild.xml.workspace contains
]]>

0

Please sign in to leave a comment.