Bug 1056009

Summary: Weld regression, EAR/lib/foo.jar @Named bean no longer visible via EL in EAR/bar.war
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Marek Schmidt <maschmid>
Component: CDI/WeldAssignee: Jozef Hartinger <jharting>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Schmidt <maschmid>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.1CC: cdewolf, kkhan, myarboro, pmuir
Target Milestone: DR0Keywords: Regression
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1057134 (view as bug list) Environment:
Last Closed: 2014-06-28 15:30:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1057134    
Attachments:
Description Flags
reproducer none

Description Marek Schmidt 2014-01-21 11:28:32 UTC
Created attachment 853167 [details]
reproducer

Description of problem:

EAR/lib/foo.jar and EAR/bar.war

foo.jar:

import javax.inject.Named;

@Named("echo")
public class CommonEcho {
    public String getText() {
        return "CommonEcho";
    }
}

and a page in bar.war:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>
    <h:outputText value="#{echo.text}" />
</h:body>
</html>

no longer works in Weld 1.1.17.Final


Version-Release number of selected component (if applicable):
found on eap6.2.0.CP1.CR1 preview bits, weld-core-1.1.17.Final-redhat-1

How reproducible:
always

Steps to Reproduce:
1. deploy the attached EAR
2. go to http://127.0.0.1:8080/webapp-s2/index.jsf
3. page will be empty, while "CommonEcho" should be visible

Actual results:
page will be empty

Expected results:
"CommonEcho" should be visible

Additional info:

this issue seems to be related to the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1052277

Comment 2 JBoss JIRA Server 2014-01-29 14:58:00 UTC
Jozef Hartinger <jharting> updated the status of jira WELD-1589 to Resolved

Comment 3 Marek Schmidt 2014-02-21 09:08:53 UTC
verified on EAP 6.3.0.DR0