Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Story Points:
      4

      Description

      I crated a topic here: http://www.liferay.com/community/forums/-/message_boards/message/6462092

      We are using Liferay with connection configured to use JNDI:

      jdbc.default.jndi.name=jdbc/LiferayPool

      And this datasource is configured in JBoss (see liferay-ds.attached).

      After, I create a new database called liferay6-copy in MySql server.

      So, when I try to use the Control Panel -> Server Administration -> Data Migration, fill up the target database fields like this:
      Driver class: com.mysql.jdbc.Driver
      JDBC URL: jdbc:mysql://localhost:3306/lportal6-copy?useUnicode=true&characterEncoding=UTF-8
      JDBC User name: root
      JDBC password: root

      During migration I got an error, see text file attached.

      Debugging source code, I found the file DataSourceFactoryBean.java that has a method called createInstance(). In this method, there is a check to verify if the properties has the jndi.name key, if exists, will return a connection with JNDI, not the database specified in Data Migration page.

      A workaround is change portal-ext.properties to use JDBC instead of JNDI and restart Liferay server. And finally I can run Data Migration, but I'm having other problem.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 23 weeks, 2 days ago