Impossible to build java web app with ant on Jakarta EE 10
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 23
### What happened
If you try to build a new web app project with ant and Jakarta EE 10, because ant try to compile with old javax.
Ant use specific javax library instead of jakarta and default tomcat 10.x library to compile classes and jsp
### Language / Project Type / NetBeans Component
Java web application with Ant
### How to reproduce
Create a new basic Java web application project with Ant and jakarta ee 10 with some classes and try to build
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
debian
### JDK
17
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
you can get around the problem by adding this in build.xml
```xml
```
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the failure with a new Jakarta EE 10 Ant web application on JDK 17, then inspect the generated build.xml, especially the compile-jsps and -do-compile-single-jsp targets. Compare the configured javax and Tomcat libraries with the Jakarta EE 10 dependencies. Done means the generated project builds successfully, including JSP compilation, without manual build.xml edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100