How to configure logging.jsp in JBoss EAP 6.x / Wildfly 8.2.x

Document ID : KB000043306
Last Modified Date : 14/02/2018
Show Technical Document Details


We need to deploy logging.jsp in a secure manner in our IM server in order to allow dynamic, on-the-fly modification for the logging level, for troubleshooting and sharing with CA Support.

This techdoc can be used without needing to refer back to the original Readme.txt under \CA\Identity Manager\IAM Suite\Identity Manager\tools\samples\Admin.



1. Copy the content of the sample from ..\CA\Identity Manager\IAM Suite\Identity Manager\tools\samples\Admin and place it under under IAM application EAR location \<JBOSS_HOME>\standalone\deployments\iam_im.ear.


2. Add the following section after last taglib tag in the file iam_im.ear\user_console.war\WEB-INF\web.xml - this change will secure the admin toolkit.
Repeat the environment specific section for each environment defined:

          <description>Security constraint for IAM Admin Tools</description>
        <!-- For each environment - start -->
        <!-- For each environment - end -->
            <description>only let the admin users use secured admin tools</description>
          <description>SSL not required</description>
        <realm-name>IAM Realm</realm-name>
      <description>The IAM Secure Admin Role</description>

3. Unlike older versions of JBoss, there is no longer need to recompile the jsp file, this is done automatically, by default, upon restart of the Application Server
   a) Delete <JBOSS_HOME>\standalone\tmp\work\jboss.web\default-host\iam_im
   a) Restart JBoss

4. Create a JBoss Application User by running add-user.bat / and following the example: (JBoss requires no restart or downtime)
Note: when implementing logging.jsp in a SecureCloud system where Editable ID has been configured, please ensure the jboss user is identical to the LoginIDWSUser user defined via the csp console / sps ( - both username and password have to be identical


What type of user do you wish to add?
 a) Management User (
 b) Application User (
(a): b

Enter the details of the new user to add.
Using realm 'ApplicationRealm' as discovered from the existing property files.
Username : imuser
Password recommendations are listed below. To modify these restrictions edit the
 configuration file.
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-a
lphanumeric symbol(s)
 - The password should be different from the username
Password :
Re-enter Password :
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank
 for none)[  ]: IAMAdmin
About to add user 'imuser' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'imuser' to file 'C:\wildfly-8.2.1.Final\standalone\configuration\application-users.prope
Added user 'imuser' to file 'C:\wildfly-8.2.1.Final\domain\configuration\application-users.propertie
Added user 'imuser' with groups IAMAdmin to file 'C:\wildfly-8.2.1.Final\standalone\configuration\ap'
Added user 'imuser' with groups IAMAdmin to file 'C:\wildfly-8.2.1.Final\domain\configuration\applic'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to
 server EJB calls.
yes/no? no
Press any key to continue . . .

Note: The role name "IAMAdmin" on the right of the file matches the <role-name> tag in the web.xml in step 2.

5. Browse to logging.jsp at http://<FQDN>:<8080>/iam/im/logging.jsp. User the credentials from step 4 to securely login to the page


Additional Information:


- More information on how to create security role and assign admin user to it using application server specific documentation:
- Tec554335 explains how to apply this configuration on the older JBoss 5.1 version