Weld on JBoss 6 M5
alexanderbell Oct 8, 2010 1:34 AMHi,
unfortunately Weld doesn't work on JBoss 6 M5 properly.
I wanna deploy a simple ear file with a war file which contains one simple Bean annotated with @Model. On a example xhtml page I wann access the bean via EL.
When I click the button I get the following exception:
07:26:38,768 WARNUNG [javax.enterprise.resource.webcontainer.jsf.lifecycle] /home.xhtml @12,60 value="#{scriptBean.script}": Target Unreachable, identifier 'scriptBean' resolved to null: javax.el.PropertyNotFoundException: /home.xhtml @12,60 value="#{scriptBean.script}": Target Unreachable, identifier 'scriptBean' resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:93) [:2.0.2-FCS]
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95) [:2.0.2-FCS]
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1008) [:2.0.2-FCS]
at javax.faces.component.UIInput.validate(UIInput.java:934) [:2.0.2-FCS]
at javax.faces.component.UIInput.executeValidate(UIInput.java:1189) [:2.0.2-FCS]
at javax.faces.component.UIInput.processValidators(UIInput.java:691) [:2.0.2-FCS]
at javax.faces.component.UIForm.processValidators(UIForm.java:243) [:2.0.2-FCS]
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1080) [:2.0.2-FCS]
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1180) [:2.0.2-FCS]The war-file contains a beans.xml in WEB-INF directory.
On JBoss 6 M4 the example works.
Any ideas?
Bean
@Model
public class ScriptBean {
...
}xhtml page
...
<ui:composition template="/template.xhtml">
<ui:define name="content">
<h1>Enter Script</h1>
<h:form id="script">
<h:inputTextarea value="#{scriptBean.script}"/>
<h:commandButton action="#{scriptBean.exec}" />
</h:form>
</ui:define>
</ui:composition>
...Alex