Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Maxi Ng
[Urgent] Where should I put system-ext.properties in liferay 4.4.2?
March 12, 2008 1:01 AM
Answer

Maxi Ng

Rank: Junior Member

Posts: 50

Join Date: January 7, 2008

Recent Posts

I want to do some performance tuning according to http://wiki.liferay.com/index.php/Performance
but I can't find where are those properties.

does anyone know?
Thank you so much.
JR Houn
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 10, 2008 10:35 AM
Answer

JR Houn

LIFERAY STAFF

Rank: Expert

Posts: 488

Join Date: November 19, 2007

Recent Posts

Hi Maxi-
Please read the forum FAQ for some more common answers to questions:
http://www.liferay.com/web/guest/community/forums/message_boards/message/338070
Thanks,
jr
Maxi Ng
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 10, 2008 7:55 PM
Answer

Maxi Ng

Rank: Junior Member

Posts: 50

Join Date: January 7, 2008

Recent Posts

I am very sorry!
I didn't find that post before.
It is a very very useful post.
Thank you for telling me that.

I am using liferay-portal-jboss-tomcat-4.2-4.4.2.zip.
Your portal-ext.properties file will usually be deployed to ../tomcat-5.5.23/webapps/ROOT/WEB-INF/classes .

I didn't find classes folder under my [Liferay_home]/server/default/deploy/ROOT.war/WEB-INF
Should I create one by myself?

If you don't have the source you can look at the jar file - portal-impl.jar

I find portal-impl.jar in [Liferay_home]/server/default/deploy/ROOT.war/WEB-INF/lib
Does this mean if I modify the portal.properties and system.properties inside this jar and reboot my server,
the new setting will take effect?

or I think I should use the ext approach without modifying .jar
According to the comment in portal.properties, portal-ext.properties should be put in ${user.home}/liferay, is that right?
Where should system-ext.properties go?

Thank you so much.
JR Houn
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 11, 2008 11:12 AM
Answer

JR Houn

LIFERAY STAFF

Rank: Expert

Posts: 488

Join Date: November 19, 2007

Recent Posts

Hi Maxi-
I'm sorry that you weren't able to find the forum FAQ before posting. I will probably be changing it, or at the very least adding it as a stickied post to the top of each category so that it has better visibility.

As to your question -
In most cases the portal-ext.properties file is deployed to ../tomcat-5.5.23/webapps/ROOT/WEB-INF/classes.

In the case with JBoss however it is deployed to:

/server/default/deploy/ROOT.war/WEB-INF/classes

The classes folder, by default is not created in that directory unless it is deployed to from source. You however can create the classes folder in that directory and create your own portal-ext.properties.

So you will have to create a classes folder and a portal-ext.properties file in the following directory:
/server/default/deploy/ROOT.war/WEB-INF/classes/portal-ext.properties. You can check the portal.properties file in portal-impl.jar as a reference for properties you would like to override in portal-ext.properties.

Hope that helps and wasn't too confusing.
jr
Maxi Ng
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 11, 2008 9:31 PM
Answer

Maxi Ng

Rank: Junior Member

Posts: 50

Join Date: January 7, 2008

Recent Posts

thank you for your reply.

I understand portal-ext.properties now.

what about system-ext.properties? where should I put it?

sorry for asking so many dumb questions.
JR Houn
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 13, 2008 10:52 AM
Answer

JR Houn

LIFERAY STAFF

Rank: Expert

Posts: 488

Join Date: November 19, 2007

Recent Posts

Hi Maxi-
The same things I wrote before about portal-ext.properties apply to system.properties and system-ext.properties. So you can put system-ext.properties in the same directory as portal-ext.properties.
jr
Maxi Ng
RE: [Urgent] Where is system.properties in liferay 4.4.2?
March 14, 2008 2:30 AM
Answer

Maxi Ng

Rank: Junior Member

Posts: 50

Join Date: January 7, 2008

Recent Posts

Thank you JR,

I have done as what you said, but I don't see it load up from the console of the AS.
anyway, I think I just miss it.
Thanks again.