Troubleshooting
Problem
Due to JMX-related conflict with embedded Derby with JBoss, you may find that the configured server has issues once all the JRules modules are configured with JBoss. To prevent issues and simplify the installation process we provide here a build script to automate the installation and configuration of DVS, RTS, RES on JBoss server 5.0.1.
Symptom
After following through the documentation steps for integrating JBoss with JRules, users notice that the installation is not successful and the serve log contains exceptions.
Resolving The Problem
The automation is delivered as ant build script. The script provides multiple targets for installing and configuring JRules with JBoss.
- The ANT target "installjboss" will:
- The ANT target "installsample" will:
- The ANT target "runserver" will start the configuration created
- The ANT target "killjboss" will stop the configuration created
1. Download a JBoss installer and install JBoss, if no installation is already available.
2. Update the default configuration in order to remove unnecessary setup related to JSF.
3. Install RTS , RES and DVS if available.
1. Install derby driver into the server configuration.
2. Configure the sample database delivered with JRules.
3. Setup the user permission accordingly.
After running the task installjboss if you do not want to use the sample Derby databases you need to complete the configuration of JBOSS according to the installation manual.
For RTS complete
- Creating a data source and connection pool
- Configuring Security
For RES complete
- Creating a data source to access the Rule Execution Server database
- Configuring Security
The "build.properties" file contains initialization of variables that are used to parameterize the build.xml script. You need to make sure the properties in this file are accurately defined to represents your environment:
- jrules.homedir: This variable specifies the absolute path of the installation of JRules directory.
- jboss.server.configuration: This variable specifies the location of the server configuration directory.
Currently the JRules installation only works with a "default" configuration. If you are using a custom configuration then it must be a copy of the configuration "default".
Note
To simplify the use of the ant tasks on both Windows and Linux, command files and shell files are also provided in the attachment. ( If ANT is not setup by default on your machine, edit the .bat file or .sh file in order to specify the path to ANT. Note that the folder <jrules-install>/shared/tools/ant contains an installation. )
The command script available are:
- installJRules-JBoss to install and configure JBoss with JRules with all the modules (DVS, RES, RTS). This command will not configure data source OR the users and groups, so that you have the flexibility to configure these settings. For more information on these steps, refer to the installation manual.
- install-Samples to configure JBoss with the sample databases.
- startJBoss. to start the server configuration on port 8080.
- stopJBoss to stop the running JBoss server.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21452375