Foren

Server files not refreshing in LR 6

thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

Server files not refreshing in LR 6

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hello Community,

I am using LR 6.I am modifying my jsp files in the server directly but the changes are not reflected on refreshing the browser.
I have made these configurations in my portal-ext.properties.

theme.css.fast.load=false
theme.images.fast.load=false
javascript.fast.load=false


Any suggestions will be appreciated
thumbnail
Shagul Khajamohideen, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

Liferay Master Beiträge: 758 Beitrittsdatum: 27.09.07 Neueste Beiträge
By default your tomcat jsp servlet will be set to development mode allowing you to directly modify the pages in server. Which jsp page are you modifying?
thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

RE: Server files not refreshing in LR 6

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Shagul Khajamohideen:
By default your tomcat jsp servlet will be set to development mode allowing you to directly modify the pages in server. Which jsp page are you modifying?


Hello Shagul,

The changes made to the out-of-the-box portlets are reflected whereas when changes are made to my custom plugin portlet jsp files,it does not reflect.
sruthi mamila, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

New Member Beiträge: 3 Beitrittsdatum: 29.07.10 Neueste Beiträge
iam also facing the same prob
did you get the solution for that???
even i too added those lines in properties file
thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

RE: Server files not refreshing in LR 6

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hello Sruthi , I am still looking for the fix.
thumbnail
jelmer kuperus, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
1. start liferay with -Dexternal-properties=portal-developer.properties

2. if it's a jsp hook you are developing you cannot edit those jsps in the hook war. Those jsps are actually moved to the root war at deploy time so edit them there

3. make sure org.apache.jasper.servlet.JspServlet in tomcat/conf/web.xml does not have it's development property set to false
sruthi mamila, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

New Member Beiträge: 3 Beitrittsdatum: 29.07.10 Neueste Beiträge
jelmer
if u dont mind iam not getting u actually iam new to lifray
can u elaborate a little
one more even i added these lines:
theme.css.fast.load=false
theme.images.fast.load=false

javascript.fast.load=false
javascript.log.enabled=true

my changes in css files are not getting reflected(classic theme)
thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

RE: Server files not refreshing in LR 6

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hello Jelmer ,

Could you please tell me y do u want me to start Liferay with the -Dexternal-properties=portal-developer.properties.

I am not working on hooks plugin.Mine is custom plugin portlet.

I looked the development property inside web.xml.The property is no where mentioned but there is a bit of document added about it.I think this property will be available by default.

Still looking for the solution.
thumbnail
jelmer kuperus, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
This explains it http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Liferay+Developer+Mode
thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

RE: Server files not refreshing in LR 6

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
jelmer kuperus:
This explains it http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Liferay+Developer+Mode


jelmer thnx for the link...emoticon...seems they have moved the link.
thumbnail
jelmer kuperus, geändert vor 13 Jahren.

RE: Server files not refreshing in LR 6

Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
Its fine working here


The relevant part:

The Liferay Developer Mode optimizes Liferay Portal for development by removing all caches and thus making sure that any change made by the developer is visible in the website as soon as technically possible. One of the final goals is to avoid rebooting the server as much as possible.
How to set it up #

The developer mode is defined as a set of configuration properties that are stored in the portal-developer.properties file. In order to activate the developer mode you have to ensure that that file is loaded. The following sections explain how to achieve this:
Tomcat #

Edit the setenv.sh file (setenv.bat on windows)
Search for the line that sets the JAVA_OPTS variable
Add -Dexternal-properties=portal-developer.properties to the list of options
For example:
JAVA_OPTS="-Xms256m -Xmx1024m -XXemoticonermSize=32m -XX:MaxPermSize=160m -Dfile.encoding=UTF8 -Duser.timezone=GMT+2
-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.config
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
-Dexternal-properties=portal-developer.properties"
Note that this has to be all on one line.
If you were already using the external-properties system property to load some other properties file, add portal-developer.properties with commas.