5 Replies Latest reply on Jan 14, 2009 8:17 AM by Jesper Tejlgaard

    ClassNotFoundException on postback

    Luc Feys Newbie

      Hello,


      I am using Seam 1.2.1 and facelets 1.1.14 on JBoss 4.0.5. I have created a custom facelets function to retrieve a value from a cms system. The function works fine, except on postback of the form.
      As soon as I perform a postback on a page (that renders perfectly when called directly), I get the exception below.


      I am not quite sure whether this is a 'seam' problem, a 'facelets' problem or an 'el' problem, but maybe someone had similar problems or can point me in the right direction.


      Thanks in advance.


      Regards,


      Luc




      SEVERE: Error Rendering View[/app/home.xhtml]
      javax.faces.FacesException: Could not get property value of component searchform:find
              at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:389)
              at javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:232)
              at org.apache.myfaces.shared_impl.renderkit.html.HtmlButtonRendererBase.getValue(HtmlButtonRendererBase.java:256)
              at org.apache.myfaces.shared_impl.renderkit.html.HtmlButtonRendererBase.encodeEnd(HtmlButtonRendererBase.java:111)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
              at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
              at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419)
              at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:75)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
              at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:579)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
              at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
              at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
      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(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:384)
              ... 46 more
      Caused by: javax.faces.el.EvaluationException: /app/search/search.xhtml @74,65 value="#{nux:fieldValueLoc(searchCommon, 'searchform-common:f
      ind-button', locale)}": Function 'nux:fieldValueLoc' not found
              at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
              at javax.faces.component.UICommand.getValue(UICommand.java:170)
              ... 51 more
      15:04:12,250 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: be.belgacom.my1x07.front.web.facelets.NuxeoJsfFunct
      ions
      15:04:12,250 ERROR [STDERR]     at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      15:04:12,250 ERROR [STDERR]     at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
      15:04:12,250 ERROR [STDERR]     at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
      15:04:12,250 ERROR [STDERR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      15:04:12,250 ERROR [STDERR]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      15:04:12,250 ERROR [STDERR]     at java.lang.Class.forName0(Native Method)
      15:04:12,250 ERROR [STDERR]     at java.lang.Class.forName(Class.java:164)
      15:04:12,250 ERROR [STDERR]     at com.sun.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:167)
      15:04:12,250 ERROR [STDERR]     at com.sun.el.lang.FunctionMapperImpl.resolveFunction(FunctionMapperImpl.java:59)
      15:04:12,250 ERROR [STDERR]     at com.sun.el.parser.AstFunction.getValue(AstFunction.java:91)
      15:04:12,250 ERROR [STDERR]     at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
      15:04:12,250 ERROR [STDERR]     at javax.faces.component.html._ComponentUtils.getStringValue(_ComponentUtils.java:33)
      15:04:12,250 ERROR [STDERR]     at javax.faces.component.html.HtmlCommandButton.getAlt(HtmlCommandButton.java:93)
      15:04:12,250 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      15:04:12,250 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      15:04:12,250 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:04:12,250 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeAttributes(DevTools.java:240)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeStart(DevTools.java:284)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:189)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:107)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:677)
      15:04:12,250 ERROR [STDERR]     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:645)
      15:04:12,250 ERROR [STDERR]     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      15:04:12,250 ERROR [STDERR]     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      15:04:12,250 ERROR [STDERR]     at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:04:12,250 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      15:04:12,250 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      15:04:12,250 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      15:04:12,250 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      15:04:12,250 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      15:04:12,265 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      15:04:12,265 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      15:04:12,265 ERROR [STDERR]     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.
      java:664)
      15:04:12,265 ERROR [STDERR]     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      15:04:12,265 ERROR [STDERR]     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      15:04:12,265 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
      15:04:12,265 ERROR [STDERR]