Introduction
This article explains how to install and start the JBoss “default” server.
The examples discussed in the next few articles used 4.3.4.GA, but, in theory, any 4.x or later JBoss installation will be acceptable.
The examples were tested under the “default” server configuration that ships with JBoss.
Install JBoss
- Download JBoss from http://www.jboss.org/jbossas/downloads/.
- Install JBoss into the $JBOSS_HOME of your choosing following the instructions given here and here.
- Create a file called jboss_start.sh in $JBOSS_HOME/bin, which contains the following:
#!/bin/bash
JAVA_HOME=PATH_TO_JAVA
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH CLASSPATH
SERVER_NAME=$1
if [ -d “../server/${SERVER_NAME}/log” ];
then
nohup ./run.sh -c ${SERVER_NAME} > ../server/${SERVER_NAME}/log/out.log 2>../server/${SERVER_NAME}/log/err.log &
else
echo “Not a valid path.”
fi
exit 0
Start JBoss “default” Server
- This script can be used to start the JBoss container. Run $JBOSS_HOME/bin/jboss_start.sh “server_name”.
- “server_name” should match up with a directory (containing the appropriate directory structures).
- Check for errors during start up in $JBOSS_HOME/server/${SERVER_NAME}/log/server.log. Standard error will be redirected to $JBOSS_HOME/server/${SERVER_NAME}/log/err.log. Standard out will be redirected to $JBOSS_HOME/server/${SERVER_NAME}/log/out.log.
The “default” JBoss instance is now running. This will be used for future examples on Thinkmiddleware.com. Anytime a restart is required, steps 3-5 above will be referenced.
Additional Notes
Additional information about JBoss will be given in future articles.