Friday, May 31, 2013

How to run a WSO2 Product as a Windows Service


When it comes to trying out WSO2 products, you just have to extract the pack and run wso2server.bat(If you are on Window$). But it's always better to run this as a Windows service if you are deploying on a production environment. For that you can use any of the available Java service wrappers. 

YAJSW is a easy to use Java service wrapper and you can use it run any of the java process as a Windows service(Not only WSO2 ones). wrapper.conf is the configuration file we need to configure for YAJSW and you can generate a wrapper.conf easily giving the process ID of a  running Java process. Configuration file used to run WSO2 products is bundled with itself and following steps guides to run a WSO2 product as a Windows service. In this example I'm going to use WSO2 Application Server.

Download WSO2 Application Server from here.

Download YAJSW from here.

Extract the WSO2 Application Server pack and find wrapper.conf file in bin/yajsw directory. Copy wrapper.conf to YAJSW/conf directory replacing existing one. Change wrapper.console.title and wrapper.ntservice.displayname to "WSO2 Appserver".

Set carbon_home environment variable pointing to Appserver directory(YAJSW needs this to find where your Appserver pack is).
























Go to 'bat' directory of YAJSW pack and run runConsole.bat to make sure service starts up properly. Command prompt will appear and Application server should start without any exceptions if everything goes well :-)



Run installService.bat to install the service. You'll see WSO2 Appserver in services list. You should be able to right click and start|stop the service. Logs will be in ${carbon_home}/repository/logs directory.





















Tuesday, February 1, 2011

Getting Started with WSO2 Stratos VMware Image

WSO2 Stratos is a complete SOA and developer platform offered as a self-service, multi-tenant, elastic runtime for private and public cloud infrastructures. This tutorial will guide you to tryout WSO2's complete Stratos platform inside a VMware instance without going through the installation and configuration process.

http://wso2.org/library/tutorials/2010/12/getting-started-wso2-stratos-vmware-image

Tuesday, October 5, 2010

VMware server 2.0 blank screen issue

I installed VMware server 2.0.2 on Ubuntu 10.04 and after a successful installation when I run it brings up a blank screen in the browser. I've tried several solutions given by the VMware community, but it worked only after activating ss2v2 on the browser. To enable sslv2 type about:config on your browser. Filter for security.enable_ssl2. Activate it by double clicking it.

Wednesday, March 17, 2010

How to convert VMWare disk image to KVM/QEMU/XEN

Install qemu. On debian based operating systems

apt-get install qemu

to convert

qemu-img convert vmware_image.vmdk -O raw kvm_qemu_xen.img


Sunday, November 22, 2009

How to make your Amazon EC2 AMI public

To make it bootable to anyone else

ec2-modify-image-attribute ami-XXXXXXX --launch-permission -a all
To make it bootable to specific user
ec2-modify-image-attribute ami-XXXXXXX --launch-permission -a