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

Unable to build-service on ee-6.2.x plugins on JDK 8

    Details

    • Fix Priority:
      5
    • JDK:
      Oracle Sun JDK 8

      Description

      1. Compile portal source on JDK 7
      2. Set JAVA_HOME to JDK 8
      3. Navigate to ee-6.2.x/plugins/portlets/kaleo-forms-portlet
      4. ant build-service

      Expected results:
      System is able to build-service while using JDK 8

      Actual results:
      System is not able to build-service while using JDK 8

      [email protected]:~/git/ee-6.2.x/plugins$ cd portlets/kaleo-forms-portlet/
      [email protected]:~/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet$ ant build-service
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
      Buildfile: /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/build.xml
      
      build-service:
           [copy] Copying 46 files to /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/classes
      
      BUILD FAILED
      /home/konias/git/ee-6.2.x/plugins/build-common-plugin.xml:323: The following error occurred while executing this line:
      /home/konias/git/ee-6.2.x/plugins/build-common-plugin.xml:94: /home/konias/git/ee-6.2.x/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib does not exist.
      
      Total time: 0 seconds
      [email protected]:~/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet$ ant build-service
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
      Buildfile: /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/build.xml
      
      build-service:
           [echo] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
           [echo] Loading jar:file:/home/konias/git/ee-6.2.x/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
           [echo] Loading jar:file:/home/konias/git/ee-6.2.x/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
           [echo] Loading file:/home/konias/git/ee-6.2.x/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties
           [echo] Loading jar:file:/home/konias/git/ee-6.2.x/bundles/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
           [echo] Building KaleoProcess
           [echo] Writing /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/forms/model/KaleoProcessClp.java
           [echo] Building KaleoProcessLink
          [mkdir] Created dir: /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service-classes
           [copy] Copied 11 empty directories to 11 empty directories under /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service-classes
          [javac] Compiling 35 source files to /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service-classes
          [javac] Annotation processing got disabled, since it requires a 1.6 compliant JVM
          [javac] ----------
          [javac] 1. ERROR in /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/forms/model/KaleoProcess.java (at line 1)
          [javac] 	/**
          [javac] 	^
          [javac] The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
          [javac] ----------
          [javac] ----------
          [javac] 2. ERROR in /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/forms/service/KaleoProcessLinkLocalServiceClp.java (at line 384)
          [javac] 	ClpSerializer.translateInput(orderByComparator)
          [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          [javac] The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files
          [javac] ----------
          [javac] 3. ERROR in /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/forms/service/KaleoProcessLinkLocalServiceClp.java (at line 685)
          [javac] 	new Object[] { ClpSerializer.translateInput(beanIdentifier) });
          [javac] 	               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          [javac] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
          [javac] ----------
          [javac] ----------
          [javac] 4. ERROR in /home/konias/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/forms/util/TaskFormPairs.java (at line 1)
          [javac] 	/**
          [javac] 	^
          [javac] The type java.util.function.Consumer cannot be resolved. It is indirectly referenced from required .class files
          [javac] ----------
          [javac] 4 problems (4 errors)
      
      BUILD FAILED
      /home/konias/git/ee-6.2.x/plugins/build-common-plugin.xml:338: The following error occurred while executing this line:
      /home/konias/git/ee-6.2.x/plugins/build-common.xml:784: Compile failed; see the compiler error output for details.
      
      Total time: 8 seconds
      [email protected]:~/git/ee-6.2.x/plugins/portlets/kaleo-forms-portlet$ 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.pince Jason Pince
              Reporter:
              kristoffer.onias Kristoffer Onias
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 34 weeks, 3 days ago

                  Packages

                  Version Package