WELD-001477 error after update to JBoss EAP 7.2 CP1 or JBoss EAP 7.2 CP2

Solution Unverified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2.1
    • 7.2.2

Issue

  • After an update to JBoss EAP 7.2 CP1/CP2 a CDI deployment fail with WELD-001477 if a @Transactionalannotation is being used in a deployment

Resolution

A fix for the issue is scheduled to be available with JBoss EAP 7.2 CP3.

Root Cause

This is a bug. The related issue is Content from issues.jboss.org is not included.JBTM-3044 where JNDIBean was introduced and is programatically added as a bean representation of TransactionManager.

TransactionManager is then injected into the Content from github.com is not included.interceptor base class, which makes up for the Exception that can be seen.

The CDI 2.0 spec covers that Content from docs.jboss.org is not included.here

Diagnostic Steps

Start the server with an application that contain a bean similar to the bean below and observe the error in the log file.

import java.io.Serializable;

import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import javax.transaction.Transactional;

@ViewScoped
@Named
public class InventoryRequestView implements Serializable {

    @Transactional
    public void onPageLoad() {    
    }
Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.