Obsolete endorsed.classpath added in Java web projects while opening projects
Apache NetBeans version
Apache NetBeans 23
What happened
Extension mechanism and endorsed classpath are not supported since Java 9 (see https://bugs.openjdk.org/browse/JDK-8065702) This introduces javax classes namespace when using jakarta ee 9+ and break compile or execution HTTPS and NG Test support broken (sometimes). Code generation with wsimport broken. Certainly other problems not detected. Makes no sense in Java 9+ projects.
Language / Project Type / NetBeans Component
Java ant web project
How to reproduce
Create a Java ant web project. Exit and restart Netbeans.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 11
JDK
JDK 21
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The issue exists since namespace change (javax -> jakarta) Our workaround consists in emptying endorsed.classpath with an ant script in all projects and removing jars from nblibraries.properties
Are you willing to submit a pull request?
No
Please retest with NB 24 RC: https://github.com/apache/netbeans/discussions/7898
After testing Netbeans 24 on several computers, the bug is still reproducible.
Please provide a sample project to reproduce the issue.
Hello, the bug is still present in Netbeans 26. To reproduce it: Create a Java ant web project. Exit and restart Netbeans. In project.properties the endorsed.classpath value is set to ${libs.JAX-WS-ENDORSED.classpath}