0 Replies Latest reply on May 23, 2007 12:35 PM by Kevin Gutch

    MyFaces configurator problem

    Kevin Gutch Newbie

      Hi I have 2 webb-apps. Both of them have identical setups (except for some navigation and content differences). One works fine but the other fails to start correctly.
      The conflict seems to come from MyFaces.

      Both are using:


      ajax4jsf-1.1.1
      richfaces-3.0.1
      myfaces-api-1.1.4
      tomahawk-1.1.5



      The app that works correctly loads the following. Taken from the tomcat logs.


      May 22, 2007 5:43:59 PM com.sun.faces.config.rules.ComponentRule end


      The other seems to load MyFaces configurator.

      May 22, 2007 5:36:25 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations




      The lib directories are identical. can anyone tell me why MyFaces is getting picked up?




      My Web.xml is listed below


      <?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">
       <description>Web Application</description>
       <display-name>Web Application</display-name>
       <context-param>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value>
       /WEB-INF/faces_config_ex.xml,/WEB-INF/faces_config_app.xml,/WEB-INF/faces_config_universal.xml
       </param-value>
       </context-param>
       <context-param>
       <param-name>facelets.SKIP_COMMENTS</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
       <param-value>com.sun.facelets.FaceletViewHandler</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.REFRESH_PERIOD</param-name>
       <param-value>2</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>false</param-value>
       </context-param>
       <!--setting to server over client is supposed to increase performance-->
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.validateXml</param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.LIBRARIES</param-name>
       <param-value>
       /WEB-INF/tomahawk.taglib.xml;/WEB-INF/protech.taglib.xml;/WEB-INF/sandbox.taglib.xml
       </param-value>
       </context-param>
       <context-param>
       <param-name>org.ajax4jsf.SKIN</param-name>
       <param-value>#{infoBean.skin}</param-value>
       </context-param>
       <!--OTHER PERFORMANCE SETTINGS-->
       <context-param>
       <param-name>
       org.apache.myfaces.COMPRESS_STATE_IN_SESSION
       </param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>
       org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
       </param-name>
       <param-value>false</param-value>
       </context-param>
       <context-param>
       <param-name>
       org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
       </param-name>
       <param-value>20</param-value>
       </context-param>
       <!--END PERFORMANCE SETTINGS
       SETTINGS-->
      <!--
       BEGIN Ajax4jsf Filter SETTINGS-->
      <filter>
       <display-name>Ajax4jsf Filter</display-name>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       <init-param>
       <param-name>forceparser</param-name>
       <param-value>false</param-value>
       </init-param>
      
       </filter>
       <filter>
       <filter-name>MyFacesExtensionsFilter</filter-name>
       <filter-class>
       org.apache.myfaces.webapp.filter.ExtensionsFilter
       </filter-class>
       <init-param>
       <param-name>maxFileSize</param-name>
       <param-value>20m</param-value>
       </init-param>
       </filter>
      <!--END MyFacesExtensionsFilter SETTINGS
       -->
      
      
       <!--
       <filter>
      
       <display-name>org.ajax4jsf.FastFilter</display-name>
      
       <filter-name>ajax4jsf</filter-name>
      
       <filter-class>org.ajax4jsf.FastFilter</filter-class>
      
       </filter> -->
      
       <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>
       <!-- 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>
       <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
       <filter-mapping>
       <filter-name>MyFacesExtensionsFilter</filter-name>
       <url-pattern>*.htm</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
       <!--END Ajax4jsf Filter SETTINGS
       extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
      
       <filter>
       <filter-name>Compress</filter-name>
       <filter-class>com.jspbook.GZIPFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.bmp</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.jsp</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.xhtml</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.js</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.do</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.gif</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.png</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.css</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.swf</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.pdf</url-pattern>
       </filter-mapping>
       <filter-mapping>
       <filter-name>Compress</filter-name>
       <url-pattern>*.jpg</url-pattern>
       </filter-mapping>
       <listener>
       <listener-class>
       com.protech.util.DBCPoolingListener
       </listener-class>
       </listener>
       <listener>
       <listener-class>com.protech.util.InitParams</listener-class>
       </listener>
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet>
       <servlet-name>Jenia internal servlet</servlet-name>
       <servlet-class>org.jenia.faces.util.Servlet</servlet-class>
       <load-on-startup>2</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.htm</url-pattern>
       </servlet-mapping>
       <servlet-mapping>
       <servlet-name>Jenia internal servlet</servlet-name>
       <url-pattern>/jenia4faces/*</url-pattern>
       </servlet-mapping>
       <login-config>
       <auth-method>BASIC</auth-method>
       </login-config>
       <!-- This component has a dependency on an external resource-->
       <resource-ref>
       <description>DB Connection Pooling</description>
       <res-ref-name>jdbc/drains</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
       <res-sharing-scope>Shareable</res-sharing-scope>
       </resource-ref>
      </web-app>