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

Unable to add an open social gadget to page with database sharding

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.30 EE GA3, 6.2.0 CE M2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M3
    • Labels:
    • Environment:

      Description

      Steps to reproduce:
      1. Run the following in mysql:

      drop database lportal;
      drop database lportal1;
      drop database lportal2;
      create database lportal character set utf8;
      create database lportal1 character set utf8;
      create database lportal2 character set utf8;

      2. Add the following portal-ext.properties into your tomcat:

      jdbc.default.jndi.name=
      
      jdbc.default.driverClassName=com.mysql.jdbc.Driver
      jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
      jdbc.default.username=
      jdbc.default.password=
      
      jdbc.one.driverClassName=com.mysql.jdbc.Driver
      jdbc.one.url=jdbc:mysql://localhost/lportal1?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/lportal2?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
      jdbc.two.username=
      jdbc.two.password=
      
      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/audit-spring.xml,\
      	META-INF/cluster-spring.xml,\
      	META-INF/editor-spring.xml,\
      	META-INF/executor-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/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 up tomcat and deploy opensocial-portlet (assert no errors in console)
      4. Add a test page
      5. Navigate to Control Panel > OpenSocial Gadget Publisher > Publish Gadget > enter "http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.8/helloworld.xml" in the URL field > Save
      6. Add the portlet to the test page (should be under Gadgets > Hello World!)

      You will get an on-screen error and console error. (See attachments)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              robert.srisamang Robert Srisam-ang (Inactive)
              Reporter:
              robert.srisamang Robert Srisam-ang (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:
                8 years, 22 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M3