I was an ear to deploy which has both ejb and web module. The context root for the web module is set to "controller" in the application.xml of the ear.
Now when i deploy and access the my app context it works fine. Apart from that i want the default context root to be redirected to my application i.e.,