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

Upgrade client not defining all extra libs for Wildfly

    Details

      Description

      Reproduced on:
      Wildfly + master GIT ID: a4231675ce3cd658704f4c010d482aad678d34fc.

      Steps to Reproduce:

      1. Build master Wildfly bundle
      2. Go to Bundle directory > tools/portal-tools-db-upgrade-client/
      3. Run upgrade with java -jar com.liferay.portal.tools.db.upgrade.client.jar
      4. Define default application server directories when asked by the tool

      Expected Result:
      Default paths would give tool all classes needed for upgrade.

      Actual Result:
      Upgrade fails due to missing class

      16:20:27,992 INFO  [main][DialectDetector:75] Determine dialect for MySQL 5.7
      16:20:28,059 INFO  [main][DialectDetector:148] Found dialect org.hibernate.dialect.MySQLDialect
      java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:226)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:173)
      	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:94)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'counterHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:736)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      	at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
      	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:194)
      	... 2 more
      Caused by: java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      	at java.lang.Class.privateGetPublicMethods(Class.java:2902)
      	at java.lang.Class.privateGetPublicMethods(Class.java:2917)
      	at java.lang.Class.getMethods(Class.java:1615)
      	at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:54)
      	at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:46)
      	at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:270)
      	at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189)
      	at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:328)
      	at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:360)
      	at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:440)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
      	... 14 more
      Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 29 more
      

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Alberto Chaparro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 32 weeks, 2 days ago

                Packages

                Version Package
                7.0.1 CE GA2