Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why
« Back to Development (Legacy)

Fast Portal Development With Tomcat

(Redirected from 4.3 Development)

Concept#

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.

Requirements#

Liferay Tomcat Bundle

Setup#

Unzip the source code and tomcat bundles to their respective directories.

Source Code#

Specify your portal directory in app.server.%username%.properties

Example:

  app.server.tomcat.portal.dir=C:/trunk/portal-web/docroot

Tomcat Bundle#

1. Delete the ROOT directory from ../tomcat/webapps/

2. Specify the docBase in ../tomcat/conf/Catalina/localhost/ROOT.xml within <Context />

Example:

  <Context path="" crossContext="true" docBase="C:/trunk/portal-web/docroot">

Conclusion#

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!

0 Attachments
51906 Views
Average (1 Vote)
The average rating is 5.0 stars out of 5.
Comments
Threaded Replies Author Date
how to see the changes applied..whether I have... Supriya Kare August 11, 2013 10:02 PM

how to see the changes applied..whether I have to start tomcat or not..
which url to use to see the changes applied in the browser..
Posted on 8/11/13 10:02 PM.