Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2170

Error selecting the java platform in a Java EE web project (maven)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.0
    • None
    • javaee - Web Project
    • None

    Description

      Following the NetCat test:
      [https://netbeans-vm.apache.org/synergy/client/app/#/assignment/2381/v/1
      ]I try to run the web application (note, only the JDK 12 platform is configured on Netbeans).

       

      Steps:

      1. I click on the Run Project Button
        Expected: Glassfish run and the example webpage appears on my browser
      2. A popup appears saying:
        "Glassfish server could not be started with JDK12 (default) please select another JavaSE platform".
        There is a dropdown that allows to select other JDKs but it doesn't contain any alternative.
        There is a button "Manage platform" that can be used to configure other java platforms.
      3. I select Manage platform button and add JDK11
        Expected: JDK 11 is selectable in the popup displayed at step 2
        Actual: The dropdown menu is still empty and it is not possible to select a java platform
      4. Click on cancel to close the popup
      5. Right click on the webapplication root node in the project view
      6. Select properties > build > compile
        On the right part of the panel JDK12(default) is selected as java platform
      7. From the dropdown menu change the selection to JDK11

      The changes are not taken in account, when I click on run the same popup says me that glassfish can not be started with jdk 12

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            gtino <DELETED>
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: