0 Replies Latest reply on Aug 18, 2008 7:51 PM by xz uma

    Cannot upgrade to Richfaces 3.2.2 class not found XMLConfigu

    xz uma Newbie

      Hello,

      I am trying to upgrade to Richfaces 3.2.2 and am getting this exception below and would appreciate suggestion as to what went wrong.

      My configuration is below.

      Thank you for your kind insight.

      Cheers,

      Xsu
      --------
      Error Trace: java.lang.NoClassDefFoundError: org/apache/xerces/xni/parser/XMLConfigurationException
      at org.ajax4jsf.webapp.ConfigurableXMLFilter$NekoParserConfig.createParser(ConfigurableXMLFilter.java:145)
      at org.ajax4jsf.webapp.ParserConfig.getParser(ParserConfig.java:32)
      at org.ajax4jsf.webapp.ConfigurableXMLFilter.getParser(ConfigurableXMLFilter.java:113)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:237)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
      at org.ajax4jsf.Filter.doFilter(Filter.java:175)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at ru.scriptum.view.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:44)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at ru.scriptum.view.util.SecurityFilter.doFilter(SecurityFilter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:613)
      ------------
      web.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      Scriptum application
      <display-name>Scriptum Application</display-name>
      <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
      </context-param>
      <context-param>
      <param-name>com.sun.faces.disableVersionTracking</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
      <param-value>true</param-value>
      </context-param>
      <!-- JavaServer Faces -->
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>
      /WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml
      </param-value>
      </context-param>
      <context-param>
      <param-name>
      org.apache.myfaces.CHECK_EXTENSIONS_FILTER
      </param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>com.sun.faces.validateXml</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>
      /WEB-INF/contexts/applicationContext.xml
      /WEB-INF/contexts/db4oServerContext.xml
      /WEB-INF/contexts/db4oClientContext.xml
      /WEB-INF/contexts/daoContext.xml
      /WEB-INF/templates/applicationTemplates.xml
      </param-value>
      </context-param>
      <context-param>
      <param-name>facelets.LIBRARIES</param-name>
      <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
      </context-param>
      <context-param>
      <param-name>webAppRootKey</param-name>
      <param-value>webapp.root</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
      </context-param>

      <filter-name>SecurityFilter</filter-name>
      <filter-class>
      ru.scriptum.view.util.SecurityFilter
      </filter-class>


      <filter-name>SetCharacterEncoding</filter-name>
      <filter-class>
      ru.scriptum.view.util.SetCharacterEncodingFilter
      </filter-class>
      <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
      </init-param>

      <!-- TOMAHAWK -->

      <filter-name>MyFacesExtensionsFilter</filter-name>
      <filter-class>
      org.apache.myfaces.webapp.filter.ExtensionsFilter
      </filter-class>
      <init-param>
      <param-name>uploadMaxFileSize</param-name>
      <param-value>5000000m</param-value>
      </init-param>
      <init-param>
      <param-name>uploadThresholdSize</param-name>
      <param-value>0m</param-value>
      </init-param>
      <init-param>
      <param-name>uploadRepositoryPath</param-name>
      <param-value>/temp</param-value>
      </init-param>


      <display-name>Ajax4jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>SecurityFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>SetCharacterEncoding</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>
      <!-- extension mapping for adding , , and other resource tags to JSF-pages -->
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
      <servlet-name>Faces Servlet</servlet-name>
      </filter-mapping>

      <context-param>
      <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
      <param-value>NEKO, TIDY</param-value>
      </context-param>

      <context-param>
      <param-name>org.richfaces.LoadStyleStrategy</param-name>
      <param-value>DEFAULT</param-value>
      </context-param>
      <context-param>
      <param-name>org.richfaces.LoadScriptStrategy</param-name>
      <param-value>DEFAULT</param-value>
      </context-param>


      <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>
      <!--
      - Loads the root application context of this web app at startup,
      - by default from "/WEB-INF/applicationContext.xml".
      - Use WebApplicationContextUtils.getWebApplicationContext(servletContext)
      - to access it anywhere in the web application, outside of the framework.
      -
      - The root context is the parent of all servlet-specific contexts.
      - This means that its beans are automatically available in these child contexts,
      - both for getBean(name) calls and (external) bean references.

      - If your web container loads listeners first then this will work fine. Otherwise,
      use the SpringContextServlet to load the context.

      listener>
      <listener-class>
      org.springframework.web.context.ContextLoaderListener
      </listener-class>
      </listener -->

      <listener-class>
      org.apache.myfaces.webapp.StartupServletContextListener
      </listener-class>


      <listener-class>
      ru.scriptum.spring.session.ConfigurationListener
      </listener-class>


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

      <!-- simpleCAPTCHA servlet -->

      <servlet-name>Captcha</servlet-name>
      <!-- display-name>Captcha</display-name -->
      <servlet-class>nl.captcha.servlet.CaptchaServlet</servlet-class>


      <servlet-name>CssServlet</servlet-name>
      <!-- display-name>CssServlet</display-name -->
      <servlet-class>ru.scriptum.servlet.CssServlet</servlet-class>

      <!-- Faces Servlet Mapping -->
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <!-- simpleCAPTCHA mapping -->
      <servlet-mapping>
      <servlet-name>Captcha</servlet-name>
      <url-pattern>/Captcha.jpg</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>CssServlet</servlet-name>
      <url-pattern>/CssServlet</url-pattern>
      </servlet-mapping>
      <login-config>
      <auth-method>BASIC</auth-method>
      </login-config>
      <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>blueSky</param-value>
      </context-param>
      </web-app>
      ----------
      lib:
      commons-beanutils-1.7.0.jar
      commons-chain-1.0.jar
      commons-codec-1.3.jar
      commons-collections-3.2.jar
      commons-digester-1.8.jar
      commons-discovery-0.4.jar
      commons-el-1.0.jar
      commons-fileupload-1.2.jar
      commons-fileupload-1.2-javadoc.jar
      commons-fileupload-1.2-sources.jar
      commons-io-1.3.2.jar
      commons-lang-2.1.jar
      commons-logging-1.1.1.jar
      commons-pool-1.1.jar
      db4o-5.5-java5.jar
      db4o-5.5-nqopt.jar
      dom4j-1.4.jar
      el-api-w-src.jar
      el-ri-w-src.jar
      javaActivation.jar
      javaMail1.4.1.jar
      jsf-facelets.jar
      jsf-facelets-src-1.1.2.zip
      jstl-1.1.0.jar
      log4j.jar
      myfaces-api-1.2.3.jar
      myfaces-impl-1.2.3.jar
      nekohtml-0.9.5.jar
      oscache-2.3.jar
      richfaces-api-3.2.2-SNAPSHOT.jar
      richfaces-impl-3.2.2-SNAPSHOT.jar
      richfaces-impl-3.2.2-SNAPSHOT-sources.jar
      richfaces-ui-3.2.2-SNAPSHOT.jar
      servlet.jar
      simplecaptcha.jar
      spring.jar
      spring-db4o.jar
      spring-src.zip
      standard.jar
      tomahawk-1.1.6.jar
      --------
      tomcat 5.5.9
      jdk 1.6...