Skip to content

"WELD-001414: Bean name is ambiguous" when there is just one bean with that name #33940

@mthmulders

Description

@mthmulders

Describe the bug
My Jakarta EE 10 application fails to start in OpenLiberty 26.0.0.1 with "WELD-001414: Bean name is ambiguous" when there is just one bean with that name.

Steps to Reproduce
Deploy the example app to a clean OpenLiberty server. Alternatively, run mvn liberty:dev -pl :runtime -am in the project.

Expected behavior
The application starts correctly

Diagnostic information:

  • OpenLiberty Version: 26.0.0.1
  • Affected feature(s): not sure.
  • Java Version:
    openjdk version "25.0.1" 2025-10-21 LTS
    OpenJDK Runtime Environment Temurin-25.0.1+8 (build 25.0.1+8-LTS)
    OpenJDK 64-Bit Server VM Temurin-25.0.1+8 (build 25.0.1+8-LTS, mixed mode, sharing)
    
  • server.xml configuration:
    <?xml version="1.0" encoding="UTF-8"?>
    <server description="server">
        <featureManager>
            <platform>jakartaee-10.0</platform>
    
            <!-- Features managed by the Jakarta EE platform -->
            <feature>cdi</feature>
            <feature>jsonb</feature>
            <feature>pages</feature>
            <feature>restfulWS</feature>
            <feature>servlet</feature>
            <feature>validation</feature>
        </featureManager>
    
        <application location="openliberty-mvc-ear.ear" name="openliberty-mvc-ear" />
    
        <logging traceSpecification="*=audit:org.jboss.weld.context.*=finest"
                 isoDateFormat="true" />
    
        <applicationMonitor dropinsEnabled="false" />
        <webContainer deferServletLoad="false" />
        <cdi enableImplicitBeanArchives="false" />
    </server>
  • If it would be useful, upload the messages.log file found in $WLP_OUTPUT_DIR/messages.log

Additional context
Add any other context about the problem here.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions