Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Tina Agrawal
Deploying theme and portlets in Liferay running on non root context
October 31, 2012 12:13 AM
Answer

Tina Agrawal

Rank: Expert

Posts: 295

Join Date: January 2, 2008

Recent Posts

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
Gaurav Jain
RE: Deploying theme and portlets in Liferay running on non root context
October 31, 2012 12:35 AM
Answer

Gaurav Jain

Rank: Regular Member

Posts: 146

Join Date: January 31, 2011

Recent Posts

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
Tina Agrawal
RE: Deploying theme and portlets in Liferay running on non root context
October 31, 2012 12:47 AM
Answer

Tina Agrawal

Rank: Expert

Posts: 295

Join Date: January 2, 2008

Recent Posts

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
Web Support
RE: Deploying theme and portlets in Liferay running on non root context
June 19, 2014 9:27 PM
Answer

Web Support

Rank: New Member

Posts: 2

Join Date: March 3, 2014

Recent Posts

Hi,
Did you get any solution on this?

Thanks,
Deep
Sharad Sinha
RE: Deploying theme and portlets in Liferay running on non root context
June 19, 2014 10:21 PM
Answer

Sharad Sinha

Rank: Junior Member

Posts: 44

Join Date: March 7, 2013

Recent Posts

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.
Olaf Kock
RE: Deploying theme and portlets in Liferay running on non root context
June 20, 2014 6:00 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3523

Join Date: September 23, 2008

Recent Posts

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:

1JkMount /lportal/ my-tomcat
2JkMount /lportal/* my-tomcat
3JkMount /my-theme/* my-tomcat
4JkMount /chat-portlet/* my-tomcat


This is easier when Liferay is running in the root context, as then

1JkMount /* my-tomcat
2JkMount / my-tomcat


is sufficient and will include all other contexts automagically.