Hot Deploy Troubleshooting

One of the topics I've seen over and over on the forums is confusion over the configuration of Hot Deploy in Liferay. It can be complicated, and the default configuration is not a valid one if you are not using Tomcat as your container, so people frequently run into problems with it.

Since I have just finished a section in the official docs about this topic, I thought it would be good to excerpt some of this material so it can be available immediately.

I've just uploaded this article to the wiki here: http://wiki.liferay.com/index.php/Hot_Deploy_Troubleshooting. This is actually just a small piece of the overall topic of Hot Deploy from the upcoming official docs.

If you are having trouble getting Hot Deploy working properly, take a look at this article, and hopefully it will help.

Blogs
Hey Rich,

I just realized that catalina sets a system property called "catalina.home" and "catalina.base"

see http://www.jguru.com/faq/view.jsp?EID=1121565

We could optionally detect that, if you're in tomcat, AND the configured path is ../webapps, then make it:

catalina.base/bin/../webapps which would point to the correct directory.
Hey Brian,

That will definitely fix the issue for those users who don't launch Tomcat from the <Tomcat Home>/bin folder.

We would still have to come up with a way to do it for other app servers, especially for those who install Liferay from a .war. That may not be possible for all of them, but if anybody can figure it out, I'm sure that person is you. :-)