IntelliJ IDEA 2016.2 Help

Web, EJB and Java EE Application Facet Pages

File | Project Structure | Modules | <module> | Web, EJB or Java EE Application
File | Project Structure | Facets | Web (<module>), EJB (<module>) or Java EE Application (<module>)


Use this page to edit the settings for a Web, EJB or Java EE Application facet.

Controls for the above mentioned facets are similar, and the differences are specially marked.

ItemDescriptionAvailable for
NameIn this text box, type the name of the facet.Web, JavaEE, EJB facets
Deployment DescriptorsUse the controls in this section to manage application deployment descriptors.
  • Type - this read-only field shows the type of deployment descriptor, depending on the facet type: Web Module Deployment Descriptor, Application Module Deployment Descriptor, or EJB Module Deployment Descriptor, respectively.
  • Path - this read-only field shows the location of the deployment descriptor, web.xml, ejb.xml, or application.xml, respectively.
  • add (Alt+Insert) - use this icon or shortcut to create a new deployment descriptor. In the Deployment Descriptor Location dialog box that opens specify the descriptor location and the specification (version) to be used.

    Only one deployment descriptor can be created per facet.

  • edit1 (Enter) - use this icon or shortcut to specify another location for the selected deployment descriptor.
  • delete (Alt+Delete) - use this icon or shortcut to remove the selected descriptor from the list. To delete the selected descriptor from disk as well, select the Also delete from disk check box in the Delete Deployment Descriptor confirmation dialog box that opens.
  • Add Application Server specific descriptor - click this button to add a deployment descriptor for one of the supported application servers (Geronimo, GlassFish, Tomcat, JBoss, or WebLogic). In the Create Application Server Specific Descriptor dialog box that opens specify the desired application server and its version to use.
Web, JavaEE, EJB facets
Web Resource Directories Use this section to map third party or unclassified resource directories to the deployment directory roots.
  • Web Resource Directory - this read-only field shows the local directory where the desired Web resource resides.
    A Web resource directory contains files required for Web development: JSP, HTML, XML, etc. The contents of the Web resource directory are copied to the Web module deployment output according to the Relative Path setting.
  • Path Relative to Deployment Root - this read-only field shows the path to your Web resource directory relative to the deployment directory root.
  • add (Alt+Insert) - use this icon or shortcut to configure a new mapping in the Web Resource Directories dialog box that opens.
  • edit1 (Enter) - use this icon or shortcut to re-configure the selected mapping in the Web Resource Directories dialog box that opens.
  • delete (Alt+Delete) - use this icon or shortcut to remove the selected mapping from the list.
  • help - click this button to have the reference topic for the Web Resource Directories dialog box displayed.
Web facet
Source RootsThis area shows the list of source roots encountered in the current module. Select the check box next to a root to have the classes from this root included in the corresponding artifact.Web facet
Create Artifact This button appears when no artifact of the relevant type is available. Click this button to create a new artifact on the Artifacts page that opens. Web, JavaEE, EJB facets
FixClick this button:
  • To have the missing libraries downloaded and installed automatically.
  • To create an artifact of the relevant type and add the facet resources to it on the Artifacts page that opens.
  • To add the facet resources into an existing artifact on the Artifacts page that opens.
Web, JavaEE, EJB facets

See Also

Last modified: 23 November 2016