How to deploy WSO2 ESB 2.0.2 in JBoss 5.0.0 GA

This post describes the steps to deploy WSO2 ESB-2.0.2 on JBOSS 5.0.0 GA in Windows platform/environment.

Step 1:
  • Extract the downloaded zip into a directory.
  • Copy conf, database, repository and resources directories in to a folder namely wso2esb (Eg: C:\wso2esb)


Step 2:
  • Create a new folder namely wso2esb.war in location JBOSS_HOME\server\default\deploy directory.
  • Copy the WEB-INF folder located in wso2esb-2.0.2\webapps\ROOT\WEB-INF to JBOSS_HOME\server\default\deploy\wso2esb.war


Step 3:
  • Open file JBOSS_HOME\server\default\deploy\jbossweb.sar\server.xml and paste the follwing entry (remember to edit the keystoreFile & keystorePass in this entry) <!-- SSL/TLS Connector configuration using the admin devl guide keystore--> <Connector protocol="HTTP/1.1" SSLEnabled="true" port="8443" address="${jboss.bind.address}" scheme="https" secure="true" clientAuth="false" keystoreFile="C:\wso2esb\resources\security\wso2carbon.jks" keystorePass="wso2carbon" sslProtocol = "TLS" />


Step 4:
  • Open file carbon.xml which can be found at location wso2esb\conf directory.
  • Edit the ServerURL element as <ServerURL>https://localhost:8443/wso2esb/services/</ServerURL>
  • Save and close the carbon.xml file
  • Open registry.xml which can be found at location wso2esb\conf directory
  • Edit the DB URL as <url>jdbc:derby:C:/wso2esb/database/WSO2CARBON_DB;create=true</url>
  • Save and close the registry.xml file
  • Now, open user-mgt.xml which can be found at location wso2esb\conf directory
  • Edit the DB URL as <url>jdbc:derby:C:/wso2esb/database/WSO2CARBON_DB;create=true</url>
  • Save and close the user-mgt.xml file
  • Open file axis2.xml which can be found at location wso2esb\conf directory
  • Edit the context as <parameter name="contextRoot">/wso2esb</parameter>
  • Edit the port as <transportReceiver name="http" class="org.wso2.carbon.core.transports.http.HttpTransportListener"><parameter name="port">8080</parameter></transportReceiver> <transportReceiver name="https" class="org.wso2.carbon.core.transports.http.HttpsTransportListener"><parameter name="port">8443</parameter></transportReceiver>

  • Edit the Synapse Home as C:\wso2esb
  • Save and close the axis2.xml file



Step 5:
  • Open run.bat located at JBOSS_HOME/bin
  • Add the following lines to the beginning of the run.bat file: rem Setup the WSO2 Carbon Home directory set CARBON_HOME=C:\wso2esb
    echo =============================================================================== echo. echo WSO2 CARBON ENVIRONMENT echo. echo. MODULES: WSO2 ESB v2.0.2; TOOLS echo. echo CARBON_HOME: %CARBON_HOME% echo. echo =============================================================================== echo. echo. echo.

  • Start the JBoss server
  • Access the management console using https:\\localhost:8443\wso2esb\carbon

















rajika's picture

hi, This is very cool..

hi, This is very cool.. Thanks for the entry. BTW, you can submit a KB item to OT covering the above steps. -Rajika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
KeellsSuper is a leading supermarket chain with 50-plus outlets in Sri Lanka, and it offers the only online supermarket in the country. In 2005, JKH implemented SAP ERP across it’s 70 subsidiaries...
Thursday, February 16th 2012, 09.00 AM (PST)

Thursday, February 16th 2012, 10.00 AM (GMT)