I’m trying to set up a Web Project created in the NetBeans IDE on Hudson for testing. It is configured to be deployed in a Tomcat server.
Everything is set up but I get a failure during execution of the job:
.../jobs/Xinco Web/workspace/trunk/XincoWebApp/nbproject/build-impl.xml:256: The Java EE server classpath is not correctly set up - server home directory is missing.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
ant -Dj2ee.server.home=<app_server_installation_directory>
I saw an example of working around this but for GlassFish. See the Build and Test by Hudson section here.
Any ideas?
Edit: The referenced link allows compilation to happen without a server, just referencing a jar file. I would like to do the same.
Go into Hudson, select your XincoWebApp job, and select “Configure”.
In the Build section, where you have your Ant task to build your job, click on the
Advanced...button to expand the Hudson options. One of the new options should be labeledJava Options. Inside that input box, put in the text-Dj2ee.server.home=<app_server_installation_directory>where you replace<app_server_installation_directory>with the actual directory where your app server lives on the Hudson server.