0 Replies Latest reply on Nov 20, 2005 7:08 PM by Andrew Iggleden

    java.lang.NoClassDefFoundError: javax/faces/component/UIData

    Andrew Iggleden Newbie

      hi,

      i've followed the wiki for faces install and get the following error. I've obviously missed something but I cannot work out what it is.

      I have also confirmed that the war file has the jsf libraries in.

      Any suggestions will be appreciated.

      Thanks
      Andrew


      00:03:15,812 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/component/UIData
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:386)
      at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1009)
      at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
      at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
      at com.sun.faces.taglib.html_basic.DataTableTag.doStartTag(DataTableTag.java:473)
      at org.apache.jsp.storelist_jsp._jspx_meth_h_dataTable_0(org.apache.jsp.storelist_jsp:452)
      at org.apache.jsp.storelist_jsp._jspx_meth_h_form_0(org.apache.jsp.storelist_jsp:420)
      at org.apache.jsp.storelist_jsp._jspx_meth_f_view_0(org.apache.jsp.storelist_jsp:193)
      at org.apache.jsp.storelist_jsp._jspService(org.apache.jsp.storelist_jsp:98)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
      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:81)
      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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      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:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      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(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: javax/faces/component/UIData
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.getDeclaredMethods(Unknown Source)
      at java.beans.Introspector$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
      at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
      at java.beans.Introspector.getBeanInfo(Unknown Source)
      at java.beans.Introspector.getBeanInfo(Unknown Source)
      at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:435)
      at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:398)
      at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:104)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
      ... 52 more
      00:03:15,828 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/component/UIData
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:386)
      at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1009)
      at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
      at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
      at com.sun.faces.taglib.html_basic.DataTableTag.doStartTag(DataTableTag.java:473)
      at org.apache.jsp.storelist_jsp._jspx_meth_h_dataTable_0(org.apache.jsp.storelist_jsp:452)
      at org.apache.jsp.storelist_jsp._jspx_meth_h_form_0(org.apache.jsp.storelist_jsp:420)
      at org.apache.jsp.storelist_jsp._jspx_meth_f_view_0(org.apache.jsp.storelist_jsp:193)
      at org.apache.jsp.storelist_jsp._jspService(org.apache.jsp.storelist_jsp:98)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
      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:81)
      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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      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:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      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(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: javax/faces/component/UIData
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.getDeclaredMethods(Unknown Source)
      at java.beans.Introspector$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
      at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
      at java.beans.Introspector.getBeanInfo(Unknown Source)
      at java.beans.Introspector.getBeanInfo(Unknown Source)
      at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:435)
      at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:398)
      at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:104)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
      ... 52 more

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="t"%>
      
       <f:view locale="#{facesContext.externalContext.request.locale}">
       <f:loadBundle basename="messages" var="msgs" />
      
       <HTML>
       <HEAD>
       <LINK REL="STYLESHEET" HREF="./css/styles.css" TYPE="text/css">
       <Title><h:outputText value="#{msgs.storelistTitle}" /></Title>
       </HEAD>
       <BODY>
       <%@ include file="head.jsp"%>
       <P></P>
       <TABLE BORDER="5" ALIGN="CENTER">
       <TR>
       <TH CLASS="TITLE"><h:outputText value="#{msgs.storemaintTitle}" /></TH>
       </TR>
       </TABLE>
       <h:messages globalOnly="true" />
      
       <h:form>
       <P>
       <h:dataTable id="table" binding="#{StoreRepeaterBean.data}"
       rows="10" value="#{StoreRepeaterBean.stores}" var="store">
      
      <!-- <f:facet name="header">-->
      <!-- <h:outputText value="Store List" />-->
      <!-- </f:facet>-->
      
       <h:column>
       <f:facet name="header">
       <h:outputText value="Store Code" />
       </f:facet>
       <h:outputText id="code" binding="#{StoreRepeaterBean.StoreCode}" />
       </h:column>
       <h:column>
       <f:facet name="header">
       <h:outputText value="#{msgs.promptActions" />
       </f:facet>
       <h:commandButton id="press" action="#{StoreRepeaterBean.press}"
       immediate="true" value="#{msgs.promptEdit}" type="SUBMIT" />
       </h:column>
       </h:dataTable>
      
      
      
       <h:commandButton id="create" action="#{StoreRepeaterBean.create}"
       immediate="false" value="#{msgs.promptCreate}" type="SUBMIT" />
      
       </h:form>
       <P><%@ include file="foot.jsp"%></P>
       </BODY>
       </HTML>
      </f:view>