renatsaf commented on issue #9423:
URL: https://github.com/apache/netbeans/issues/9423#issuecomment-4723870391

   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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to