Jakarta
Jakarta EE namespaces, project settings and what changed in Jakarta EE 10 and 11.
3 min read
References
- Eclipse Starter for Jakarta EE
- Jakarta EE 10 XML Schemas
- Jakarta EE 11 XML Schemas
- Stackoverflow - Summary of API packages and XML namespace URIs
- What’s New in Jakarta EE 10?
- Jakarta EE Standards Support
- Faces 4.0: rename xmlns.jcp.org taglib URIs
Namespaces
URNs instead of URLs.
- J2EE 1.4 / JSF 1.0-1.1:
javax.faces.*andhttp://java.sun.com/jsf/* - Java EE 5 / JSF 1.2:
javax.faces.*andhttp://java.sun.com/jsf/* - Java EE 6 / JSF 2.0-2.1:
javax.faces.*andhttp://java.sun.com/jsf/* - Java EE 7 / JSF 2.2:
javax.faces.*andhttp://xmlns.jcp.org/jsf/* - Java EE 8 / JSF 2.3:
javax.faces.*andhttp://xmlns.jcp.org/jsf/* - Jakarta EE 8 / JSF 2.3:
javax.faces.*andhttp://xmlns.jcp.org/jsf/* - Jakarta EE 9 / JSF 3.0:
jakarta.faces.*andhttp://xmlns.jcp.org/jsf/* - Jakarta EE 10 / Faces 4.0:
jakarta.faces.*andjakarta.faces.* - Jakarta EE 11 / Faces 4.1:
jakarta.faces.*andjakarta.faces.*
http://xmlns.jcp.org/jsftojakarta.faceshttp://xmlns.jcp.org/jsf/faceletstojakarta.faces.faceletshttp://xmlns.jcp.org/jsf/coretojakarta.faces.corehttp://xmlns.jcp.org/jsf/htmltojakarta.faces.htmlhttp://xmlns.jcp.org/jsf/passthroughtojakarta.faces.passthroughhttp://xmlns.jcp.org/jsf/compositetojakarta.faces.compositehttp://xmlns.jcp.org/jsf/componenttojakarta.faces.componenthttp://xmlns.jcp.org/jsp/jstl/coretojakarta.tags.corehttp://xmlns.jcp.org/jsp/jstl/fmttojakarta.tags.fmthttp://xmlns.jcp.org/jsp/jstl/functionstojakarta.tags.functions
<html xmlns:faces="jakarta.faces" xmlns:ui="jakarta.faces.facelets" xmlns:f="jakarta.faces.core" xmlns:h="jakarta.faces.html" xmlns:pt="jakarta.faces.passthrough" xmlns:cc="jakarta.faces.composite" xmlns:my="jakarta.faces.component">...</html>Settings
| Jakarta EE | 10 | 11 |
|---|---|---|
| Java | 11/17 | 17/21 |
| Faces | 4.0 | 4.1 |
| EL | 5.0 | 6.0 |
| Servlet | 6.0 | 6.1 |
| CDI | 4.0 | 4.1 |
| WS | 2.1 | 2.2 |
| JPA | 3.1 | 3.2 |
| Facelet | 4.0 | 4.1 |
| GlassFish | 7.x | 8.x. |
Jakarta EE 11
Faces: faces-config.xml
<?xml version="1.0" encoding="UTF-8"?><faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_1.xsd" version="4.1">Servlet: web.xml
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_1.xsd" version="6.1">CDI: beans.xml
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_1.xsd" version="4.1" bean-discovery-mode="all">JPA: persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><persistence xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd" version="3.2">Facelet: taglib.xml
<?xml version="1.0" encoding="UTF-8"?><facelet-taglib xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facelettaglibrary_4_1.xsd" version="4.1">Web fragment: web-fragment.xml
<?xml version="1.0" encoding="utf-8"?><web-fragment xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-fragment_6_1.xsd" version="6.1">Jakarta EE 10
JSF/Faces: faces-config.xml
<?xml version="1.0" encoding="UTF-8"?><faces-config xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_0.xsd" version="4.0">Servlet: web.xml
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd" version="6.0">CDI: beans.xml
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd" bean-discovery-mode="all" version="4.0">JPA: persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><persistence xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_1.xsd" version="3.1">Facelet: taglib.xml
<?xml version="1.0" encoding="UTF-8"?><facelet-taglib xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facelettaglibrary_4_0.xsd" version="4.0">Web fragment: web-fragment.xml
<?xml version="1.0" encoding="utf-8"?><web-fragment xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-fragment_6_1.xsd" version="6.0">Structure
application.xml: mandatory deployment descriptor for the EAR application.web.xml: mandatory deployment descriptor for the WAR application.persistence.xml: mandatory configuration file for the persistence layer. It defines one or more persistence units.ejb-jar.xml: mandatory deployment descriptor for the EJB JAR application.beans.xml: mandatory bean archive descriptor for the CDI applications. It is needed to enable some CDI services.
|-- ear| |-- src| | `-- main| | `-- application| | |-- META-INF| | | `-- application.xml| | `-- config| | `-- connections.xml| `-- pom.xml|-- web| +-- src| | `-- main| | `-- webapp| | -- WEB-INF| | |`-- beans.xml| | `-- web.xml| `-- pom.xml|-- ejb| +-- src| | `-- main| | `-- resources| | -- META-INF| | |`-- persistence.xml| | |`-- beans.xml| | `-- ejb-jar.xml| `-- pom.xml`-- pom.xml