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

portal-db-upgrade bundle fails to complete

    Details

      Description

      Steps to Recreate:

      1.) Extract the DB Bundle somewhere on the filesystem such as /opt/liferay-portal-db-upgrade-6.2.0
      2.) Create the lportal database in MySQL on the local system. The lportal database can be empty since the upgrade should normally create an empty Liferay database.
      2.) Configure the portal-ext.properties for MySQL:

       
      ##
      ## JDBC
      ##
          jdbc.default.driverClassName=com.mysql.jdbc.Driver
          jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
          jdbc.default.username=lportal
          jdbc.default.password=#######
      

      3. Run the upgrade process using Ant: ant upgrade

      The process will display the following error and never complete:

       
      upgrade:
           [java] Loading jar:file:/opt/liferay-portal-db-upgrade-6.2.0/lib/portal-impl.jar!/system.properties
           [java] Feb 22, 2013 9:34:16 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
           [java] INFO: No server detected
           [java] Feb 22, 2013 9:34:16 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
           [java] INFO: Global shared lib directory /opt/liferay-portal-db-upgrade-6.2.0/lib/
           [java] Feb 22, 2013 9:34:16 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
           [java] INFO: Global lib directory /opt/liferay-portal-db-upgrade-6.2.0/lib/
           [java] Feb 22, 2013 9:34:16 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
           [java] INFO: Portal lib directory /opt/liferay-portal-db-upgrade-6.2.0/lib/util-java.jar!/
           [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
           [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
           [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
           [java] Loading jar:file:/opt/liferay-portal-db-upgrade-6.2.0/lib/portal-impl.jar!/portal.properties
           [java] Loading file:/opt/liferay-portal-db-upgrade-6.2.0/portal-ext.properties
           [java] Feb 22, 2013 9:34:17 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
           [java] INFO: Properties for portal loaded from [file:/opt/liferay-portal-db-upgrade-6.2.0/portal-ext.properties, jar:file:/opt/liferay-portal-db-upgrade-6.2.0/lib/portal-impl.jar!/portal.properties]
           [java] 21:34:25,545 INFO  [main][DialectDetector:71] Determine dialect for MySQL 5
           [java] 21:34:25,582 INFO  [main][DialectDetector:136] Found dialect org.hibernate.dialect.MySQLDialect
           [java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portlet.portletdisplaytemplate.util.PortletDisplayTemplate' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/liferay/taglib/util/VelocityTaglib
           [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
           [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
           [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
           [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
           [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
           [java] 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
           [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
           [java] 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
           [java] 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
           [java] 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
           [java] 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
           [java] 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
           [java] 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
           [java] 	at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
           [java] 	at com.liferay.portal.spring.util.SpringUtil._loadContext(SpringUtil.java:71)
           [java] 	at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:59)
           [java] 	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:171)
           [java] 	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:144)
           [java] 	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:71)
           [java] Caused by: java.lang.NoClassDefFoundError: com/liferay/taglib/util/VelocityTaglib
           [java] 	at java.lang.Class.getDeclaredConstructors0(Native Method)
           [java] 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
           [java] 	at java.lang.Class.getConstructor0(Class.java:2716)
           [java] 	at java.lang.Class.getDeclaredConstructor(Class.java:2002)
           [java] 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
           [java] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
           [java] 	... 18 more
           [java] Caused by: java.lang.ClassNotFoundException: com.liferay.taglib.util.VelocityTaglib
           [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
           [java] 	at java.security.AccessController.doPrivileged(Native Method)
           [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
           [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
           [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
           [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
           [java] 	... 24 more
           [java] Java Result: 1
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luyang.tan Luyang Tan (Inactive)
              Reporter:
              jamie.sammons1 Jamie Sammons
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 42 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M6