3 Replies Latest reply on Nov 1, 2006 3:24 PM by Gavin King

    Problem running examples: javax.faces.el.EvaluationException

    guava Newbie

      Hi,

      I'm trying seam 1.0.1 GA on JBossAS 4.0.4GA with ejb3 profile. Almost all the seam example that I tried throw exception like the following. Any help will be great.

      javax.servlet.ServletException: /register.xhtml @67,80 value="#{register.verify}": $Proxy220
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
      org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      javax.faces.el.EvaluationException: /register.xhtml @67,80 value="#{register.verify}": $Proxy220
      com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
      javax.faces.component.UIOutput.getValue(UIOutput.java:75)
      javax.faces.component.UIInput.validate(UIInput.java:273)
      javax.faces.component.UIInput.processValidators(UIInput.java:144)
      javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
      javax.faces.component.UIForm.processValidators(UIForm.java:68)
      javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
      javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:142)
      org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
      org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

        • 1. Re: Problem running examples: javax.faces.el.EvaluationExcep
          Gavin King Master

          How did you install JBoss? Did you follow the getting started guide *exactly*?

          • 2. Re: Problem running examples: javax.faces.el.EvaluationExcep
            guava Newbie

            Yes. I followed the instruction 'exactly' (I hope).

            Here is the full stac trace: look for the 'NoSuchMethodException'.

            Thanks.

            10:59:35,179 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
            threw exception
            javax.faces.el.EvaluationException: /register.xhtml @67,80 value="#{register.ver
            ify}": $Proxy118
            at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.ja
            va:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
            at javax.faces.component.UIInput.validate(UIInput.java:273)
            at javax.faces.component.UIInput.processValidators(UIInput.java:144)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBa
            se.java:417)
            at javax.faces.component.UIForm.processValidators(UIForm.java:68)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBa
            se.java:417)
            at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:14
            2)
            at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(Lifecyc
            leImpl.java:240)
            at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
            :76)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:173)
            at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter
            .java:30)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
            lter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:178)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
            yAssociationValve.java:175)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
            e.java:74)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
            rocessConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
            int.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
            kerThread.java:112)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: javax.faces.el.EvaluationException: Bean: $Proxy118, property: verify

            at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolv
            erImpl.java:404)
            at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverI
            mpl.java:71)
            at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyE
            LContext.java:141)
            at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
            at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)

            at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.ja
            va:71)
            at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.ja
            va:56)
            ... 31 more
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolv
            erImpl.java:400)
            ... 37 more
            Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoSuchM
            ethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
            at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.ja
            va:69)
            at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
            at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java
            :197)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt
            erceptor.java:76)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulIn
            stanceInterceptor.java:81)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
            ationInterceptor.java:78)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
            ptor.java:47)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono
            usInterceptor.java:106)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContain
            er.java:199)
            at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.
            java:98)
            at $Proxy118.getVerify(Unknown Source)
            ... 42 more
            Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.interc
            eptor.InvocationContext.getTarget()Ljava/lang/Object;
            at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo
            ntextImpl.java:128)
            at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Int
            erceptorsInterceptor.java:63)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationIntercepto
            r.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invok
            e(TransactionScopedEntityManagerInterceptor.java:54)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsI
            nterceptor.java:47)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
            ... 57 more
            Caused by: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getT
            arget()Ljava/lang/Object;
            at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:
            37)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo
            ntextImpl.java:118)
            ... 66 more

            • 3. Re: Problem running examples: javax.faces.el.EvaluationExcep
              Gavin King Master

              You have *not* followed the instructions. You have not used the JEMS installer to install JBoss. Go back to the start of the Getting Started guide.