-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.0 CE M5
-
Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M6
-
Component/s: Core Infrastructure > Upgrade Framework
-
Environment:Tomcat 7.0.34 + MySQL 5.5 Portal 6.2 M4
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Story Points:3
-
Liferay Contributor's Agreement:Accept
-
Git Pull Request:
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
- relates
-
LPE-8860 Ant upgrade displays a ClassNotFound exception when using the portal-db-upgrade bundle
-
- Closed
-