3 Replies Latest reply on Feb 8, 2012 11:07 AM by Jason Porter

    No CreationalContext registered for EL evaluation?

    hantsy bai Master

      I got a exception today in a mater-detail case.

       

      There is edit page, and I want to add some items and save then at the same time.

       

      The item adding has its own page.

       

      I used faces-config.xml to navigate to the master page and got the exception.

       

       

       

      <navigation-rule>
      <from-view-id>/forwarding/forwardingRequestDetailEdit.xhtml</from-view-id>
      <navigation-case>
      <from-action>#{forwardingRequestEdit.saveDetail}</from-action>
      <if>#{true}</if>
      <to-view-id>/forwarding/forwardingRequestEdit.xhtml</to-view-id>
      <redirect>
      <view-param>
      <name>id</name>
      <value>#{forwardingRequestEdit.currentForwardingRequest.id}</value>
      </view-param>
      <view-param>
      <name>cid</name>
      <value>#{conversation.id}</value>
      </view-param>
      </redirect>
      </navigation-case>

       

       

       

       

       

       

       

       

       

       

       

      21:45:56,522 警告    [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http--127.0.0.1-8080-4) No CreationalContext registered for EL evaluation, it is likely that the the expression factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI: java.lang.IllegalStateException: No CreationalContext registered for EL evaluation, it is likely that the the expression factory has not been wrapped by the CDI BeanManager, which must be done to use the ELResolver from CDI
          at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148) [weld-core-1.1.5.Final.jar:2012-01-06 11:59]
          at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123) [weld-core-1.1.5.Final.jar:2012-01-06 11:59]
          at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96) [weld-core-1.1.5.Final.jar:2012-01-06 11:59]
          at org.jboss.as.weld.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:46) [jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
          at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
          at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:67) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.el.parser.AstValue.getValue(AstValue.java:115) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at com.sun.faces.application.ApplicationImpl.evaluateExpressionGet(ApplicationImpl.java:427) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at org.jboss.as.weld.webtier.jsf.ForwardingApplication.evaluateExpressionGet(ForwardingApplication.java:169) [jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
          at javax.faces.application.ApplicationWrapper.evaluateExpressionGet(ApplicationWrapper.java:628) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.jboss.seam.faces.environment.SeamApplicationWrapper$Proxy$_$$_WeldClientProxy.evaluateExpressionGet(SeamApplicationWrapper$Proxy$_$$_WeldClientProxy.java) [seam-faces-3.1.0.CR1.jar:]
          at com.sun.faces.context.UrlBuilder.evaluateExpressions(UrlBuilder.java:316) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.sun.faces.context.UrlBuilder.addParameters(UrlBuilder.java:125) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.sun.faces.context.ExternalContextImpl.encodeRedirectURL(ExternalContextImpl.java:895) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at javax.faces.context.ExternalContextWrapper.encodeRedirectURL(ExternalContextWrapper.java:851) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at javax.faces.context.ExternalContextWrapper.encodeRedirectURL(ExternalContextWrapper.java:851) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.jboss.seam.faces.environment.SeamExternalContext.encodeRedirectURL(SeamExternalContext.java:65) [seam-faces-3.1.0.CR1.jar:]
          at org.jboss.seam.faces.environment.SeamExternalContext$Proxy$_$$_WeldClientProxy.encodeRedirectURL(SeamExternalContext$Proxy$_$$_WeldClientProxy.java) [seam-faces-3.1.0.CR1.jar:]
          at com.sun.faces.application.view.MultiViewHandler.getRedirectURL(MultiViewHandler.java:367) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.ocpsoft.pretty.faces.application.PrettyViewHandler.getRedirectURL(PrettyViewHandler.java:150) [prettyfaces-jsf2-3.3.2.jar:]
          at javax.faces.application.ViewHandlerWrapper.getRedirectURL(ViewHandlerWrapper.java:189) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at javax.faces.application.ViewHandlerWrapper.getRedirectURL(ViewHandlerWrapper.java:189) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.jboss.weld.jsf.ConversationAwareViewHandler.getRedirectURL(ConversationAwareViewHandler.java:131) [weld-core-1.1.5.Final.jar:2012-01-06 11:59]
          at javax.faces.application.ViewHandlerWrapper.getRedirectURL(ViewHandlerWrapper.java:189) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:166) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.ocpsoft.pretty.faces.application.PrettyNavigationHandler.handleNavigation(PrettyNavigationHandler.java:64) [prettyfaces-jsf2-3.3.2.jar:]
          at org.jboss.seam.faces.event.SeamPreNavigationHandler.handleNavigation(SeamPreNavigationHandler.java:63) [seam-faces-3.1.0.CR1.jar:]
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.0.2-b10.jar:2.0.2-FCS]
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.Final.jar:2012-01-06 11:59]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.1.0.CR1.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.1.0.CR1.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126) [prettyfaces-jsf2-3.3.2.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]