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 |
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:
http://confluence.atlassian.com/display/BAMBOO/Using+Global%2C+Plan+or+Build-specific+Variables (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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.