Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These are the basic steps that will be taken to set up the Windows Service. 


indent
Level1

Step 1:  Copy Files to Wildfly Directory


indent
Level1

Step 2:   Update the Service Batch File Settings


indent
Level1

Step 3:   Install the Service


indent
Level1

Step 4:   Update the Windows Service Properties


indent
Level1

Step 5:   Verify Wildfly Service Started

...


Step 1: Copy Files to Wildfly Directory

 


Steps to Copy Files

...


indent
Level1

1. Go to YOUR_WILDFILY_HOME_DIR\docs/contrib/scripts.


indent
Level2

Example: C:\opt\wildfly-10.0.0.Final\docs/contrib/scripts


indent
Level1

2. Copy the service folder to C:\opt\wildfly-10.0.0.Final\bin

...


Step 2: Update the Settings in the Service Batch File

One of the files you copied to your Wildfly directory was service.bat.

 


Steps to Modify service.bat

...


...

indent
Level1

1. Go to YOUR_WILDFILY_HOME_DIR\bin

...

\service


indent
Level2

Example: C:\opt\wildfly-10.0.0.Final\bin\service


indent
Level1

2. Locate the service.bat file and open it in Edit Mode.


Tip
titleTip

If you are installing multiple servers you may want to update these settings with something that is more meaningful. The DISLAYNAME will appear in your Windows Services list so if you are installing multiple servers on the same windows machine you may want to update these settings with something that is more meaningful.

Example: If you have a development and production environment you may want to update the settings to one of the following.

      DISPLAYNAME=Wildfly Application Server 10.0.0.Final Development
      DISPLAYNAME=Wildfly Application Server 10.0.0.Final Production

The SHORTNAME needs to be unique

 



indent
Level1

4. To prevent memory loss issues you need to modify the JAVA_OPTS setting to increase the memory.


indent
Level3


Current Setting

New Setting

JAVAOPTS=-Xrs

JAVAOPTS=-Xmx1024M -Xms512M -XX:MaxPermSize=512M -Xrs

...



Step 3: Install the Service

The third step in this process is to install the service.

 


Installation Steps

...


...

indent
Level1

1. Open the Windows Command Prompt as an Administrator.


indent
Level1

2. Enter the following command to change your directory to the bin directory in your WILDFLY directory.


Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
borderStylesolid
titleChange Directory Command


indent
Level1

CD YOUR_WILDFLY_HOME_DIR\bin



indent
Level2

Example: C:\opt\wildfly-10.0.0.Final\bin


Info
titleNote

If you have set your JBOSS_HOME system variable you can replace the Wildfly directory path with %JBOSS_HOME%.

Example: CD %JBOSS_HOME%\bin


indent
Level1

3. Enter the following command to install the service.


Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
borderStylesolid
titleChange Directory Command


indent
Level1

service install



indent
Level1

4. Provided there are no errors the service will be installed.

...


Step 4: Update the Windows Service Properties

The fourth step is to update the properties of the service you just installed. During this step we will set the JBoss service to start automatically and we will start the service to make sure it was installed correctly.

 


Steps to Update Properties

...


...

indent
Level1

1. Go to your Administrative Tools directory


indent
Level2

a. Click on Start and select Control Panel.


indent
Level2

b. In the Control Panel click on System and Security.


indent
Level2

c. Click on Administrative Tools


indent
Level1

2. Double click on Services to display a list of local services installed on your server.


indent
Level1

3. Scroll to the service called Wildfly Application Server.


Note
titleImportant

The actual name that appears in the list of services depends on what you entered in the service.bat file for the DISPLAYNAME setting.


indent
Level3

Image Modified


indent
Level1

4. Using the mouse, right click on the name of the service to display the pop-up menu.


indent
Level1

5. Select Properties to open the Properties Window.


indent
Level3

Image Modified


indent
Level1

6. At Startup Type select Automatic from the drop-down list.


indent
Level1

7. Click on Start to start the Wildfly services.


indent
Level1

8. A dialog window will open displaying the progress of starting the service.


indent
Level3

Image Modified


indent
Level1

9. Once the startup process is complete click on OK to save the changes.

...


Step 5: Verify Wildfly Server Started

The fifth and final step is to verify the Windows service started your Wildfly server.

 


Verification Steps

...


indent
Level1

1. Open a web browser and enter the following address:


indent
Level3

http://localhost:9090/


indent
Level1

2. The Wildfly Welcome page will display if your Wildfly server started correctly.


indent
Level3

Image Modified