

Glassfish web xml archive#
The Java EE tutorial is also a good way to learn Java EE, and is bundled with the Java EE 7 SDK along with GlassFish 4. Assembly Root WEB-INF lib Web pages classes web.xml glassfish-web.xml (optional) Library archive files All server-side. As for the glassfish-web.xml, you only use one if you have GlassFish-specific features to configure for your application. By default, don't use any of these files and simply use Java EE annotations like As you build out your app and perhaps begin using some features that require the web.xml file (like to define the JavaServer Faces FacesServlet), then use a web.xml file. It depends on the Java EE features you use. This file name is still supported for backwards compatibility, but you should migrate to glassfish-web.xml. It no longer made sense to have this name after Sun was acquired by Oracle.

Metro/WSIT : Metro est le nom de la technologie Web Services de GlassFish et Web Services Interoperability Technology (projet Tango) est son extension. Avec GlassFish v3, cest un support complet de Java EE 6 qui est proposé. sun-web.xml: Legacy application-server specific deployment descriptor, and has been replaced by glassfish-web.xml. StAX - parseur de streaming XML JSP 2.1 & Servlet 2.5 : Pour générer des pages et du contenu WEB dynamiquement.This is documented in the GlassFish Documentation. To configure these features for GlassFish, use glassfish-web.xml. In Java EE 6 and beyond, it is optional (depending on technologies that you use) when metadata is provided by annotations in your Java code, like glassfish-web.xml: Each application server offers implementation-specific features. However, the start method in 3 sets the value of web.
Glassfish web xml portable#
It is used to specify the metadata used by the web container to deploy the application in a portable manner across application servers (such as the URL endpoint of a servlet). The setI18nInfo method of 1, 2 will set the glassfish-web.xml value if both web.xml and glassfish-web.xml are defined. web.xml: Standard deployment descriptor defined by Java EE (Servlet JSR in particular, but used by many JSRs).Could someone explain the main differences (or provide a link to) between glassfish-web.xml, sun-web.xml and web.xml?Ĭan I use just glassfish-web.xml in my webapp and skip the others? This is documented in the GlassFish Documentation.
