Previous Next vertical dots separating previous/next from contents/index/pdf

Setting Project Facets

When a project is created, various information is assembled to specify the type of project, add standard libraries, set compiler options, control publishing tasks, set the build path and/or add an annotation processor. This information is specified by choosing facets during project creation. Facets can also be added and deleted from a project after its initial creation. To edit a project's facets, select Project > Properties > Project Facets.

Facets have version numbers. Not all facet version numbers can be changed (e.g., a facet available in only one version of software can not have other version numbers). Some facet version numbers are inter-dependent (e.g., if you choose the facet Java Annotation Processing, you must also have Java version 5.0 selected since Java versions 1.3 and 1.4 did not support annotation processing).

Each WebLogic project has two core facets:

For example, the Dynamic Web Project has two core facets: the Dynamic Web Module (the enable facet) and the WebLogic Web App Extensions facets.

In the project creation wizard (File > New > Project), required facets are displayed in boldface. The facet choices vary depending on the project type. For example, web service facets are not available when creating an EJB project.

WebLogic Project Facet Types

Enabler Facets

The enabler facets specify the WebLogic project type. The following table lists the available enabler modules.

Facet Name Version Info Description
EAR J2EE spec version (1.4, 1.3, 1.2) Enables the project as an EAR
EJB Module EJB spec version (2.1, 2.0, 1.1) Enables the project for EJBs
Utility Module WTP version for the utility module facet (1.0) Enables the project to be referenced by other projects (J2EE modules)
Dynamic Web Module Servlet spec version (2.4, 2.3, 2.2) Enables web applications (web services and page flows)

Minimum Project Extensions

All WebLogic projects require, as a minimum, support for J2EE shared libraries. This WebLogic feature allows modules to share a single copy of the J2EE libraries rather than duplicating the library in each project. The following table lists the available project extensions.

Facet Name Version Info Adds (in addition to J2EE shared library support):
WebLogic EAR Extensions WebLogic Server version (10.0)  
WebLogic EJB Extensions EJB spec version (2.1, 2.0, 1.1) EJBGen tool that allows EJBs to be created in a single annotated .java source file
WebLogic Utility Module Extensions WebLogic Server version (10.0)  
WebLogic Web App Extensions WebLogic Server version (10.0)  

Java Support

Java language support and annotation processing are required by all working projects (web applications, EJBs, utility projects). EAR projects require only Java language support.

Facet Name Version Info Description
Java Java version number (5.0, 1.4, 1.3) Add Java edit, refactor, compile features (the JDT tools)
Java Annotation Processing Support Java version number (5.0) Support for Java 5.0 annotation (JSR-175)

XMLBeans Support

XMLBeans is a project of the Apache Foundation ( The XMLBeans feature of WebLogic can be used with any project type and replaces the schema project type used in WebLogic Workshop 8.1. The XMLBeans builder compiles complex data types in WSDLs or schemas into Java types. This is used when building a web service with an existing schema. It is also useful when accessing a web service control that incorporates complex types. For more information on using XMLBeans, see Using XMLBeans in the IDE.

XMLBeans are optional within all projects types.

Facet Name Version Info Description
XMLBeans Library XMLBeans version 2.2 Puts XML Beans API on the build path
XMLBeans Builder XMLBeans version 2.2 Adds builder plugin to Eclipse that generates Java types from WSDL or XSD (schema) files.

XDoclet support

XDoclet is a extended doclet code generator for Java. XDoclet is a tool that allows developers to create servlets and EJBs in a single annotated source file and XDoclet then automatically generates XML descriptors and interfaces.

Facet Name Version Info Description
EJBDoclet (XDoclet) XDoclet spec version number (1.2.3, 1.2.2, 1.2.1) Enables the project to run EJBDoclet post-processing on annotated EJBs
WebDoclet (XDoclet) XDoclet spec version number (1.2.3, 1.2.2, 1.2.1) Enables the project to run WEBDoclet post-processing on annotated servlets

Beehive Page Flows and Controls

Beehive is a project of the Apache Foundation ( Beehive provides support for JSR-175 annotations and includes NetUI and controls.

Facet Name Version Info Description
Beehive Controls Beehive version (1.0.1) Adds Beehive system controls and support for custom controls
Beehive NetUI Beehive version (1.0.1) Adds support for page flows and JSPs as well as integration with Java Server Faces (JSF) and Struts
Workshop Control Extensions WebLogic Server version (10.0) Workshop for WebLogic extensions for controls including timer control and web service control

JSF (Java Server Faces)

Java Server Faces is a component framework for building user interfaces for web apps

Facet Name Version Info Description
JSF Sun Reference Implementation 1.1.01 Adds JSF implementation.

Annotated Web Services

JSR-181 defines a standard annotated Java format that that uses Java Language Metadata (JSR-175) to enable easy definition of Java Web Services in a J2EE container.

Facet Name Version Info Description
Standard Annotated Web Services JSR-181 version (1.0) Adds support for standard annotation as defined in JSR-181
WebLogic Web Service Extensions WebLogic Server version (10.0) Adds WebLogic extensions to standard JSR-181 annotations

J2EE Support

Additional facets provide standard J2EE libraries and APIs.

Facet Name Version Info Description
JSF JSF version JavaServer Faces
Struts Struts version Struts; this is required by Beehive NetUI
JSTL JSTL version JSP standard tag library

Related Topics

Web Application Technologies

Applications and Projects


Skip navigation bar   Back to Top