Skip to content

Payara: IDE can't find jre for Web Server #9423

Closed

Description

@grantleyT

Apache NetBeans version

Apache NetBeans 30

What happened

Creating Java Maven Web application project in nb30 on snap version. Ubuntu 26.04 env.
Selecting webserver Payara - dialog indicates that it can't find java se. The dropdown for Java Platform doesn't show any content, when you attempt to add jdk which is present or select another one it does not select and alternatives are not loaded in dropdown.
This is not a Payara issue as I attempted WildFly and Glassfish and the same error occurred so something is wrong with mapping in ide.

Also jsf option in frameworks defaults to 2.3 and can't be changed!!

Language / Project Type / NetBeans Component

Java Maven Web App

How to reproduce

Create new Maven Java Web Application.
Right Click on created project and enter Settings menu
Set Framework to Java Server Faces
close settings.
Launch Project
Dialog wil appear displaying message for Java SE Platform selection.

Did this work correctly in an earlier version?

Apache NetBeans 29

Operating System

Ubuntu 26.04 - tested on lenovo x1 carbon and thinkcentre pc

JDK

the JDK 26 (bundled with NB30) also tried JDK21

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

Also tried with Apache Netbeans Binary install

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Jun 2, 2026
  2. patricioluvande-ai commented on Jun 2, 2026

    @patricioluvande-ai

    Este sistema está funcionando perfeitamente.

  3. added
    Java EE/Jakarta EE
    enterprise
    on Jun 3, 2026
  4. renatsaf commented on Jun 16, 2026

    @renatsaf
    Contributor

    I looked into the GlassFish part of this. There's a concrete bug behind the empty Java SE dropdown.

    Root cause: NetBeans 30 bundles JDK 26. When JDK 26 support was added (commit a0d24844f), only the v26 constant was added to JavaSEPlatform.java — the matching <platform version="26"/> entry was never added to the GlassFish server config XMLs. So JavaUtils.findSupportedPlatforms() intersects the installed JDKs with the server's supported set ({21..25}), gets an empty result when JDK 26 is the only registered platform, and JavaSEPlatformPanel shows the platform selector with an empty dropdown and only a Cancel button. (The earlier "add JDK 24" change, 1e42bf815, correctly updated both the enum and GlassFishV8_0_0.xml; the JDK 25 and 26 changes updated only the enum.)

    Fix: #9445 adds <platform version="26"/> to the two current-gen configs that already declare JDK 25 — GlassFishV8_0_0.xml and GlassFishV7_1_0.xml.

    Workaround until that merges: register a JDK 17–25 under Tools → Java Platforms; the dropdown then populates and the server starts.

    A couple of notes on the rest of the report:

    • The WildFly symptom is almost certainly a different problem — WildFly doesn't share this GlassFish/Payara code path, so a JDK 26 environment can hit the more generic "no Java platform registered" case (common on Snap installs).
    • The Payara configs look considerably more stale (e.g. PayaraV7.xml lists only <platform version="21"/>), so Payara likely needs its own, larger config update.
  5. removed
    needs:triage
    on Jun 16, 2026
  6. changed the title [-]IDE can't find jre for Web Server[/-] [+]IDE can't find jre for Web Server (Payara)[/+] on Jun 20, 2026
  7. changed the title [-]IDE can't find jre for Web Server (Payara)[/-] [+]IDE can't find jre for Web Server[/+] on Jun 20, 2026
  8. mbien commented on Jun 20, 2026

    @mbien
    Member

    this issue appears to report two distinct observations

    Selecting webserver Payara - dialog indicates that it can't find java se.

    This is not a Payara issue as I attempted WildFly and Glassfish and the same error occurred so something is wrong with mapping in ide.

    unfortunately the Payara download links don't work for me atm, but i tried with GlassFish and NB 30 (possible payara duplicate #8555):

    I ran the maven -> web application wizard using glassfish 8.0.3 and it did create the project successfully. Once created, I changed the JDK in the settings to JDK 25 (since it is the upper bound what glassfish currently supports), pressed play and saw "hello world" in the browser.

    Also jsf option in frameworks defaults to 2.3 and can't be changed!!

    now this might be a distinct issue you seem to have already reported #8855 ?

  9. giates commented on Jul 10, 2026

    @giates

    Similar problem here using NetBeans 30 / OpenJDK 64-Bit Server VM Temurin-25.0.3+9 / Linux Mint 22.3 Zena.

    If I try to add a new Glassfish 7.x or 8.x I can select every JDK from 21 to 25.
    If I try to add a new Payara 7.2026.4 or 7.2026.6 I can select only JDK 21 (from the Java Platform selector all JDKs greater than 21 are excluded).

    I'm not sure if this issue is related to the server vendor/version or the plugin.

    From NetBeans 30 at today I cannot run Payara 7.2026.4 or 7.2026.6 selecting JDK 25 platform...

  10. mbien commented on Jul 14, 2026

    @mbien
    Member

    renaming this issue to be payara specific, since upcoming NB31 got updated to show a bit more information for glassfish when the jdk is out of range.

  11. changed the title [-]IDE can't find jre for Web Server[/-] [+]Payara: IDE can't find jre for Web Server[/+] on Jul 14, 2026
  12. added
    needs:triage
    and removed
    needs:triage
    on Jul 16, 2026
  13. linked a pull request that will close this issuePermit running Payara on JDK 25 #9521on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java EE/Jakarta EEenterprisekind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions