You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when generating the default maven webapp the default app downloads and works as expected.
This is currently defaulting to 11.0.0-M1 (needs to be upgraded to stable)
When the properties/framework - jsf option is selected it now locates (registered 2.3 (finally) ) then it falls over.
The auto-generated web.xml file is populated with references to javax.faces.PROJECT_STAGE and javax.faces.webapp.FacesServlet.
Should default to EE 11.0.0 and javax references changed to jakarta.
Language / Project Type / NetBeans Component
No response
How to reproduce
create default maven webapp
run app (should work)
navigate to properties dropdown
navigate to frameworks option and select JavaServerFaces
this should select jsf registered library (2.3)
re-run app and it will fail - looking for javax.faces.webapp.FacesServlet
navigate to web.xml file and you will see the javax classes referenced.
Also the javax.faces.facelets are added dependencies in the POM.xml file when they are not required as jakarta classes are in the standard jakartaee-api-11.0.0
That is the point. The snap download for netbeans 27 should have the latest versions auto install and when using the frameworks dialog it can't be changed in there.
The JSF implementation is provided by enterprise/web.jsf20. It needs to be checked whether providing both the javax and jakarta variant from a single module makes sense. I see Servlet/JSP API as a dependency, but that might be a wrong indicator. Given that other JSF libraries need a similar dual provisioning providing the libraries from a single module might be preferable.
Activity
NicolaIsotta commentedon Sep 24, 2025
JSF 2.3 uses old javax namespace, you should use at least Jakarta Faces 3.0
grantleyT commentedon Sep 25, 2025
That is the point. The snap download for netbeans 27 should have the latest versions auto install and when using the frameworks dialog it can't be changed in there.
NicolaIsotta commentedon Sep 26, 2025
I've created PR juneau001/jakartaee11_archetype_jdk17#1 to update the archetype.
I'll take a look at upgrading the included JSF libraries
matthiasblaesing commentedon Sep 28, 2025
The JSF implementation is provided by
enterprise/web.jsf20. It needs to be checked whether providing both the javax and jakarta variant from a single module makes sense. I seeServlet/JSP APIas a dependency, but that might be a wrong indicator. Given that other JSF libraries need a similar dual provisioning providing the libraries from a single module might be preferable.