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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

101 views 3 4
Join discussion

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