1 Reply Latest reply on Nov 22, 2010 2:15 AM by kitto pang

    Jsf2 + Richfaces4, Tag not fould

    kitto pang Newbie

      I use jsf2.0 and richfaces4.03 at my project, and the ide is eclipse + jboostool 3.2.

       

      Here is my my web.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" xmlns="
      http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="
      http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
      http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <display-name>x</display-name>

      <context-param>
        <param-name>org.richfaces.skin</param-name>
        <param-value>blueSky</param-value>
      </context-param>

      <context-param>
        <param-name>org.richfaces.CONTROL_SKINNING</param-name>
        <param-value>enble</param-value>
      </context-param>

      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>

      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>

      </web-app>

       

      and the faces-config.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <faces-config
          xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
      version="2.0">

      <navigation-rule>
        <from-view-id>/pages/inputname.xhtml</from-view-id>
        <navigation-case>
         <from-outcome>greeting</from-outcome>
         <to-view-id>/pages/greeting.xhtml</to-view-id>
        </navigation-case>
      </navigation-rule>

          <application>
              <resource-bundle>
                  <base-name>resources</base-name>
                  <var>msgs</var>
              </resource-bundle>
          </application>
      </faces-config>

       

      Jar in lib folder:

       

      commons-beanutils-core-1.7.0.jar

      commons-digester-1.8.jar

      commons-collections-3.2.jar

      commons-logging-1.0.4.jar

      richfaces-core-api-4.0.0.20101004-M3.jar

      richfaces-core-impl-4.0.0.20101004-M3.jar

      richfaces-components-api-4.0.0.20101004-M3.jar

      richfaces-components-ui-4.0.0.20101004-M3.jar

       

      and the server is :

      jboss-6.0.0.20100911-M5

       

      and the x.xhtml page:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets">

      <h:head></h:head>
      <body>
          <rich:panel>
              <f:facet name="header">
              Write your own custom rich components with built-in AJAX support
              </f:facet>
        <h:outputText value="Panel Body" />
      </rich:panel>
      <rich:comboBox>

      </rich:comboBox>
      </body>
      </html>

       

      If i remove the tags

           <rich:comboBox>

           </rich:comboBox>

      it can run well.

       

      This is the messages at Console:

       

      14:54:01,781 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/x].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.TagException: /x.xhtml @17,17 <rich:comboBox> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: comboBox
      at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:285) [:2.0.2-FCS]
      at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:225) [:2.0.2-FCS]
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100911-M5]
      at javax.xml.parsers.SAXParser.parse(Unknown Source) [:1.6.0_21]
      at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:385) [:2.0.2-FCS]
      at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:361) [:2.0.2-FCS]
      at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:117) [:2.0.2-FCS]
      at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:331) [:2.0.2-FCS]
      at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:215) [:2.0.2-FCS]
      at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:156) [:2.0.2-FCS]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:713) [:2.0.2-FCS]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) [:2.0.2-FCS]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [:2.0.2-FCS]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [:2.0.2-FCS]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [:2.0.2-FCS]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.20100911-M5]
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.20100911-M5]
      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.20100911-M5]
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20100911-M5]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20100911-M5]
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20100911-M5]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20100911-M5]
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20100911-M5]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20100911-M5]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20100911-M5]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20100911-M5]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100911-M5]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_21]

       

       

      What's the problem?