IBM Support

Import project gives "javax.faces cannot be resolved" error

Troubleshooting


Problem

After you import a project into IBM® Rational® Application Developer (RAD), the import javax.faces... statements display javax.faces... cannot be resolved errors.

Symptom

The following steps reproduce the problem:
  1. Import a portlet project into RAD
  2. Open the project's Java Resources > src > pagecode > PageCodeBase.java file
  3. Expand the statement:
    import java.io.InputStream;
Expected Result: No errors appear in the code.
Actual Result: The error message The import javax.faces cannot be resolved appears when you hover on the following lines of code:
import javax.faces.component.NamingContainer;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIViewRoot ;
import javax.faces.context.FacesContext;

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"ARM Category":[{"code":"a8m0z0000004D7dAAE","label":"Rational Application Developer-\u003EPortal Tools"}],"ARM Case Number":"TS006162417","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
15 July 2021

UID

ibm16472831