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

Service Builder failing to run with ClassNotFoundException on HashMapBuilder

    Details

      Description

      Steps to Reproduce:

      1. ant compile install-portal-snapshots
      2. cd modules/util/portal-tools-service-builder/
      3. gw clean deploy
      4. cd portal-impl/
      5. ant build-services

      Expected Result:
      Service builder runs.

      Actual Result:

      Buildfile: /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/build.xml
         [delete] Deleting: /Users/vicnate5/Liferay/liferay-portal-master/null357742265.properties
      
      build-services:
         [delete] Deleting: /Users/vicnate5/Liferay/liferay-portal-master/null357742265.properties
      
      build-service-counter:
         [delete] Deleting: /Users/vicnate5/Liferay/liferay-portal-master/null357742265.properties
      
      build-service:
           [java] Java Result: 1
           [echo] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
           [echo] Building Counter
           [echo] Removing /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/src/com/liferay/counter/service/persistence/impl/CounterPersistenceImpl.java
           [echo] Removing /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/../portal-kernel/src/com/liferay/counter/kernel/service/persistence/CounterPersistence.java
           [echo] Removing /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/../portal-kernel/src/com/liferay/counter/kernel/service/persistence/CounterUtil.java
           [echo] Removing /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/../modules/test/persistence-test/src/testIntegration/java/com/liferay/counter/service/persistence/test/CounterPersistenceTest.java
           [echo] Exception in thread "main" java.lang.NoClassDefFoundError: com/liferay/portal/kernel/util/HashMapBuilder
           [echo] 	at com.liferay.portal.tools.service.builder.ServiceBuilder._getContext(ServiceBuilder.java:4473)
           [echo] 	at com.liferay.portal.tools.service.builder.ServiceBuilder._createModelImpl(ServiceBuilder.java:2884)
           [echo] 	at com.liferay.portal.tools.service.builder.ServiceBuilder.<init>(ServiceBuilder.java:794)
           [echo] 	at com.liferay.portal.tools.service.builder.ServiceBuilder.main(ServiceBuilder.java:233)
           [echo] Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.util.HashMapBuilder
           [echo] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
           [echo] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
           [echo] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
           [echo] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           [echo] 	... 4 more
      
      BUILD FAILED
      /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/build.xml:323: The following error occurred while executing this line:
      /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/build.xml:259: The following error occurred while executing this line:
      /Users/vicnate5/Liferay/liferay-portal-master/portal-impl/build.xml:251: Service Builder generated exceptions.
      

      Reproduced on:
      Master: c14ecfaf6ca5433eb58cb07da53b778c790b61ee

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 weeks ago

                  Packages

                  Version Package
                  Master