Search code examples
tomcatliferayliferay-6

Hot deployment not working


I am using Liferay Portal 6.1 CE.

I have setup the developement environment in eclipse indigo.

When i deploy a portlet ,it moves to the deploy folder inside the Portal Bundle.But didn't get deployed. I have already tested with the other War,placed in deploy folder.but same happens

Hot deployment is not working. What i can do?Help me


Solution

  • It might be that you moved an installation and your current settings include a liferay.home that is different from what you expect.

    At startup of Liferay, the log states what auto-deploy directory Liferay monitors. Look for a line in tomcat/logs/catalina.out that looks like this:

    08:34:58,902 INFO  [pool-2-thread-1][ServerDetector:154] Server supports hot deploy
    08:34:58,910 INFO  [pool-2-thread-1][PluginPackageUtil:1030] Reading plugin package for the root context
    08:35:01,137 INFO  [pool-2-thread-1][AutoDeployDir:106] Auto deploy scanner started for /opt/lds/lds161/liferay-portal-6.1.20-ee-ga2/deploy
    

    Also, whatever user Tomcat/Liferay runs as, needs to have read/write access to this directory as well as to tomcat's webapps directory in order for hot-deploy to work. Plugins will not be deployed if they can't be removed from the auto-deploy folder.

    Commonly, you'll find a liferay.home setting in portal-setup-wizard.properties (this is the default parent directory of the deploy directory), but this setting might also have been transitioned into your database (in case you're wondering why changes to this value won't be picked up.