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

Authentication failed when portal using sharding.

    Details

    • Story Points:
      4
    • Fix Priority:
      4

      Description

      1. Add the following lines to your "Windows\System32\drivers\etc\HOSTS" file following:
        127.0.0.1 www.able.com
        
      2. Add the following lines to your portal-ext.properties file:
        	jdbc.one.driverClassName=com.mysql.jdbc.Driver
        jdbc.one.url=jdbc:mysql://localhost/lportal2?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false 
        jdbc.one.username= 
        jdbc.one.password= 
        
        jdbc.two.driverClassName=com.mysql.jdbc.Driver
        jdbc.two.url=jdbc:mysql://localhost/lportal3?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false 
        jdbc.two.username= 
        jdbc.two.password= 
        
        shard.available.names=default,one,two
        
        spring.configs=\ 
        META-INF/base-spring.xml,\ 
        \ 
        META-INF/hibernate-spring.xml,\ 
        META-INF/infrastructure-spring.xml,\ 
        META-INF/management-spring.xml,\ 
        \ 
        META-INF/util-spring.xml,\ 
        \ 
        META-INF/jpa-spring.xml,\ 
        \ 
        META-INF/executor-spring.xml,\ 
        \ 
        META-INF/audit-spring.xml,\ 
        META-INF/cluster-spring.xml,\ 
        META-INF/editor-spring.xml,\ 
        META-INF/jcr-spring.xml,\ 
        META-INF/ldap-spring.xml,\ 
        META-INF/messaging-core-spring.xml,\ 
        META-INF/messaging-misc-spring.xml,\ 
        META-INF/mobile-device-spring.xml,\ 
        META-INF/notifications-spring.xml,\ 
        META-INF/poller-spring.xml,\ 
        META-INF/rules-spring.xml,\ 
        META-INF/scheduler-spring.xml,\ 
        META-INF/scripting-spring.xml,\ 
        META-INF/search-spring.xml,\ 
        META-INF/workflow-spring.xml,\ 
        \ 
        META-INF/counter-spring.xml,\ 
        META-INF/mail-spring.xml,\ 
        META-INF/portal-spring.xml,\ 
        META-INF/portlet-container-spring.xml,\ 
        META-INF/staging-spring.xml,\ 
        META-INF/virtual-layouts-spring.xml,\ 
        \ 
        META-INF/dynamic-data-source-spring.xml,\ 
        META-INF/shard-data-source-spring.xml,\ 
        #META-INF/memcached-spring.xml,\ 
        #META-INF/monitoring-spring.xml,\ 
        \ 
        META-INF/ext-spring.xml 
        
      3. Start tomcat with clean database.
      4. Go to Control Panel/Portal Instances.
      5. Create a instance.
        1. Web ID: www.able.com
        2. Virtual Host: www.able.com
        3. Mail Domain(Required): www.able.com
        4. Save.
      6. Open new browser go to www.able.com:9080.
      7. Try to login portal.

      You will be got "Authentication failed. Please try again.".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              mark.jin Mark Jin (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 24 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.0 CE B1