Sunday, June 19, 2011

Setting up Stratos locally in your home computer is just a few steps away ..

Now you can check out the trunk code of Carbon from the repository, build, and configure WSO2 Stratos in a few steps.
Check out
mvn clean install from carbon directory

Set up the following in ~/.bashrc (change the values accordingly for the email addresses, carbon directory, the transport sender, and the other information given below.)
# Stratos setup constants
export stratos_local_ip=""

export CARBON_DIR="/home/pradeeban/trunk/stratos/carbon"
export STRATOS_DIR=$CARBON_DIR/stratos_home
export SSO_ENABLED=true
export CREATE_DB=true
export STRATOS_MAIL_TRANSPORT=' ********.***.***25 false false '

If you are going to use the stratos binaries, you can use the downloaded packs, usually available from the builders online (find it here, for the Stratos-1.5.1 binaries), as of the trunk or development branch version or from the download area, for a released version.

Place the downloaded zips in to a location and also define that location in bashrc profile.
export PACKS_DIR="/home/pradeeban/Downloads"

Now you may run the set up script as above.

Running Stratos Set up script - carbon/build/

Add the following lines to your /etc/hosts file

Start all the Stratos services
from $stratos_home
sh start all

Stop all the Stratos services
form $stratos_home
sh stop all

Also you can start and stop the services individually or as a chosen subset of all the available services.

Here by pointing the browser to, you can access Stratos Manager. Pls note that in the configuration we have enabled SSO. You can also set up the Stratos services with SSO disabled instead, by setting export SSO_ENABLED=false, above in .bashrc profile. 

Since we have enabled SSO as above, once you have logged in to one of the services, you can just click and enter the other services without logging into each of the other services separately. Here is the url for WSO2 Identity Server as a Service, and is WSO2 Governance Registry as a Service, and the other urls as given above lists the respective services.

Await the official Stratos-1.5 release soon!


  1. Hi: I get a build error:

    [INFO] Unable to find resource 'org.apache.axis2:axis2-mar-maven-plugin:maven-plugin:1.6.1-wso2v1' in repository central (
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.axis2 -DartifactId=axis2-mar-maven-plugin -Dversion=1.6.1-wso2v1 -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.axis2 -DartifactId=axis2-mar-maven-plugin -Dversion=1.6.1-wso2v1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


    from the specified remote repositories:
    apache.snapshots (, (,
    central (,
    wso2-nexus (


  2. Hi Dave,
    I guess you must have found the fix yourself. This issue was discussed here

    There was some other issue in the hosted file in the middle, which was also fixed. Pls let us know if you still face any issue building Stratos source pack.


    [P.S. Apologies for not replying to your query on time. It has somehow gone into spam section of my blog.]


You are welcome to provide your opinions in the comments. Spam comments and comments with random links will be deleted.