Fast Portal Development With Tomcat
Before 4.3 RC1, if you wanted to edit your jsps without restarting or redeploying to tomcat, you had to edit jsps in the tomcat directory. Here you run into the mess of forgetting to port your changes back to your actual code and end up losing all your work if you happen to deploy before saving. Now there is another option to rapidly develop within Liferay. Starting with version 4.3 RC1, you could edit your JSPs directly in trunk for instant results without having to redeploy or restart tomcat.
Unzip the source code and tomcat bundles to their respective directories.
Specify your portal directory in app.server.%username%.properties
1. Delete the ROOT directory from ../tomcat/webapps/
2. Specify the docBase in ../tomcat/conf/Catalina/localhost/ROOT.xml within <Context />
<Context path="" crossContext="true" docBase="C:/trunk/portal-web/docroot">
If your environment is setup correctly, you should be able to edit jsps within trunk/portal-web/ and see the changes appear with a simple browser or portlet reset. There is no more need to do 'ant deploy' or work directly within tomcat to achieve the same results!