From 30ba6cf85518380125a7eedba26c1173a262460a Mon Sep 17 00:00:00 2001 From: Nicola Isotta Date: Thu, 25 Sep 2025 13:16:31 +0200 Subject: [PATCH] add new jakarta faces libraries --- .../maven.j2ee/nbproject/project.properties | 4 +- ...venJsfReferenceImplementationProvider.java | 5 +- .../nbproject/project.properties | 2 +- .../facelets/DefaultFaceletLibraries.java | 24 ++++- .../facelets/FaceletsLibrarySupport.java | 11 ++- .../WebFaceletTaglibResourceProvider.java | 14 +-- .../web.jsf/nbproject/project.properties | 2 +- .../modules/web/jsf/JSFFrameworkProvider.java | 2 +- .../netbeans/modules/web/jsf/JSFUtils.java | 15 ++- .../jsf/api/facesmodel/JsfVersionUtils.java | 10 +- .../jsf/wizards/JSFConfigurationPanel.java | 6 +- .../wizards/JSFConfigurationPanelVisual.java | 27 +++--- enterprise/web.jsf20/external/binaries-list | 3 + .../external/jakarta.faces-3.0.5-license.txt | 93 +++++++++++++++++++ .../external/jakarta.faces-4.0.13-license.txt | 93 +++++++++++++++++++ .../external/jakarta.faces-4.1.5-license.txt | 93 +++++++++++++++++++ .../web.jsf20/nbproject/project.properties | 12 ++- enterprise/web.jsf20/nbproject/project.xml | 12 ++- .../modules/web/jsf20/Bundle.properties | 12 ++- .../org/netbeans/modules/web/jsf20/jsf20.xml | 2 +- .../org/netbeans/modules/web/jsf20/jsf30.xml | 41 ++++++++ .../org/netbeans/modules/web/jsf20/jsf40.xml | 41 ++++++++ .../org/netbeans/modules/web/jsf20/jsf41.xml | 41 ++++++++ .../org/netbeans/modules/web/jsf20/layer.xml | 9 ++ 24 files changed, 516 insertions(+), 58 deletions(-) create mode 100644 enterprise/web.jsf20/external/jakarta.faces-3.0.5-license.txt create mode 100644 enterprise/web.jsf20/external/jakarta.faces-4.0.13-license.txt create mode 100644 enterprise/web.jsf20/external/jakarta.faces-4.1.5-license.txt create mode 100644 enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf30.xml create mode 100644 enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf40.xml create mode 100644 enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf41.xml diff --git a/enterprise/maven.j2ee/nbproject/project.properties b/enterprise/maven.j2ee/nbproject/project.properties index 5f9e836dbcef..4fde041cd704 100644 --- a/enterprise/maven.j2ee/nbproject/project.properties +++ b/enterprise/maven.j2ee/nbproject/project.properties @@ -16,7 +16,7 @@ # under the License. is.eager=true -javac.compilerargs=-Xlint -Xlint:-serial -Xlint -Xlint:-serial +javac.compilerargs=-Xlint -Xlint:-serial -javac.source=1.8 +javac.release=17 test.config.stableBTD.includes=**/*Test.class diff --git a/enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/MavenJsfReferenceImplementationProvider.java b/enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/MavenJsfReferenceImplementationProvider.java index 707819664363..02601fd95de1 100644 --- a/enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/MavenJsfReferenceImplementationProvider.java +++ b/enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/MavenJsfReferenceImplementationProvider.java @@ -35,7 +35,6 @@ import org.netbeans.modules.maven.embedder.MavenEmbedder; import org.netbeans.modules.web.jsfapi.api.JsfVersion; import org.netbeans.modules.web.jsfapi.spi.JsfReferenceImplementationProvider; -import org.openide.util.Exceptions; import org.openide.util.lookup.ServiceProvider; /** @@ -56,8 +55,8 @@ public class MavenJsfReferenceImplementationProvider implements JsfReferenceImpl map.put(JsfVersion.JSF_2_2, "com.sun.faces:jsf-impl:2.2.20"); map.put(JsfVersion.JSF_2_3, "org.glassfish:jakarta.faces:2.3.21"); map.put(JsfVersion.JSF_3_0, "org.glassfish:jakarta.faces:3.0.5"); - map.put(JsfVersion.JSF_4_0, "org.glassfish:jakarta.faces:4.0.5"); - map.put(JsfVersion.JSF_4_1, "org.glassfish:jakarta.faces:4.1.0-M1"); + map.put(JsfVersion.JSF_4_0, "org.glassfish:jakarta.faces:4.0.13"); + map.put(JsfVersion.JSF_4_1, "org.glassfish:jakarta.faces:4.1.5"); JSF_VERSION_MAVEN_COORDINATES_MAPPING = Collections.unmodifiableMap(map); } diff --git a/enterprise/web.jsf.editor/nbproject/project.properties b/enterprise/web.jsf.editor/nbproject/project.properties index 80813f53dea7..3ae30fb18cd7 100644 --- a/enterprise/web.jsf.editor/nbproject/project.properties +++ b/enterprise/web.jsf.editor/nbproject/project.properties @@ -20,7 +20,7 @@ javac.release=17 javac.compilerargs=-Xlint -Xlint:-serial test-unit-sys-prop.web.project.jars=\ - ${web.jsf12.dir}/modules/ext/jsf-2_2/javax.faces.jar:\ + ${web.jsf12.dir}/modules/ext/jsf-2_3/javax.faces.jar:\ ${servletjspapi.dir}/modules/ext/servlet4.0-jsp2.3-api.jar requires.nb.javac=true diff --git a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/DefaultFaceletLibraries.java b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/DefaultFaceletLibraries.java index de16181ea09d..0a51803b9d80 100644 --- a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/DefaultFaceletLibraries.java +++ b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/DefaultFaceletLibraries.java @@ -30,6 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.netbeans.modules.web.jsfapi.api.DefaultLibraryInfo; +import org.netbeans.modules.web.jsfapi.api.JsfVersion; import org.netbeans.modules.web.jsfapi.api.Library; import org.netbeans.modules.web.jsfapi.api.LibraryComponent; import org.netbeans.modules.web.jsfapi.api.LibraryInfo; @@ -49,6 +50,19 @@ public class DefaultFaceletLibraries { private static DefaultFaceletLibraries INSTANCE; + + private static String getJarPath(JsfVersion version) { + if (version == null) { + version = JsfVersion.JSF_2_3; + } + return switch (version) { + case JSF_4_1 -> "modules/ext/jsf-4_1/jakarta.faces.jar"; + case JSF_4_0 -> "modules/ext/jsf-4_0/jakarta.faces.jar"; + case JSF_3_0 -> "modules/ext/jsf-3_0/jakarta.faces.jar"; + default -> "modules/ext/jsf-2_3/javax.faces.jar"; + }; + } + private File jsfImplJar; private Collection libraryDescriptorsFiles; private Map librariesDescriptors; @@ -56,7 +70,7 @@ public class DefaultFaceletLibraries { public static synchronized DefaultFaceletLibraries getInstance() { if (INSTANCE == null) { - INSTANCE = new DefaultFaceletLibraries(); + INSTANCE = new DefaultFaceletLibraries(JsfVersion.JSF_2_3); } return INSTANCE; } @@ -67,9 +81,9 @@ public DefaultFaceletLibraries(File jsfImplJar) { init(jsfImplJar); } - public DefaultFaceletLibraries() { + public DefaultFaceletLibraries(JsfVersion version) { this(InstalledFileLocator.getDefault().locate( - "modules/ext/jsf-2_2/javax.faces.jar", //NOI18N + getJarPath(version), "org.netbeans.modules.web.jsf20", false) //NOI18N ); } @@ -105,8 +119,8 @@ private void parseLibraries() { descritor = FaceletsLibraryDescriptor.create(lfo); librariesDescriptors.put(descritor.getNamespace(), descritor); } catch (LibraryDescriptorException ex) { - Logger.global.log(Level.WARNING, "Error parsing facelets library " + - FileUtil.getFileDisplayName(lfo) + " in javax.faces.jar from bundled web.jsf20 library", ex); + Logger.getGlobal().log(Level.WARNING, "Error parsing facelets library " + + FileUtil.getFileDisplayName(lfo) + " from file " + jsfImplJar, ex); } } diff --git a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/FaceletsLibrarySupport.java b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/FaceletsLibrarySupport.java index 4da12805c29c..22c9fa4cc22a 100644 --- a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/FaceletsLibrarySupport.java +++ b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/FaceletsLibrarySupport.java @@ -61,6 +61,7 @@ import org.openide.util.Lookup; import org.openide.util.NbBundle; import org.openide.util.RequestProcessor; +import org.openide.util.Utilities; /** * @@ -285,7 +286,7 @@ private Map _findLibraries() { //exclude the jsf jars from the classpath, if jsf20 library is available, //we'll use the jars from the netbeans library instead String fsName = cpRoot.getFileSystem().getDisplayName(); //any better way? - if(!fsName.endsWith("javax.faces.jar")) { //NOI18N + if(!fsName.endsWith("javax.faces.jar") && !fsName.endsWith("jakarta.faces.jar")) { //NOI18N urlsToLoad.add(URLMapper.findURL(cpRoot, URLMapper.INTERNAL)); LOGGER.log(Level.FINE, "+++{0}", cpRoot); //NOI18N } else { @@ -297,7 +298,7 @@ private Map _findLibraries() { } } - ClassLoader proxyLoader = new URLClassLoader(urlsToLoad.toArray(new URL[]{}), originalLoader) { + ClassLoader proxyLoader = new URLClassLoader(urlsToLoad.toArray(URL[]::new), originalLoader) { //prevent services loading from mojarra's sources @Override @@ -370,7 +371,7 @@ public Enumeration findResources(String name) throws IOException { //happen that there is no javax-faces.jar with the .taglib.xml files //on the compile classpath and we still want the features like code //completion work. This happens for example in Maven web projects. - DefaultFaceletLibraries defaultFaceletLibraries = DefaultFaceletLibraries.getInstance(); + DefaultFaceletLibraries defaultFaceletLibraries = new DefaultFaceletLibraries(jsfVersion); Collection libraryDescriptorFiles = defaultFaceletLibraries.getLibrariesDescriptorsFiles(); final Collection libraryURIs = new ArrayList<>(); for (FileObject fo : libraryDescriptorFiles) { @@ -382,13 +383,13 @@ public Enumeration findResources(String name) throws IOException { } faceletTaglibProviders.add(sc -> libraryURIs); - jsfRIJars.add(defaultFaceletLibraries.getJsfImplJar().toURI().toURL()); + jsfRIJars.add(Utilities.toURI(defaultFaceletLibraries.getJsfImplJar()).toURL()); } } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } - URLClassLoader jsfRIClassLoader = new URLClassLoader(jsfRIJars.toArray(new URL[]{})); + URLClassLoader jsfRIClassLoader = new URLClassLoader(jsfRIJars.toArray(URL[]::new)); //parse the libraries ServletContext sc = new EmptyServletContext(); diff --git a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/WebFaceletTaglibResourceProvider.java b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/WebFaceletTaglibResourceProvider.java index d4cfe4266d19..89e534bd4195 100644 --- a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/WebFaceletTaglibResourceProvider.java +++ b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/WebFaceletTaglibResourceProvider.java @@ -41,16 +41,17 @@ import org.openide.util.Exceptions; /** - * provider URLs of libraries defined in javax.faces.FACELETS_LIBRARIES context param of deployment descriptor + * provider URLs of libraries defined in [javax|jakarta].faces.FACELETS_LIBRARIES context param of deployment descriptor * * @author marekfukala */ public class WebFaceletTaglibResourceProvider implements ConfigurationResourceProvider { - private WebModule wm; - private static final String FACELETS_LIBRARIES_OLD_PROPERTY_NAME = "facelets.LIBRARIES"; //NOI18N private static final String FACELETS_LIBRARIES_PROPERTY_NAME = "javax.faces.FACELETS_LIBRARIES"; //NOI18N + private static final String FACELETS_LIBRARIES_JAKARTA_PROPERTY_NAME = "jakarta.faces.FACELETS_LIBRARIES"; //NOI18N + + private final WebModule wm; public WebFaceletTaglibResourceProvider(WebModule wm) { this.wm = wm; @@ -65,7 +66,7 @@ public Collection getResources(ServletContext ignored) { // This is executed just in case that the model is ready. Otherwise it leads to uncancelable work. // Another reports against non-consistents result from the first and second invocation should be // consulted with tzetula for better options how to fix this. Related issue is bug #232878. - faceletsLibrariesList = model.runReadAction(new MetadataModelAction() { + faceletsLibrariesList = model.runReadAction(new MetadataModelAction<>() { @Override public String run(WebAppMetadata metadata) throws Exception { //TODO can be init param specified by some annotation or the dd must be present? @@ -73,8 +74,9 @@ public String run(WebAppMetadata metadata) throws Exception { if (ddRoot != null) { InitParam[] contextParams = ddRoot.getContextParam(); for (InitParam param : contextParams) { - if (FACELETS_LIBRARIES_PROPERTY_NAME.equals(param.getParamName()) || - FACELETS_LIBRARIES_OLD_PROPERTY_NAME.equals(param.getParamName())) { + if (FACELETS_LIBRARIES_PROPERTY_NAME.equals(param.getParamName()) + || FACELETS_LIBRARIES_OLD_PROPERTY_NAME.equals(param.getParamName()) + || FACELETS_LIBRARIES_JAKARTA_PROPERTY_NAME.equals(param.getParamName())) { return param.getParamValue(); } } diff --git a/enterprise/web.jsf/nbproject/project.properties b/enterprise/web.jsf/nbproject/project.properties index 105796a1f7a1..e1202d7a3cb2 100644 --- a/enterprise/web.jsf/nbproject/project.properties +++ b/enterprise/web.jsf/nbproject/project.properties @@ -16,7 +16,7 @@ # under the License. javac.compilerargs=-Xlint -Xlint:-serial -javac.source=1.8 +javac.release=17 spec.version.base=2.11.0 test.config.default.excludes=\ diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFFrameworkProvider.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFFrameworkProvider.java index 79e56e14b95e..a75844c85f77 100644 --- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFFrameworkProvider.java +++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/JSFFrameworkProvider.java @@ -148,7 +148,7 @@ public Set extendImpl(WebModule webModule, TreeMap list = Arrays.asList(files); isJSF = ClasspathUtil.containsClass(list, FACES_EXCEPTION); + if (!isJSF) { + isJSF = ClasspathUtil.containsClass(list, JAKARTAEE_FACES_EXCEPTION); + } } catch (IOException exception) { Exceptions.printStackTrace(exception); } @@ -143,9 +146,13 @@ public boolean accept(File pathname) { result = NbBundle.getMessage(JSFUtils.class, "ERROR_THERE_IS_NOT_LIB_FOLDER", resource.getPath()); //NOI18N } } else { - // Case of JSF version 2.1.3+ - JSF library is delivered as a single JAR file + // Case of Mojarra version 2.1.3+ - JSF library is delivered as a single JAR file try { - isJSF = ClasspathUtil.containsClass(Collections.singletonList(resource), FACES_EXCEPTION); + List list = Collections.singletonList(resource); + isJSF = ClasspathUtil.containsClass(list, FACES_EXCEPTION); + if (!isJSF) { + isJSF = ClasspathUtil.containsClass(list, JAKARTAEE_FACES_EXCEPTION); + } } catch (IOException ex) { Exceptions.printStackTrace(ex); } diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/api/facesmodel/JsfVersionUtils.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/api/facesmodel/JsfVersionUtils.java index 45b6fb5abfd5..80258fb5f0e6 100644 --- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/api/facesmodel/JsfVersionUtils.java +++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/api/facesmodel/JsfVersionUtils.java @@ -29,6 +29,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Set; import java.util.WeakHashMap; import java.util.logging.Level; import java.util.logging.Logger; @@ -52,7 +53,6 @@ import org.openide.filesystems.FileUtil; import org.openide.util.Exceptions; import org.openide.util.Parameters; -import org.openide.util.RequestProcessor; import org.openide.util.WeakListeners; /** @@ -61,6 +61,12 @@ */ public final class JsfVersionUtils { + private static final Set SPECIFICATION_TITLES = Set.of( + "JavaServer Faces", // 1-2 + "Jakarta Server Faces", // 3 + "Jakarta Faces" // 4+ + ); + private static final LinkedHashMap SPECIFIC_CLASS_NAMES = new LinkedHashMap<>(); static { @@ -197,7 +203,7 @@ public static JsfVersion forClasspath(@NonNull List classpath) { @CheckForNull public static JsfVersion forServerLibrary(@NonNull ServerLibrary lib) { Parameters.notNull("serverLibrary", lib); //NOI18N - if ("JavaServer Faces".equals(lib.getSpecificationTitle())) { // NOI18N + if (SPECIFICATION_TITLES.contains(lib.getSpecificationTitle())) { // NOI18N if (Version.fromJsr277NotationWithFallback("4.1").equals(lib.getSpecificationVersion())) { //NOI18N return JsfVersion.JSF_4_1; } else if (Version.fromJsr277NotationWithFallback("4.0").equals(lib.getSpecificationVersion())) { //NOI18N diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanel.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanel.java index d4b566b8aaf1..69f8034debf7 100644 --- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanel.java +++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanel.java @@ -21,16 +21,12 @@ import java.io.File; import java.util.ArrayList; -import java.util.HashSet; -import java.util.Iterator; import java.util.List; import java.util.Set; -import java.util.prefs.Preferences; -import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; +import org.netbeans.api.j2ee.core.Profile; import org.netbeans.api.project.FileOwnerQuery; import org.netbeans.api.project.Project; -import org.netbeans.api.project.ProjectUtils; import org.netbeans.api.project.libraries.Library; import org.netbeans.modules.j2ee.deployment.plugins.api.ServerLibrary; import org.netbeans.modules.web.api.webmodule.ExtenderController; diff --git a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanelVisual.java b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanelVisual.java index e8b93a689852..a94c16ca6d56 100644 --- a/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanelVisual.java +++ b/enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/JSFConfigurationPanelVisual.java @@ -1819,7 +1819,7 @@ public void run() { } else if (getProfile() != null && getProfile().isAtLeast(Profile.JAKARTA_EE_9_WEB)) { preferredLibrary = LibraryManager.getDefault().getLibrary(JSFUtils.DEFAULT_JSF_3_0_NAME); } else if (getProfile() != null && getProfile().isAtLeast(Profile.JAVA_EE_5)) { - preferredLibrary = LibraryManager.getDefault().getLibrary(JSFUtils.DEFAULT_JSF_2_0_NAME); + preferredLibrary = LibraryManager.getDefault().getLibrary(JSFUtils.DEFAULT_JSF_2_3_NAME); } else { preferredLibrary = LibraryManager.getDefault().getLibrary(JSFUtils.DEFAULT_JSF_1_2_NAME); } @@ -1859,6 +1859,10 @@ public void run() { private class RegisteredLibraryFinder implements Runnable { + private boolean isValidLibraryItem(LibraryItem li) { + return getProfile().isAtLeast(Profile.JAKARTA_EE_9_WEB) ^ li.getVersion().isAtMost(JsfVersion.JSF_2_3); + } + @Override public void run() { synchronized (JSFConfigurationPanelVisual.this) { @@ -1867,15 +1871,11 @@ public void run() { List content = library.getContent("classpath"); //NOI18N JsfVersion jsfVersion = JsfVersionUtils.forClasspath(content); LibraryItem item = jsfVersion != null ? new LibraryItem(library, jsfVersion) : new LibraryItem(library, JsfVersion.JSF_1_1); - jsfLibraries.add(item); - jsfLibraries.sort(new Comparator() { - @Override - public int compare(LibraryItem li1, LibraryItem li2) { - return li1.getLibrary().getDisplayName().compareTo(li2.getLibrary().getDisplayName()); - } - }); - Collections.reverse(jsfLibraries); + if (isValidLibraryItem(item)) { + jsfLibraries.add(item); + } } + jsfLibraries.sort(Comparator.comparing(LibraryItem::getVersion).reversed()); // if maven, exclude user defined libraries if (panel.isMaven()) { @@ -1885,11 +1885,10 @@ public int compare(LibraryItem li1, LibraryItem li2) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { - List registeredItems = new ArrayList<>(); - for (LibraryItem libraryItem : jsfLibraries) { - registeredItems.add(libraryItem.getLibrary().getDisplayName()); - } - setRegisteredLibraryModel(registeredItems.toArray(new String[0])); + String[] registeredItems = jsfLibraries.stream() + .map(lib -> lib.getLibrary().getDisplayName()) + .toArray(String[]::new); + setRegisteredLibraryModel(registeredItems); updatePreferredLanguages(); updateJsfComponents(); } diff --git a/enterprise/web.jsf20/external/binaries-list b/enterprise/web.jsf20/external/binaries-list index 0230594aa135..46a267604e1a 100644 --- a/enterprise/web.jsf20/external/binaries-list +++ b/enterprise/web.jsf20/external/binaries-list @@ -16,3 +16,6 @@ # under the License. CE120B9CB924B78FD3B465E6F8A402C1E5C25B84 org.glassfish:javax.faces:2.3.9 +0CBD9DF94D906A4E91608DA048E3450B6E4DF77D org.glassfish:jakarta.faces:3.0.5 +FF87D2AECE8F1B251F3395FEF7B31721103D9FD8 org.glassfish:jakarta.faces:4.0.13 +1EF3CA919DDC0FFD6F65E257DE1A80746425FBA5 org.glassfish:jakarta.faces:4.1.5 diff --git a/enterprise/web.jsf20/external/jakarta.faces-3.0.5-license.txt b/enterprise/web.jsf20/external/jakarta.faces-3.0.5-license.txt new file mode 100644 index 000000000000..7fabbc50ec1c --- /dev/null +++ b/enterprise/web.jsf20/external/jakarta.faces-3.0.5-license.txt @@ -0,0 +1,93 @@ +Name: Jakarta Faces +Version: 3.0.5 +License: EPL-v20 +Description: Jakarta Faces 3.0.5 +Origin: Eclipse Foundation (https://repo1.maven.org/maven2/org/glassfish/jakarta.faces/3.0.5/) +Files: jakarta.faces-3.0.5.jar + +Eclipse Public License - v 2.0 +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. Definitions +“Contribution” means: + +a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and +b) in the case of each subsequent Contributor: +i) changes to the Program, and +ii) additions to the Program; where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution “originates” from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works. +“Contributor” means any person or entity that Distributes the Program. + +“Licensed Patents” mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +“Program” means the Contributions Distributed in accordance with this Agreement. + +“Recipient” means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors. + +“Derivative Works” shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. + +“Modified Works” shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or Modified Works thereof. + +“Distribute” means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy. + +“Source Code” means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files. + +“Secondary License” means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor. + +2. Grant of Rights +a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works. + +b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + +c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to Distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + +d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3). + +3. Requirements +3.1 If a Contributor Distributes the Program in any form, then: + +a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and + +b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license: + +i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; +ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; +iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and +iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3. +3.2 When the Program is Distributed as Source Code: + +a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and +b) a copy of this Agreement must be included with each copy of the Program. +3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (“notices”) contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices. + +4. Commercial Distribution +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (“Commercial Contributor”) hereby agrees to defend and indemnify every other Contributor (“Indemnified Contributor”) against any losses, damages and costs (collectively “Losses”) arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. No Warranty +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. Disclaimer of Liability +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. General +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be Distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to Distribute the Program (including its Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement. + +Exhibit A - Form of Secondary Licenses Notice +“This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}.” + +Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses. + +If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. + +You may add additional accurate notices of copyright ownership. diff --git a/enterprise/web.jsf20/external/jakarta.faces-4.0.13-license.txt b/enterprise/web.jsf20/external/jakarta.faces-4.0.13-license.txt new file mode 100644 index 000000000000..32251a2aa3db --- /dev/null +++ b/enterprise/web.jsf20/external/jakarta.faces-4.0.13-license.txt @@ -0,0 +1,93 @@ +Name: Jakarta Faces +Version: 4.0.13 +License: EPL-v20 +Description: Jakarta Faces 4.0.13 +Origin: Eclipse Foundation (https://repo1.maven.org/maven2/org/glassfish/jakarta.faces/4.0.13/) +Files: jakarta.faces-4.0.13.jar + +Eclipse Public License - v 2.0 +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. Definitions +“Contribution” means: + +a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and +b) in the case of each subsequent Contributor: +i) changes to the Program, and +ii) additions to the Program; where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution “originates” from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works. +“Contributor” means any person or entity that Distributes the Program. + +“Licensed Patents” mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +“Program” means the Contributions Distributed in accordance with this Agreement. + +“Recipient” means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors. + +“Derivative Works” shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. + +“Modified Works” shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or Modified Works thereof. + +“Distribute” means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy. + +“Source Code” means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files. + +“Secondary License” means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor. + +2. Grant of Rights +a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works. + +b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + +c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to Distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + +d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3). + +3. Requirements +3.1 If a Contributor Distributes the Program in any form, then: + +a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and + +b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license: + +i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; +ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; +iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and +iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3. +3.2 When the Program is Distributed as Source Code: + +a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and +b) a copy of this Agreement must be included with each copy of the Program. +3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (“notices”) contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices. + +4. Commercial Distribution +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (“Commercial Contributor”) hereby agrees to defend and indemnify every other Contributor (“Indemnified Contributor”) against any losses, damages and costs (collectively “Losses”) arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. No Warranty +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. Disclaimer of Liability +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. General +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be Distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to Distribute the Program (including its Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement. + +Exhibit A - Form of Secondary Licenses Notice +“This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}.” + +Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses. + +If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. + +You may add additional accurate notices of copyright ownership. diff --git a/enterprise/web.jsf20/external/jakarta.faces-4.1.5-license.txt b/enterprise/web.jsf20/external/jakarta.faces-4.1.5-license.txt new file mode 100644 index 000000000000..4b8e8535d6ef --- /dev/null +++ b/enterprise/web.jsf20/external/jakarta.faces-4.1.5-license.txt @@ -0,0 +1,93 @@ +Name: Jakarta Faces +Version: 4.1.3 +License: EPL-v20 +Description: Jakarta Faces 4.1.5 +Origin: Eclipse Foundation (https://repo1.maven.org/maven2/org/glassfish/jakarta.faces/4.1.5/) +Files: jakarta.faces-4.1.5.jar + +Eclipse Public License - v 2.0 +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. Definitions +“Contribution” means: + +a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and +b) in the case of each subsequent Contributor: +i) changes to the Program, and +ii) additions to the Program; where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution “originates” from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works. +“Contributor” means any person or entity that Distributes the Program. + +“Licensed Patents” mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +“Program” means the Contributions Distributed in accordance with this Agreement. + +“Recipient” means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors. + +“Derivative Works” shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. + +“Modified Works” shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or Modified Works thereof. + +“Distribute” means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy. + +“Source Code” means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files. + +“Secondary License” means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor. + +2. Grant of Rights +a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works. + +b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + +c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to Distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + +d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3). + +3. Requirements +3.1 If a Contributor Distributes the Program in any form, then: + +a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and + +b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license: + +i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; +ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; +iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and +iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3. +3.2 When the Program is Distributed as Source Code: + +a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and +b) a copy of this Agreement must be included with each copy of the Program. +3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (“notices”) contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices. + +4. Commercial Distribution +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (“Commercial Contributor”) hereby agrees to defend and indemnify every other Contributor (“Indemnified Contributor”) against any losses, damages and costs (collectively “Losses”) arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. No Warranty +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. Disclaimer of Liability +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. General +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be Distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to Distribute the Program (including its Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement. + +Exhibit A - Form of Secondary Licenses Notice +“This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}.” + +Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses. + +If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. + +You may add additional accurate notices of copyright ownership. diff --git a/enterprise/web.jsf20/nbproject/project.properties b/enterprise/web.jsf20/nbproject/project.properties index ffe8ba331495..e07e57da2c93 100644 --- a/enterprise/web.jsf20/nbproject/project.properties +++ b/enterprise/web.jsf20/nbproject/project.properties @@ -16,9 +16,15 @@ # under the License. javac.compilerargs=-Xlint -Xlint:-serial -javac.source=1.8 -release.external/javax.faces-2.3.9.jar=modules/ext/jsf-2_2/javax.faces.jar -release.external/javax.faces-2.3.9-license.txt=modules/ext/jsf-2_2/license.txt +javac.release=17 +release.external/javax.faces-2.3.9.jar=modules/ext/jsf-2_3/javax.faces.jar +release.external/javax.faces-2.3.9-license.txt=modules/ext/jsf-2_3/license.txt +release.external/jakarta.faces-3.0.5.jar=modules/ext/jsf-3_0/jakarta.faces.jar +release.external/jakarta.faces-3.0.5-license.txt=modules/ext/jsf-3_0/license.txt +release.external/jakarta.faces-4.0.13.jar=modules/ext/jsf-4_0/jakarta.faces.jar +release.external/jakarta.faces-4.0.13-license.txt=modules/ext/jsf-4_0/license.txt +release.external/jakarta.faces-4.1.5.jar=modules/ext/jsf-4_1/jakarta.faces.jar +release.external/jakarta.faces-4.1.5-license.txt=modules/ext/jsf-4_1/license.txt spec.version.base=1.64.0 # Old library with too broadly defined API - sigtest would give more noise than benefit diff --git a/enterprise/web.jsf20/nbproject/project.xml b/enterprise/web.jsf20/nbproject/project.xml index 7aad95874141..91563e7488a8 100644 --- a/enterprise/web.jsf20/nbproject/project.xml +++ b/enterprise/web.jsf20/nbproject/project.xml @@ -55,9 +55,19 @@ javax.faces com.sun.faces + jakarta.faces - ext/jsf-2_2/javax.faces.jar + ext/jsf-2_3/javax.faces.jar + + + ext/jsf-3_0/jakarta.faces.jar + + + ext/jsf-4_0/jakarta.faces.jar + + + ext/jsf-4_1/jakarta.faces.jar diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/Bundle.properties b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/Bundle.properties index 1ea7b6bd0373..71bb8336f895 100644 --- a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/Bundle.properties +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/Bundle.properties @@ -16,10 +16,14 @@ # under the License. # module description -OpenIDE-Module-Name=JavaServer Faces 2.3 Library -OpenIDE-Module-Display-Category=Web -OpenIDE-Module-Short-Description=Installs the JavaServer Faces 2.3 Library -OpenIDE-Module-Long-Description=Installs the JavaServer Faces 2.3 Library +OpenIDE-Module-Name=JavaServer Faces Libraries +OpenIDE-Module-Display-Category=Java Web and EE +OpenIDE-Module-Short-Description=Installs the JSF/Jakarta Faces Libraries +OpenIDE-Module-Long-Description=\ + Installs the JSF/Jakarta Faces Libraries # library display name jsf20=JSF 2.3 +jsf30=JSF 3.0 +jsf40=Faces 4.0 +jsf41=Faces 4.1 diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf20.xml b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf20.xml index 5d1e7437c6ed..c91d47cff005 100644 --- a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf20.xml +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf20.xml @@ -26,7 +26,7 @@ org/netbeans/modules/web/jsf20/Bundle classpath - jar:nbinst://org.netbeans.modules.web.jsf20/modules/ext/jsf-2_2/javax.faces.jar!/ + jar:nbinst://org.netbeans.modules.web.jsf20/modules/ext/jsf-2_3/javax.faces.jar!/ javadoc diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf30.xml b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf30.xml new file mode 100644 index 000000000000..010873198543 --- /dev/null +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf30.xml @@ -0,0 +1,41 @@ + + + + + jsf30 + j2se + org/netbeans/modules/web/jsf20/Bundle + + classpath + jar:nbinst://org.netbeans.modules.web.jsf20/modules/ext/jsf-3_0/jakarta.faces.jar!/ + + + javadoc + jar:nbinst://org.netbeans.modules.jakartaee.platform/docs/jakartaee9-doc-api.jar!/ + + + + maven-dependencies + org.glassfish:jakarta.faces:3.0.5:jar + + + diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf40.xml b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf40.xml new file mode 100644 index 000000000000..a6631bb0eca3 --- /dev/null +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf40.xml @@ -0,0 +1,41 @@ + + + + + jsf40 + j2se + org/netbeans/modules/web/jsf20/Bundle + + classpath + jar:nbinst://org.netbeans.modules.web.jsf20/modules/ext/jsf-4_0/jakarta.faces.jar!/ + + + javadoc + jar:nbinst://org.netbeans.modules.jakartaee.platform/docs/jakartaee10-doc-api.jar!/ + + + + maven-dependencies + org.glassfish:jakarta.faces:4.0.13:jar + + + diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf41.xml b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf41.xml new file mode 100644 index 000000000000..2305e563d7a5 --- /dev/null +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/jsf41.xml @@ -0,0 +1,41 @@ + + + + + jsf41 + j2se + org/netbeans/modules/web/jsf20/Bundle + + classpath + jar:nbinst://org.netbeans.modules.web.jsf20/modules/ext/jsf-4_1/jakarta.faces.jar!/ + + + javadoc + jar:nbinst://org.netbeans.modules.jakartaee.platform/docs/jakartaee11-doc-api.jar!/ + + + + maven-dependencies + org.glassfish:jakarta.faces:4.1.5:jar + + + diff --git a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/layer.xml b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/layer.xml index 34769d39db4d..c23ca2cc55fd 100644 --- a/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/layer.xml +++ b/enterprise/web.jsf20/src/org/netbeans/modules/web/jsf20/layer.xml @@ -29,6 +29,15 @@ + + + + + + + + +