Skip to content

Bug Report: Servlet container initializers do not see annotated classes from lib/warlibs jars (PrimeFaces 16 JSF1068) #8491

Open

Description

@lprimak

Brief Summary

Servlet container initializers (e.g. Mojarra's FacesInitializer) do not receive annotated classes from jars in lib/warlibs, so with PrimeFaces 16 in warlibs, @FacesComponent classes are never registered.

Expected Outcome

Classes in warlib jars matching a ServletContainerInitializer's @HandlesTypes are passed to it, as for classes in WEB-INF/lib. PrimeFaces components render normally.

Current Outcome

Rendering a page using p:inputText fails:

JSF1068: Cannot instantiate component with component-type org.primefaces.component.InputText
jakarta.faces.FacesException: Expression Error: Named Object: org.primefaces.component.InputText not found.

Cause: warlibs are scanned once and their types cached in DeploymentUtils.getWarLibraryCache(), and cached jars are excluded from later scans (getWarLibraryURIs()). ServletContainerInitializerUtil.getInitializerList builds the @HandlesTypes input only from the deployment's Types, never from that cache. Only Weld (WeldUtils) reads it.

Reproducer

  1. Put PrimeFaces 16 in lib/warlibs.
  2. Deploy a Faces app that uses p:inputText with warlibs enabled.
  3. Open the page.

Operating System

macOS

JDK Version

OpenJDK 27

Payara Distribution

Payara Server Full Profile (7.2026.10)

Activity

  1. added
    Status: OpenIssue has been triaged by the front-line engineers and is being worked on verification
    on Oct 9, 2026
  2. changed the title [-]Servlet container initializers do not see annotated classes from lib/warlibs jars (e.g. PrimeFaces 16 JSF1068)[/-] [+]Bug Report: Servlet container initializers do not see annotated classes from lib/warlibs jars (PrimeFaces 16 JSF1068)[/+] on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: OpenIssue has been triaged by the front-line engineers and is being worked on verification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions