Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-9030

portal-ext.properties not picked up when starting portal from liferay home directory

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 5.2.3
    • Fix Version/s: None
    • Component/s: WCM
    • Labels:
      None
    • Environment:
      Liferay CE 5.2.3 + Tomcat 6.0
      Ubuntu 9.10

      Description

      • Download and update the default Liferay + Tomcat bundle.
      • Create a portal-ext.properties file in <liferay>/<tomcat>/webapps/ROOT/WEB-INF/classes and one in your <liferay> home folder directly
      • Go to the your <liferay> home folder
      • Start liferay by running ./<tomcat>/bin/startup.sh

      You see the following log:

      Apr 15, 2010 1:30:53 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.15/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
      Apr 15, 2010 1:30:54 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
      INFO: Using a shared selector for servlet write/read
      Apr 15, 2010 1:30:54 PM org.apache.coyote.http11.Http11NioProtocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      Apr 15, 2010 1:30:54 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 819 ms
      Apr 15, 2010 1:30:54 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Apr 15, 2010 1:30:54 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
      Apr 15, 2010 1:30:55 PM org.apache.catalina.core.StandardContext addApplicationListener
      INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
      Loading jar:file:/home/petermesotten/Projects/Enable/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading file:/home/petermesotten/Projects/Enable/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/system-ext.properties
      Loading jar:file:/home/petermesotten/Projects/Enable/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading file:/home/petermesotten/Projects/Enable/liferay/portal-ext.properties
      Loading file:/home/petermesotten/Projects/Enable/liferay/portal-ext.properties
      13:31:04,553 INFO [DialectDetector:64] Determining dialect for MySQL 5
      13:31:04,616 INFO [DialectDetector:97] Using dialect org.hibernate.dialect.MySQLDialect
      Loading jar:file:/home/petermesotten/Projects/Enable/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
      13:31:07,843 INFO [PortalImpl:258] Portal lib directory /home/petermesotten/Projects/Enable/liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/
      Starting Liferay Portal Enterprise Edition 5.2.5 (Augustine / Build 5205 / August 6, 2009)

      Notice that only the portal-ext.properties defined in the <liferay> home folder is recognized (and it is recognized even twice), while the portal-ext.properties in the <tomcat>/webapps/ROOT/WEB-INF/classes directory is not loaded.

      If you run startup.sh from the <tomcat> directory or the <tomcat>/bin directory, the problem does not occur.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 26 weeks, 4 days ago

                Packages

                Version Package