[weld-issues] [JBoss JIRA] Updated: (WELD-725) weld-translator example fails with "identifier 'translator' resolved to null"

Alexandre GASNE (JIRA) jira-events at lists.jboss.org
Wed Oct 13 05:58:39 EDT 2010


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

Alexandre GASNE updated WELD-725:
---------------------------------

    Description: 
When trying to access separate business logic from a web page, weld can't resolve the managed bean ( beans.xml is present in both war/WEB-INF and jar/META-INF)

I'm using Weld-Translator example to test business logic integration (ejb). Deployment seems fine, but I get an error with this "out-of-the-box" example.
[ Note that I'm getting the same issue with an application (packaged in EAR with a web module and ejb modules) working fine on JBOSS6 M3 but failing with exactly the same error in lastest jboss nighltly ]


With Weld-Translator example, you get this error page :

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)

root cause

javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97)
	com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91)
	javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023)
	javax.faces.component.UIInput.validate(UIInput.java:953)
	javax.faces.component.UIInput.executeValidate(UIInput.java:1204)
	javax.faces.component.UIInput.processValidators(UIInput.java:693)
	javax.faces.component.UIForm.processValidators(UIForm.java:240)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081)
	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159)
	com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)




Jboss StackTrace :

11:36:47,250 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

11:36:47,251 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/weld-translator].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]



  was:
When trying to access separate business logic from a web page, weld can't resolve the managed bean ( beans.xml is present in both war/WEB-INF and jar/META-INF)

I'm using Weld-Translator example to test business logic integration (ejb). Deployment seems fine, but I get this error with the "out-of-the-box" example :
Same issue with an application (packaged in EAR with a web module and ejb modules) working fine on JBOSS6 M3 but failing with exactly the same error in lastest jboss nighltly.


With Weld-Translator example, you get this error page :

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)

root cause

javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97)
	com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91)
	javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023)
	javax.faces.component.UIInput.validate(UIInput.java:953)
	javax.faces.component.UIInput.executeValidate(UIInput.java:1204)
	javax.faces.component.UIInput.processValidators(UIInput.java:693)
	javax.faces.component.UIForm.processValidators(UIForm.java:240)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081)
	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159)
	com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)




Jboss StackTrace :

11:36:47,250 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

11:36:47,251 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/weld-translator].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]





> weld-translator example fails with "identifier 'translator' resolved to null"
> -----------------------------------------------------------------------------
>
>                 Key: WELD-725
>                 URL: https://jira.jboss.org/browse/WELD-725
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.1.0.Beta1
>         Environment: Jboss AS, with lastest nightly ( '#1973 	Oct 8, 2010 3:38:22 PM' from hudson)
> Weld Example package (stable and nightly from hudson : Last successful build (#74), 2 mo 9 days ago)
>            Reporter: Alexandre GASNE
>            Priority: Critical
>
> When trying to access separate business logic from a web page, weld can't resolve the managed bean ( beans.xml is present in both war/WEB-INF and jar/META-INF)
> I'm using Weld-Translator example to test business logic integration (ejb). Deployment seems fine, but I get an error with this "out-of-the-box" example.
> [ Note that I'm getting the same issue with an application (packaged in EAR with a web module and ejb modules) working fine on JBOSS6 M3 but failing with exactly the same error in lastest jboss nighltly ]
> With Weld-Translator example, you get this error page :
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error () that prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
> 	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
> 	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
> root cause
> javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
> 	com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97)
> 	com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91)
> 	javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023)
> 	javax.faces.component.UIInput.validate(UIInput.java:953)
> 	javax.faces.component.UIInput.executeValidate(UIInput.java:1204)
> 	javax.faces.component.UIInput.processValidators(UIInput.java:693)
> 	javax.faces.component.UIForm.processValidators(UIForm.java:240)
> 	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081)
> 	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159)
> 	com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72)
> 	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
> 	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
> 	org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
> 	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
> Jboss StackTrace :
> 11:36:47,250 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
> 	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
> 	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
> 	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
> 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
> 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
> 	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
> 	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
> 11:36:47,251 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/weld-translator].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.el.PropertyNotFoundException: /home.xhtml @24,110 value="#{translator.text}": Target Unreachable, identifier 'translator' resolved to null
> 	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:91) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.validate(UIInput.java:953) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.executeValidate(UIInput.java:1204) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:693) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIForm.processValidators(UIForm.java:240) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1081) [:2.0.3-SNAPSHOT]
> 	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1159) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:72) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-SNAPSHOT]
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-SNAPSHOT]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
> 	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
> 	at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
> 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
> 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
> 	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
> 	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

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

        


More information about the weld-issues mailing list