Jun 16

WaveMaker Application deployment to JBoss

WaveMaker Apps can be exported as a WAR file. This generated file can be deployed to any standard Java Web Server running on JDK 1.8. This section walks through the steps to deploy WaveMaker app to JBoss – WildFly. You can know more about Deployment to Web Server from here.

Prerequisites

JBoss Server setup

  • You need to configure JBoss server. see here for details.
    NOTE: Deployment has been tested on JBoss WildFly versions 11.0.0.CR1 and 10.1.0.Final
  • Login to JBoss server with valid username and password.

Start JBoss Server

  • Navigate to “\jboss-[version]\jboss-[version]\bin“.
    • Windows: Double click on standalone.bat file to start JBoss server
    • Linux: Double click on standalone.sh file to start JBoss server
  • Open Browser and navigate to http://localhost:9990 as JBoss by default starts in 9990 port.

The Project sources zip/directory
Export Project as zip from WaveMaker.

Preparing WAR File

From WaveMaker Studio, for the app that you want to deploy to JBoss, Export the app as WAR file using the appropriate configurations. See here for more.

Deploy to JBOSS Server

(NOTE: The screenshots from JBoss website were current at the time of documentation. The actual images might differ)

JBoss-WildFly

  • Copy prepared war file into JBoss home dir\standalone\deployments
  • Open JBoss terminal and check app deployment logs for deployment status
  • Once success message is displayed in the terminal navigate to http://localhost:8080/ to view the deployed application.

Deploying Application that uses JNDI Datasource

Configure JNDI in JBOSS Server

Configure JNDI for Oracle database server

  • Navigate to folder “..\Jboss Home Directory\modules\system\layers\base\com”. Create structure ..\oracle\oracle\main.
  • Copy ojdbc6-11.2.0.jar in the main directory.
  • Add following details to module.xml file (in main directory).
  • Open standalone.xml file in ‘..Jboss home directory\standalone\configuration’.
  • Add following details in profile.

Use JNDI name in the application using Config Profiles

  • Click on settings menu in project workspace and create a new profile.
  • Select datasource as JNDI and provide jndi name in the respective text box.
  • Save profile and close settings.
  • Export war for the newly created profile.
  • Save the war file

Deploy to JBOSS Server
click here

Troubleshooting

    • To know on which port the application is being running open \jboss-home-directory\standalone\configuration\standalone.xml
    • And search <socket-binding name="http"
    • On this port the application will be running.

 
We use cookies to provide you with a better experience. By using our website you agree to the use of cookies as described in our Privacy Policy.