Foros de discusión

RE: portal-ext.properties not loading

thumbnail
Manuel Achatz, modificado hace 14 años.

portal-ext.properties not loading

Junior Member Mensajes: 45 Fecha de incorporación: 16/01/09 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
thumbnail
J L Weis, modificado hace 14 años.

RE: portal-ext.properties not loading

Junior Member Mensajes: 44 Fecha de incorporación: 17/06/09 Mensajes recientes
Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?


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


I am sure you did.

How do you know you're ext file isn't loading?
thumbnail
Ziggy R, modificado hace 14 años.

RE: portal-ext.properties not loading

Expert Mensajes: 293 Fecha de incorporación: 8/06/08 Mensajes recientes
Where are you copying the file?
The correct path to copy it is

\liferay-portal-5.2.3\tomcat-6.0.18\webapps\ROOT\WEB-INF\classes
kapil m mathur, modificado hace 14 años.

RE: portal-ext.properties not loading

New Member Mensajes: 17 Fecha de incorporación: 3/12/09 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
thumbnail
Ziggy R, modificado hace 14 años.

RE: portal-ext.properties not loading

Expert Mensajes: 293 Fecha de incorporación: 8/06/08 Mensajes recientes
J L Weis:
Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?


include-and-override=portal-ext.properties
include-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?
thumbnail
Manuel Achatz, modificado hace 14 años.

RE: portal-ext.properties not loading

Junior Member Mensajes: 45 Fecha de incorporación: 16/01/09 Mensajes recientes
Hi,

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

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

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



include-and-override=portal-ext.properties
include-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
\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
thumbnail
Ziggy R, modificado hace 14 años.

RE: portal-ext.properties not loading

Expert Mensajes: 293 Fecha de incorporación: 8/06/08 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..
thumbnail
Manuel Achatz, modificado hace 14 años.

RE: portal-ext.properties not loading

Junior Member Mensajes: 45 Fecha de incorporación: 16/01/09 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
thumbnail
Lisa Simpson, modificado hace 14 años.

RE: portal-ext.properties not loading

Liferay Legend Mensajes: 2034 Fecha de incorporación: 5/03/09 Mensajes recientes
I actually had to go edit the config file in the WOL portlets to force it to start using MySQL.
a b, modificado hace 12 años.

RE: portal-ext.properties not loading

New Member Mensajes: 4 Fecha de incorporación: 13/02/12 Mensajes recientes
Use \\ for windows like
liferay.home=C:\\Oracle\\Middleware\\user_projects\\domains\\My-Domain
Glen Mazza, modificado hace 14 años.

RE: portal-ext.properties not loading

New Member Mensajes: 4 Fecha de incorporación: 2/08/09 Mensajes recientes
J L Weis:
Maybe a silly question, but did you define the override in the properties-ext file, the shutdown & startup?


include-and-override=portal-ext.properties
include-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