Today i came to know how to set default webapplication. I mean that when you install tomcat in your system. When you open your-machine-ip:8080 then tomcat application is displayed but to configure your application on first page is really easy.
It is actually loading root application which comes with your tomcat free.
Just add following in your tomcat-dir/conf/server.xml
Search for host tag and put following lines in between.(search <host )
<Context path=”” docBase=”iview” debug=”0″ reloadable=”true”>
Now one more thing new tomcat(above v5.x) is preserving session between tomcat restart but to stop that you can change tomat-dir/conf/context.xml and un-comment following tag.
<Manager pathname=”” />
You can also change default port for your tomcat. Just change port attribute value to your custome port number in connector tag in server.xml. And you are done.