Rebuilding Jboss from source code

Opinion
Nov 15, 20041 min

* Dr. Internet columnist Steve Blass offers advice on rebuilding Jboss from source code

How can we build a Jboss Web application server from the source code? When we try to do it in our integrated development environment, we get project configuration errors because the source code is arranged differently than our tools expect.

Jboss is most easily built by running the included build scripts from the command line.

The Jboss distribution packages build from the command line without much trouble. To build the Jboss application server you need Jboss from www.jboss.org and a Java Development Kit (JDK). You also will need Ant from ant.apache.org .

Install your JDK. Unzip Ant and add the antbin directory to your PATH environment variable. Unzip the Jboss distribution into a clean directory and run the build script found in the build directory. If all goes well the application server will be compiled and placed in a directory named “output” inside the build directory. Go to the ‘buildoutputbin’ directory and execute the ‘run’ script.

Test the installation by aiming your browser at

https://localhost:8080/jmx-console

If you see the Jboss console page, you have successfully built Jboss and can deploy applications.

Be sure to change the default admin password to protect console access.