Forums de discussion
Deploying theme and portlets in Liferay running on non root context
Tina Agrawal, modifié il y a 11 années.
Deploying theme and portlets in Liferay running on non root context
Expert Publications: 297 Date d'inscription: 03/01/08 Publications récentes
Hi All,
Our Liferay Server is setup on a non-root context. The portal context is setup as -
portal.ctx=/lportal
As a result of this the theme that we developed doesn’t work. The images css are not loading in the non root context.
Also, the custom css that the portlets have those are also not loading.
Any clues on how to fix this.
Regards,
Tina
Our Liferay Server is setup on a non-root context. The portal context is setup as -
portal.ctx=/lportal
As a result of this the theme that we developed doesn’t work. The images css are not loading in the non root context.
Also, the custom css that the portlets have those are also not loading.
Any clues on how to fix this.
Regards,
Tina
Gaurav Jain, modifié il y a 11 années.
RE: Deploying theme and portlets in Liferay running on non root context
Regular Member Publications: 145 Date d'inscription: 31/01/11 Publications récentes
The problem shouldn't be due to non ROOT context.
Liferay is not just for ROOT context; this can be deployed on variety of envs independently.
Plese check your exact problem regarding why those are not getting loaded. Check your console logs if there are any errors in portal startup or theme deployment.
Also check browser console if there are any resource errors shown
Liferay is not just for ROOT context; this can be deployed on variety of envs independently.
Plese check your exact problem regarding why those are not getting loaded. Check your console logs if there are any errors in portal startup or theme deployment.
Also check browser console if there are any resource errors shown
Tina Agrawal, modifié il y a 11 années.
RE: Deploying theme and portlets in Liferay running on non root context
Expert Publications: 297 Date d'inscription: 03/01/08 Publications récentes
I get 404 not found errors for all the css, js -
http://<my-server>/my-theme/js/jquery-1.6.2.min.js?browserId=firefox&minifierType=js&languageId=en_US&b=6120&t=1351681594000)
No errors on the tomcat console.
Tina
http://<my-server>/my-theme/js/jquery-1.6.2.min.js?browserId=firefox&minifierType=js&languageId=en_US&b=6120&t=1351681594000)
No errors on the tomcat console.
Tina
Deepjyoti Nath, modifié il y a 9 années.
RE: Deploying theme and portlets in Liferay running on non root context
New Member Publications: 2 Date d'inscription: 03/03/14 Publications récentes
Hi,
Did you get any solution on this?
Thanks,
Deep
Did you get any solution on this?
Thanks,
Deep
Sharad Sinha, modifié il y a 9 années.
RE: Deploying theme and portlets in Liferay running on non root context
Junior Member Publications: 44 Date d'inscription: 08/03/13 Publications récentes
Hi Tina,
Check all files are present in your custom theme folder or not. Clear your browser cache and open your portal in a Private window?
Because i am running my portal on non-root context and i am not facing any kind of issue, so just recheck your theme files.
Check all files are present in your custom theme folder or not. Clear your browser cache and open your portal in a Private window?
Because i am running my portal on non-root context and i am not facing any kind of issue, so just recheck your theme files.
Olaf Kock, modifié il y a 9 années.
RE: Deploying theme and portlets in Liferay running on non root context
Liferay Legend Publications: 6396 Date d'inscription: 23/09/08 Publications récentes
If you have, for example, an Apache in front of your tomcat, you'll need to forward *all* contexts that you want to be visible to the outside. Assuming you're using mod_jk, you'll have some configuration like the following:
This is easier when Liferay is running in the root context, as then
is sufficient and will include all other contexts automagically.
JkMount /lportal/ my-tomcat
JkMount /lportal/* my-tomcat
JkMount /my-theme/* my-tomcat
JkMount /chat-portlet/* my-tomcat
This is easier when Liferay is running in the root context, as then
JkMount /* my-tomcat
JkMount / my-tomcat
is sufficient and will include all other contexts automagically.