Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
A F
Forcing Liferay not to reload contexts when autopublishing
February 4, 2013 11:10 AM
Answer

A F

Rank: New Member

Posts: 3

Join Date: January 27, 2013

Recent Posts

Hi,

we are using Liferay 6.1.1, with liferay eclipse IDE.

We are using live class reloading of the Tapestry Framework to avoid restarting Tomcat (like JRebel but with dynamic classloader).

So we need :
- to publish automatically each time we change code
- avoid Tomcat CONTEXT RESTART cause we don't need it ;)

Unfortunately, we didn't found a way to disable tomcat context restart from liferay ide.

We tried reloadable=false in context.xml, but liferay IDE overrides it during deployment.

Is there a way to disable tomcat context autoreload for liferay IDE ?
Gregory Amerson
RE: Forcing Liferay not to reload contexts when autopublishing
February 4, 2013 6:24 PM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 967

Join Date: February 16, 2010

Recent Posts

Can you tell me which version of Liferay IDE you are using? Context reloading should not be done for every save of a resource in the latest version of IDE (1.6.1). You can check the version of Liferay IDE in the Help > Aboust > Liferay IDE icon
A F
RE: Forcing Liferay not to reload contexts when autopublishing
February 4, 2013 11:45 PM
Answer

A F

Rank: New Member

Posts: 3

Join Date: January 27, 2013

Recent Posts

We're using our own packaged version of Eclipse Indigo, and then we install liferay IDE as explained here (http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Installation+Guide).
Gregory Amerson
RE: Forcing Liferay not to reload contexts when autopublishing
February 4, 2013 11:55 PM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 967

Join Date: February 16, 2010

Recent Posts

Thanks for your reply. I'm still unsure of which version you have installed. I guess it depends on what time your bundles were created since new releases are continually updates to those URLs. Can you verify which version you have?
A F
RE: Forcing Liferay not to reload contexts when autopublishing
February 5, 2013 12:21 AM
Answer

A F

Rank: New Member

Posts: 3

Join Date: January 27, 2013

Recent Posts

Version is Liferay IDE 1.6.1.v201211020947.
Gregory Amerson
RE: Forcing Liferay not to reload contexts when autopublishing
February 5, 2013 5:00 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 967

Join Date: February 16, 2010

Recent Posts

Can you post a sample project and your exact steps to replicate the extra context redeploy?
Gordon Augat
RE: Forcing Liferay not to reload contexts when autopublishing
May 13, 2013 11:49 AM
Answer

Gordon Augat

Rank: Junior Member

Posts: 98

Join Date: August 16, 2006

Recent Posts

I am experiencing the same issue and I am using Liferay IDE 1.6.2.

Anytime I make a change to code, it reloads the context. The name of my project/context is dws-mycase-portlet. I noticed that Liferay IDE creates a dws-mycase-portlet.xml file in the tomcat/conf/Catalina/localhost with the following content.

1
2<?xml version="1.0" encoding="UTF-8"?>
3<Context docBase="C:\myCase\portal-6.1\tomcat\webapps\dws-mycase-portlet" reloadable="true" source="org.eclipse.jst.jee.server:dws-mycase-portlet"/>


If I delete that file and and start the server and then make a code change, it will hot deploy my code with out a context reload.