Deploying WSO2 ESB-3.0.0 on JBoss-5.1.0.GA

WSO2 ESB is a lightweight middleware which produces high performance, easy to acquire, deploy, manage and govern facilities. It has the capability to run on many web servers including JBoss-5.1.0.GA

Date: Wed, 31st Mar, 2010
Level:
Reads: 4579 Comments: 9 | Login or register to post comments
Ruwani Thakshila
Software Engineer
WSO2 Inc.
ruwani.wso2.com's picture

WSO2 ESB is a lightweight middleware which produces high performance, easy to acquire, deploy, manage and govern facilities. It has the capability to run on many web servers including JBoss-5.1.0.GA

Step 1:

    * Extract the downloaded zip into a directory.
    * Copy repository and resources directories in to a folder namely 'wso2esb' (Eg: /home/ruwani/Documents/esb/esb_on_jboss/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-3.0.0/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 inside <service> tags.(remember to edit the keystoreFile & keystorePass in this entry)

    <Connector address='${jboss.bind.address}' SSLEnabled='true'
    keystoreFile='/home/ruwani/Documents/esb/esb_on_jboss/wso2esb/resources/security/wso2carbon.jks'
    keystorePass='wso2carbon'
    maxSpareThreads='76' port='8443' protocol='HTTP/1.1' maxThreads='150' secure='true' scheme='https' sslProtocol='TLS' clientAuth='false'/>

Step 4:

    * Open file carbon.xml which can be found at location wso2esb/repository/conf directory.
    * Edit the ServerURL element as <ServerURL>https://localhost:8443/wso2esb/services/</ServerURL>
    * Edit the context as <WebContextRoot>/wso2esb</WebContextRoot>
    * Save and close the carbon.xml file
    * Open registry.xml which can be found at location wso2esb/repository/conf directory
    * Edit the DB URL as <url>jdbc:h2:/home/ruwani/Documents/esb/esb_on_jbos_3/wso2esb/repository/database/WSO2CARBON_DB</url> (with your CARBON_HOME)
    * 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:h2:/home/ruwani/Documents/esb/esb_on_jbos_3/wso2esb/repository/database/WSO2CARBON_DB</url> (with your CARBON_HOME)
    * Save and close the user-mgt.xml file
    * Open file axis2.xml which can be found at location wso2esb/repository/conf directory
    * Edit the Synapse Home and keystore locations by adding your CARBON_HOME  (Eg: /home/ruwani/Documents/esb/esb_on_jboss/wso2esb)
    * Save and close the axis2.xml file
   
Step 5:

    * Set the CARBON_HOME environmental variable

    Linux: export CARBON_HOME=/home/ruwani/Documents/esb/esb_on_jboss/wso2esb    
    Windows: set CARBON_HOME=/home/ruwani/Documents/esb/esb_on_jboss/wso2esb

    * Start the JBoss server
    * Access the management console using https://localhost:8443/wso2esb/carbon

 

Auther: Ruwani Munasingha, Software Engineer-Quality Assurance, WSO2 Inc.

 

 

 

 

jakub.ganko.gazeta.pl's picture

JBOSS 7.1

Could you describe how to configure and run Carbon on JBoss 7.1 regards Jakub
modrisco.amfam.com's picture

Is WSO2 ESB 3.0.1 also supported with JBoss 5.0.1 EAP?

Thank you for the configuration steps for WSO2 ESB and JBoss 5.0.1 GA. I found it very useful. I am wondering is WSO2 ESB 3.0.1 also supported with JBoss 5.0.1 EAP? We use EAP where I work. Cheers Michael
ed.ed4becky.org's picture

JBoss 4?

Is there a similar article for JBoss 4.2.3?
ed.ed4becky.org's picture

RESOLVED

OK, found it was the same with a couple of exceptions: 1) jboss-web.deployer instead of jboss-web.sar for 4.2 2) had to copy log4j.jar into WEB-INF/lib, and the log4j.properties into WEB-INF/classes in the default\deploy\wso2esb.war directory
ercan.oezkan.cameron-it-consulting.com's picture

ESB 3.0.0

Hi where can i get the ESB Version 3.0.0 that you mentioned in your article?
rajika's picture

hi, The version 3.0.0 is

hi, The version 3.0.0 is about to release. You can download the RC2 from here. http://builder.wso2.org/~carbon/releases/carbon/3.0.0/4RC2/wso2esb-3.0.0.zip http://builder.wso2.org/~carbon/releases/carbon/3.0.0/4RC2/wso2esb-3.0.0-docs.zip
ercan.oezkan.cameron-it-consulting.com's picture

Hi rajika, thanks for your

Hi rajika, thanks for your quick reply, i will give it a try (currently downloading) Can i find the Release Notes inside the docs.zip?
rajika's picture

yes, you can. But it has to

yes, you can. But it has to uptodate. Rajika
prbhadra.gmail.com's picture

Issue with deploying 3.0.1 version in JBOSS 6 (Fedora)

Hi, I wanted to experiment the WSO2 ESB performance for a sensor network management solution. I need to deploy it in JBOSS 6.x. While running the service I get the following error : SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-112] 13:42:37,256 INFO [STDOUT] org.h2.jdbc.JdbcSQLException: Table UM_DIALECT not found; SQL statement: 13:42:37,256 INFO [STDOUT] SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-112] 13:42:37,257 INFO [STDOUT] at org.h2.message.Message.getSQLException(Message.java:107) 13:42:37,257 INFO [STDOUT] at org.h2.message.Message.getSQLException(Message.java:118) 13:42:37,257 INFO [STDOUT] at org.h2.message.Message.getSQLException(Message.java:77) .............. 13:42:37,266 INFO [STDOUT] [2010-11-25 13:42:37,266] ERROR - Activator Cannot start User Manager Core bundle 13:42:37,266 INFO [STDOUT] org.wso2.carbon.user.core.UserStoreException: Database Error - Table UM_DIALECT not found; SQL statement: 13:42:37,267 INFO [STDOUT] SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-112] 13:42:37,267 INFO [STDOUT] at org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:151) 13:42:37,267 INFO [STDOUT] at org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:143) 13:42:37,267 INFO [STDOUT] at org.wso2.carbon.user.core.common.DefaultRealmService.(DefaultRealmService.java:89) 13:42:37,267 INFO [STDOUT] at org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:28) 13:42:37,267 INFO [STDOUT] at org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:50) 13:42:37,267 INFO [STDOUT] at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782) 13:42:37,267 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method) 13:42:37,268 INFO [STDOUT] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773) I tried to open the embedded db using Razorsql IDE to verify the structure without any luck! It says unsupported database or old db file. Can you please help me to cross the hurdle? Thanks, Praenjit