Install JBoss 7 on an Ubuntu 11.10 server

Mar 4

The installation of JBoss is not very difficult. I was in doubt whether or not I would take the whole application server under version control using Git. For now, I took a simple approach and I did the following steps:

  1. su
  2. wget
  3. tar -xvvzf jboss-as-7.1.0.Final.tar.gz
  4. mv jboss-as-7.1.0.Final /usr/share/jboss/
  5. cd /usr/share/jboss/
  6. ln -s jboss-as-7.1.0.Final jboss-current
  7. adduser --system --no-create-home --disabled-password --disabled-login --group jboss
  8. cd /usr/share/
  9. chown -R jboss:jboss jboss/
  10. exit

The next step is to install JBoss as a service. The explanation on Stackoverflow is clear, but requires some tweaks to set the path correct to your settings. Moreover, to stop the server you do not call sudo -u jboss sh ${JBOSS_HOME}/bin/, but sudo -u jboss sh ${JBOSS_HOME}/bin/

That's it enjoy!