Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Manuel Achatz
portal-ext.properties not loading
10 de julio de 2009 3:53
Respuesta

Manuel Achatz

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 16 de enero de 2009

Mensajes recientes

Hi all,

i've got a problem with Liferay 5.2.3 @ TC 6 installed on ubuntu 9.
The portal-ext.properties file doesn't get loaded from ../WEB-INF/classes
When i start the server, only portal.properties and system.properties get loaded, not my portal-ext.properties.
Due to this problem i can't make any changes on my Liferay system.

I checked the name and rights of the file, deleted and created a new.. nothing changed.
I even tried some different folders, but without success...
On startup my portal-ext.properties still doesn't get loaded.

I even cleared the hole liferay folder and reinstalled the system... nothing changed.
It's not my first Liferay installation at all but my first on Linux, maybe someone can help me...

Any ideas how to get the file implemented?

Regards
Manuel
J Weis
RE: portal-ext.properties not loading
14 de julio de 2009 12:24
Respuesta

J Weis

Ranking: Junior Member

Mensajes: 44

Fecha de incorporación: 16 de junio de 2009

Mensajes recientes

Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?

1
2include-and-override=portal-ext.properties
3include-and-override=${liferay.home}/portal-ext.properties


I am sure you did.

How do you know you're ext file isn't loading?
Ziggy ©
RE: portal-ext.properties not loading
14 de julio de 2009 14:30
Respuesta

Ziggy ©

Ranking: Expert

Mensajes: 293

Fecha de incorporación: 8 de junio de 2008

Mensajes recientes

Where are you copying the file?
The correct path to copy it is
1
2\liferay-portal-5.2.3\tomcat-6.0.18\webapps\ROOT\WEB-INF\classes
Ziggy ©
RE: portal-ext.properties not loading
14 de julio de 2009 14:41
Respuesta

Ziggy ©

Ranking: Expert

Mensajes: 293

Fecha de incorporación: 8 de junio de 2008

Mensajes recientes

J L Weis:
Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?

1
2include-and-override=portal-ext.properties
3include-and-override=${liferay.home}/portal-ext.properties


I am sure you did.

How do you know you're ext file isn't loading?


Hi J L

I didnt have to do this. I just copied the file to the directory i mentioned above and Liferay picked it up automatically.
Do you think because you copied it to ${liferay.home} and not the classes directoy you had to make the above update?
Manuel Achatz
RE: portal-ext.properties not loading
15 de julio de 2009 1:27
Respuesta

Manuel Achatz

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 16 de enero de 2009

Mensajes recientes

Hi,

How do you know you're ext file isn't loading?

  1. If you watch the Tomcat console by typing tail -f you'll see the import of the properties files.
    1Loading jar:file:/opt/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
    2Loading jar:file:/opt/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties

  2. In addition the HSQL database is used though i configured MySQL as database. (Warning in the catalina.out)



1include-and-override=portal-ext.properties
2include-and-override=${liferay.home}/portal-ext.properties

This state is already loaded by the "portal.properties" in the "portal-impl.jar" file.

Where are you copying the file?
The correct path to copy it is
1\liferay-portal-5.2.3\tomcat-6.0.18\webapps\ROOT\WEB-INF\classes

As mentioned in my opening post
The portal-ext.properties file doesn't get loaded from ../WEB-INF/classes

I also tried other locations, mentioned in some posts, without a positive result.
I know it should work in ../classes because it's not my first Liferay system-setup... hell knows what's going on ;)

I finally deleted the liferay folder and tried it again.. after a few attempts it got implemented.. dunno why..

Regards
Manuel
LR 5.2.3 @ TC 6 - Ubuntu 9

/close
Ziggy ©
RE: portal-ext.properties not loading
15 de julio de 2009 4:41
Respuesta

Ziggy ©

Ranking: Expert

Mensajes: 293

Fecha de incorporación: 8 de junio de 2008

Mensajes recientes

With regards to the HSQL database, i think the WOL porlet is configured to HSQL so it also needs to be changed.

In WOL portlet folder inside the webapps folder navigate to wol-portlet/WEB-INF/jdbc.properties file , here u need to change the hsql values or attributes to mysql..
Manuel Achatz
RE: portal-ext.properties not loading
16 de julio de 2009 4:43
Respuesta

Manuel Achatz

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 16 de enero de 2009

Mensajes recientes

With regards to the HSQL database, i think the WOL porlet is configured to HSQL so it also needs to be changed.

Yes i know and i already changed these settings. But the WOL - HSQL usage wasn't my problem, besides the WOL - HSQL warning appears much later in the catalina.out ;).

It's just been the answer about how i know my portal-properties doesn't get loaded...
Nevermind.. I solved my problem with a few delets/unzips of my liferay folder emoticon.

Got the portal working on my Ubuntu server now *happy*.
The only annoying thing was the sql dump restore.. it didn't work.. i created a dump from my Windows Server 2003 System (MySQL Demoticon and tried to apply it on my Ubuntu server. Everything was fine but when i started my Tomcat, Liferay said there are tables missing and run a sql create script... dunno why.. i did a complete DB backup of the liferay DB but it didn't work... version 5.2.3 on both Servers.. strange..
Finally i ex-/imported the communities form the old to the new one.. since all my users log in by LDAP Authentication and get applied to the communites by usergroups it's been no problem to me..

So far!
Manuel
LR 5.2.3 @ TC 6 on Ubuntu 9
Glen Mazza
RE: portal-ext.properties not loading
2 de agosto de 2009 20:31
Respuesta

Glen Mazza

Ranking: New Member

Mensajes: 4

Fecha de incorporación: 2 de agosto de 2009

Mensajes recientes

J L Weis:
Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?

1
2include-and-override=portal-ext.properties
3include-and-override=${liferay.home}/portal-ext.properties




I'm not sure how that would be helpful, because that information would be in the portal-ext.properties file, and what is the point of telling Liferay to look for the very file that it is presently reading? I.e., if what you're saying is correct, the only way Liferay could be told to read portal-ext.properties would be by reading portal-ext.properties to begin with. Catch-22, no?

Glen
kapil m mathur
RE: portal-ext.properties not loading
20 de enero de 2010 23:08
Respuesta

kapil m mathur

Ranking: New Member

Mensajes: 17

Fecha de incorporación: 3 de diciembre de 2009

Mensajes recientes

hi Ziggy,
i've got a problem with Liferay 5.2.3 @ TC 6 installed on windows
The portal-ext.properties file get loaded from ../WEB-INF/classes
When i start the server,but changes that i made in this file are not reflected
and changes made thro liferay GUL only gets reflected


Any ideas about where is the right location of portal-ext.properties file.
please note that In my portal.properties file the location mentioned for portal-ext.properties is as follows

include-and-override=${liferay.home}/portal-ext.properties



Waiting for your positive response
Lisa Simpson
RE: portal-ext.properties not loading
21 de enero de 2010 14:20
Respuesta

Lisa Simpson

Ranking: Liferay Legend

Mensajes: 2034

Fecha de incorporación: 5 de marzo de 2009

Mensajes recientes

I actually had to go edit the config file in the WOL portlets to force it to start using MySQL.
Ash K
RE: portal-ext.properties not loading
13 de febrero de 2012 12:26
Respuesta

Ash K

Ranking: New Member

Mensajes: 4

Fecha de incorporación: 13 de febrero de 2012

Mensajes recientes

Use \\ for windows like
liferay.home=C:\\Oracle\\Middleware\\user_projects\\domains\\My-Domain