[webbeans-issues] [JBoss JIRA] Reopened: (WBRI-263) Problems using WebBeans in multiple Applications (EARS)

Martin Eigenbrodt (JIRA) jira-events at lists.jboss.org
Tue Jun 9 11:54:56 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Eigenbrodt reopened WBRI-263:
------------------------------------



I'm sorry, but if you can'ts see the "Hello World" you *have* actually reproduced the bug. Please have a look at my code (also contained in the zip), there is not really much that can go wrong and I've just verified it using a clean download of jboss 5.1 (for java 6) and the webbeans preview. It DOES display Hello World as long as it's the only webbeans app within the jboss. Maybe you've used a jboss instance that already contains a webbeans application?

The esential part of the code:
@SessionScoped
@Named
public class BackingBean implements Serializable {
    
    public String getText() {
        return "Hello World!";
    }
}
jsf:
..
            <h:outputText value="#{backingBean.text}"></h:outputText>
  ..

> Problems using WebBeans in multiple Applications (EARS)
> -------------------------------------------------------
>
>                 Key: WBRI-263
>                 URL: https://jira.jboss.org/jira/browse/WBRI-263
>             Project: Web Beans
>          Issue Type: Bug
>    Affects Versions: 1.0.0.PREVIEW1
>         Environment: JBoss 5.0.1.GA,
> TEsted with WebBean 1.0.0.Preview and today snapshot
>            Reporter: Martin Eigenbrodt
>            Assignee: Pete Muir
>             Fix For: 1.0.0.CR1
>
>         Attachments: bug.zip
>
>
> Multiple EARS that use webbeans seem to  interfer.
> I've  prepared a simple testcase. The zip contains an ear "earA.ear" that includes a war with a simple jsf page and a backing bean. 
> The backing beans has got a method that is used within the jsf page:
>     
> public String getText() {
>         return "Hello World!";
>     }
> The second ear "empty.ear" does only contain an empty beans.xml in the  META-INF dir.
> If you deploy just earA.ear you can view the jsf page at http://localhost:8080/EarAWar/index.jsf . It display a Heading "Test" and the line "Hello World" below.
> If you now deploy the earA.ear and the empty.ear and restart, the "Hello World" will be gone.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list