Error in Classpath for ant builds, how can i config that ?

Hi im new to bamboo and cant figure out how to do figure the classpath in the server for bamboo build with ant the project in the svn... How can i config this? Im getting this error

1-Out-2011 18:31:42 BUILD FAILED
11-Out-2011 18:31:42 C:\Users\Administrador\bamboo-home\xml-data\build-dir\TVMAISWEB-TVMW-JOB1\tvmais-web\nbproject\build-impl.xml:251: The Java EE server classpath is not correctly set up - server home directory is missing.
11-Out-2011 18:31:42 Either open the project in the IDE and assign the server or setup the server classpath manually.
11-Out-2011 18:31:42 For example like this:
11-Out-2011 18:31:42 ant -Dj2ee.server.home=<app_server_installation_directory>
11-Out-2011 18:31:42
11-Out-2011 18:31:42 Total time: 0 seconds

1 answer

Have you tried running the build with ant locally, outside Bamboo? Does it work? It sounds like whatever ant is doing on your behalf as part of your build has not been given all the information it needs.

If the application server the ant build wants is present on the agent where the build is running then perhaps an environment variable already exists there which you can reference?

You can pass environment variables in Bamboo as part of your build task or build command: (Bamboo 3.3)

But most of what you need should be handled by Ant. All that Bamboo should do, in most cases, is call 'ant build' or 'ant install' or similar for you.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,802 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you