This document describes how to configure a JBoss 7 Server as a Windows
service, for use with Cisco Cloud Portal.
This configuration allows JBoss Server to start automatically, as a
background process, whenever the Windows Server boots. The process does not
require a logged-in user to initiate it, and so will not be killed if that user
logs off. It will also restart automatically if the Windows Server
Readers of this document should have knowledge of these topics.
The information in this document is based on these hardware and
For more information on document conventions, refer to
Ensure you have administrator access to the Windows server on which
JBoss is installed, and that you have a text editor that supports search and
replace (such as Notepad). It is also handy, although not required, for the
server to have unrestricted web access.
Complete these steps:
On the www.jboss.org/jbossweb/downloads
web site, search for the current packages of the "Jboss Web
Native Connectors", and download the binaries appropriate for
the Windows operating system you are using. For example, if the current package
is at release 2.0.10, then download the zip file for binaries
Unzip the downloaded archive file to the JBoss root directory. For
If prompted to do so, overwrite any existing files with the same
Use your text editor to open the
service.bat file under the
<JBOSS_ROOT>\bin directory. Save a copy of
the file as service.old so you have a
Set the SVCNAME,
SVCDESC properties to something meaningful. For
set SVCDISP=JBoss Server for CSP release X
set SVCDESC=JBoss AS 7.1.1.Final - Windows x64 - CSP release X
Comment out the JAVA_OPTS property
by adding REM to the beginning of the line. For
REM set JAVA_OPTS=-X
Replace all occurrences of run.bat
Replace all occurrences of run.log
Replace all occurrences of the command
with this command
Save the modified service.bat
Launch the Windows command line and execute the following command
to install and register the "JBoss Server for CSP release X" service:
Open Server Manager > Configuration > Services
and verify that the "JBoss Server for CSP release X" service was
(Optional) Change the Startup Type for this
service to Automatic.
Start the "JBoss Service for CSP release X" service.
Check the log file
<JBOSS_ROOT>\bin\standalone.log to verify
that the JBoss server started up successfully.