« Torna a Development (Legacy)

Fast Portal Development With Tomcat

(Redirezionato da 4.3 Development)


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.


Liferay Tomcat Bundle


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

Source Code#

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



Tomcat Bundle#

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!

0 Allegati
59876 Visualizzazioni
Media (1 Voto)
La media del punteggio è 5.0 stelle su 5.
Commenti Autore Data
how to see the changes applied..whether I have... Supriya Kare 11 agosto 2013 22.02

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..
Inviato il 11/08/13 22.02.