0

Whenever I make a hook in liferay 6.2, then I need to restart the server to make the changes visible. I know that hooks are hot deployable. So, why the changes are not getting reflected without restart after deployment. Why do I need to restart the server? What to do in order to get rid of it?

default locale
  • 13,035
  • 13
  • 56
  • 62
Abhishek Jain
  • 236
  • 2
  • 18
  • Can you explain what exactly you're trying to do with your hook and what doesn't work as expected before the restart? Also, is `liferay-7` tag a mistake? – default locale Jan 31 '17 at 10:36
  • Sorry liferay-7 tag is a mistake!!! I just wrote "changed" to the /thml/portlet/journal_content/configuration.jsp hook and the word "changed" becomes visible to me after restart .. – Abhishek Jain Jan 31 '17 at 10:50
  • 2
    You need to include the description of your hook into your question. You also need to specify the application server – default locale Jan 31 '17 at 11:15
  • Server is tomcat and i have already described the hook as you said..i don't think it matters where I describe it.. – Abhishek Jain Jan 31 '17 at 11:17
  • 1
    Restart isn't required in case of the hook, can you please try cleaning temp/work directory in your tomcat? – Dipti Ranparia Jan 31 '17 at 11:43
  • 3
    If you see your changes after restart it means the hook is deployed and processed properly. The question is why Tomcat does not pick the changes without restart? There could be many reasons for that. See if some of those described in http://stackoverflow.com/questions/2004676/why-are-my-jsp-changes-are-not-reflected-without-restarting-tomcat apply to your configuration – Milen Dyankov Jan 31 '17 at 12:05
  • Do you get the message for 1 hook available for use post deployment? – Shivam Aggarwal Feb 01 '17 at 06:21

0 Answers0