Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How do I know I'm in developer mode?
Hi!
I followed this guide to the tee :https://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Developer+Mode,
but I'm still not sure if I'm in developer mode. When I start the server, it opens my browser page to the portal which is apparently not supposed to happen. But I double checked and both my setenv.sh and .bat have the line appended (I am running Linux so it should be only .sh, I did both in case).
What are really the effects of developer mode?
Regards,
Pat
I followed this guide to the tee :https://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Developer+Mode,
but I'm still not sure if I'm in developer mode. When I start the server, it opens my browser page to the portal which is apparently not supposed to happen. But I double checked and both my setenv.sh and .bat have the line appended (I am running Linux so it should be only .sh, I did both in case).
What are really the effects of developer mode?
Regards,
Pat
Bump. Does no one use developer mode?
Hi Patrick.
To see which properties that are affected by developer mode, take a look at:
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/portal-developer.properties
To confirm these properties were loaded you can check Control Panel -> Server Administration -> Properties - Portal Properties.
To see which properties that are affected by developer mode, take a look at:
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/portal-developer.properties
To confirm these properties were loaded you can check Control Panel -> Server Administration -> Properties - Portal Properties.
Thanks for the response Jeffery. I checked, the properties don't seem to have changed.
I have appended the line to the setenv.sh and restarted the server multiple times. I am using Liferay 6.2 CE. What could be going wrong?
I have appended the line to the setenv.sh and restarted the server multiple times. I am using Liferay 6.2 CE. What could be going wrong?
Hi Patrick,
Not sure what it could be. Did you add the new property inside the quotes? You're not using Windows, right? If you are, you'd need to update the setenv.bat and not the setenv.sh. How are you starting the server?
On my out of the box install I updated my setenv.sh to the following and it's working as expected:
Also, during startup the log file should indicate all the property files that are being loaded so you can watch for the following near the beginning of the startup. You'll see the property files loaded from the jar files followed by any property files that override those files.
Not sure what it could be. Did you add the new property inside the quotes? You're not using Windows, right? If you are, you'd need to update the setenv.bat and not the setenv.sh. How are you starting the server?
On my out of the box install I updated my setenv.sh to the following and it's working as expected:
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Dexternal-properties=portal-developer.properties -Xmx1024m -XX:MaxPermSize=256m"Also, during startup the log file should indicate all the property files that are being loaded so you can watch for the following near the beginning of the startup. You'll see the property files loaded from the jar files followed by any property files that override those files.
May 17, 2014 12:53:04 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /Liferay/bundles/liferay-portal-6.2.10.1-ee-ga1/tomcat-7.0.42/conf/Catalina/localhost/ROOT.xml
Loading jar:file:/Liferay/bundles/liferay-portal-6.2.10.1-ee-ga1/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/Liferay/bundles/liferay-portal-6.2.10.1-ee-ga1/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/Liferay/bundles/liferay-portal-6.2.10.1-ee-ga1/portal-setup-wizard.properties
Loading file:/Liferay/bundles/liferay-portal-6.2.10.1-ee-ga1/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-developer.properties
May 17, 2014 12:53:10 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
I am starting the portal through the IDE. Could that be the problem?
This is in my setenv.sh:
I am running the portal on CentOS 6.5.
This is in my setenv.sh:
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m -Dexternal-properties=portal-developer.properties"
I am running the portal on CentOS 6.5.
Hi Patrick,
I haven't used Liferay IDE for awhile, but I think it should be nearly the same as Liferay Developer Studio. If you're in the Liferay perspective you should have a Server view in the lower left corner of your workspace. Double click on the server name to open the Server Overview and from there click on the Open Launch configuration link under General Information. Take a look at the Arguments tab. You can add the -Dexternal-properties= link here for the IDE to use it when starting Liferay.
Edit: Before adding a new properties file, take a look to see if there's an existing property file. In LDS, there's already a portal-ide.properties file that includes a line to load the portal-developer.properties file.
I haven't used Liferay IDE for awhile, but I think it should be nearly the same as Liferay Developer Studio. If you're in the Liferay perspective you should have a Server view in the lower left corner of your workspace. Double click on the server name to open the Server Overview and from there click on the Open Launch configuration link under General Information. Take a look at the Arguments tab. You can add the -Dexternal-properties= link here for the IDE to use it when starting Liferay.
Edit: Before adding a new properties file, take a look to see if there's an existing property file. In LDS, there's already a portal-ide.properties file that includes a line to load the portal-developer.properties file.
Community
Company
Feedback