Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 3. Installing JBoss Web Server on Microsoft Windows
3.1. Installing a Java Development Kit (JDK) Copier lienLien copié sur presse-papiers!
Before installing JBoss Web Server on Microsoft Windows, you must first install a supported Java Development Kit (JDK).
For a list of supported configurations, see the Red Hat Customer Portal article: JBoss Web Server 3 Supported Configurations.
For instructions on installing the IBM JDK, visit: https://www.ibm.com/developerworks/java/jdk/
To install the Oracle Java Development Kit:
- Download the Oracle JDK 1.7 or 1.8 for your operating system and architecture. You can download the JDK installation file from the Oracle website: http://www.oracle.com/technetwork/java/javase/downloads/index.html.
- Double-click the downloaded file to start the installation.
- Proceed as instructed in the installation window.
3.2. Downloading and Extracting JBoss Web Server Copier lienLien copié sur presse-papiers!
To install JBoss Web Server, download and extract the installation ZIP files.
Downloading JBoss Web Server
- Open a browser and log in to the Red Hat Customer Portal.
- Click Downloads.
- Click Red Hat JBoss Web Server in the Product Downloads list.
- Select the correct JBoss Web Server version from the Version drop-down menu.
Click Download for each of the following files, ensuring that you select the correct platform and architecture for your system:
-
Red Hat JBoss Web Server 3.1 Application Server (
jws-application-servers-3.1.0-<platform>-<architecture>.zip)
-
Red Hat JBoss Web Server 3.1 Application Server (
Extracting JBoss Web Server
Unzip the downloaded ZIP files to your installation directory.
The directory created by extracting the ZIP archives is the top-level directory for JBoss Web Server. This is referred to as
JWS_HOME.
3.3. Configuring the JBoss Web Server Installation Copier lienLien copié sur presse-papiers!
Some configuration is required before running JBoss Web Server. This section includes the following configuration procedures:
Setting Environment Variables
- Log in to an account with local administrator permissions.
-
Go to Control Panel
System. - Click on the Advanced tab.
- Click the Environment Variables button.
- Click the New button for System Variables.
-
For
JAVA_HOME,TMP, andTEMP, enter the appropriate name-value pairs for your system. -
For the SSL Connector to work, you will also need to add
JWS_HOME\binto thePATHenvironment variable of the user that the services will run under. This user isSYSTEMby default.
Running the Post-Installation Scripts
Open a command prompt with administrator privileges and change to the
etcfolder of your JBoss Web Server installation:cd /D "JWS_HOME\etc"
cd /D "JWS_HOME\etc"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the Tomcat post-installation script using the following command:
call postinstall.tomcat.bat
call postinstall.tomcat.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow The script creates the required symbolic links (junction points) for temporary logging and configuration directories.
Installing the Tomcat Service
Open a command prompt with administrator privileges and change to the
binfolder for your Tomcat version:cd /D "JWS_HOME\share\tomcat<VERSION>\bin"
cd /D "JWS_HOME\share\tomcat<VERSION>\bin"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the Tomcat service with the following command:
call service.bat install
call service.bat installCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Enabling log4j Logging for Tomcat
-
Open a command prompt with administrator privileges and change to
JWS_HOME\share\extras\. Copy the log4j files to the
libfolder for your Tomcat version:copy log4j-eap6.jar log4j.properties tomcat-juli-adapters.jar ..\tomcat<VERSION>\lib
copy log4j-eap6.jar log4j.properties tomcat-juli-adapters.jar ..\tomcat<VERSION>\libCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
tomcat-juli.jarfile in your Tomcatbindirectory with thetomcat-juli.jarfile fromJWS_HOME\share\extras\:copy tomcat-juli.jar ..\tomcat<VERSION>\bin
copy tomcat-juli.jar ..\tomcat<VERSION>\binCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Configuring Folder Permissions for the JBoss Web Server Services
Follow this procedure to ensure that the account used to run the services has full control over the JWS_HOME folder and all of its subfolders:
-
Right-click the
JWS_HOMEfolder and click Properties. - Select the Security tab.
- Click the Edit button.
- Click the Add button.
-
In the text box, enter
LOCAL SERVICE. -
Select the Full Control check box for the
LOCAL SERVICEaccount. - Click OK.
- Click the Advanced button.
-
Inside the Advanced Security Settings dialog, select
LOCAL SERVICEand click Edit. - Select the check box next to the Replace all existing inheritable permissions on all descendants with inheritable permissions from this object option.
- Click OK through all the open folder property windows to apply the settings.
3.4. Starting JBoss Web Server Copier lienLien copié sur presse-papiers!
To start JBoss Web Server, you must start the following:
- Tomcat (7 or 8)
You can start the services from a command prompt, or with the Computer Management tool.
Starting JBoss Web Server from a Command Prompt
- Open a command prompt with administrator privileges.
Start the Tomcat service:
net start tomcat<VERSION>
net start tomcat<VERSION>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Starting JBoss Web Server from the Computer Management Tool
-
Go to Start
Administrative Tools Services. -
In the Services list, right-click the name of the service (
tomcat) and click Start.
Some third-party applications add libraries to the system directory in Windows. These take precedence over Tomcat libraries when looked-up. This means that if those third-party libraries have the same name as the those used by Tomcat native libraries, they are loaded instead of the libraries distributed with JBoss Web Server.
In this situation, Tomcat may not start, and does not log any error messages in the Windows Event Log, or Tomcat log files. Errors can only be seen by using catalina.bat run.
If this behavior occurs, inspect the contents of the C:\windows\System32\ directory and other PATH directories, and ensure that there are no DLLs conflicting with those delivered with JBoss Web Server. In particular, look for libeay32.dll, ssleay32.dll, and libssl32.dll.
3.5. Stopping JBoss Web Server Copier lienLien copié sur presse-papiers!
To stop JBoss Web Server, you must stop the following:
- Tomcat
You can stop the services from a command prompt, or with the Computer Management tool.
Stopping JBoss Web Server from a Command Prompt
- Open a command prompt with administrator privileges.
Stop the Tomcat service:
net stop tomcat<VERSION>
net stop tomcat<VERSION>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Stopping JBoss Web Server from the Computer Management Tool
-
Go to Start
Administrative Tools Services. -
In the Services list, right-click the name of the service (
tomcat) and click Stop.