netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Obsolete endorsed.classpath added in Java web projects while opening projects

Open naxostech opened this issue 1 year ago • 4 comments

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

naxostech avatar Nov 28 '24 09:11 naxostech

Please retest with NB 24 RC: https://github.com/apache/netbeans/discussions/7898

matthiasblaesing avatar Nov 28 '24 16:11 matthiasblaesing

After testing Netbeans 24 on several computers, the bug is still reproducible.

naxostech avatar Dec 20 '24 11:12 naxostech

Please provide a sample project to reproduce the issue.

matthiasblaesing avatar Dec 22 '24 20:12 matthiasblaesing

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}

naxostech avatar May 27 '25 08:05 naxostech