incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: TrinidadFilter has not been installed
Date Fri, 22 Dec 2006 06:46:17 GMT
Hi Duong,

back to faces ? :)

However, I am not seeing any issue with your web.xml.
I am also using the same libs like you and my app runs fine in Jetty.
(and tested it just in TC 5.5.17)


here is the web.xml:

<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<web-app 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"
         version="2.4">

  <context-param>
    <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
    <param-value>false</param-value>
 </context-param>

  <context-param>
    <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
  </context-param>

  <!-- Use Documents Saved as *.xhtml -->
  <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
  </context-param>


  <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>

  <context-param>
    <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
    <param-value>false</param-value>
  </context-param>

  <context-param>
    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
    <param-value>session</param-value>
  </context-param>

  <!-- Commons Chain Configuration Resources -->
  <context-param>
    <param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE</param-name>
    <param-value>/WEB-INF/chain-config.xml</param-value>
  </context-param>

    <!-- Shale Application Controller Filter -->
  <filter>
    <filter-name>shale</filter-name>
    <filter-class>
      org.apache.shale.application.faces.ShaleApplicationFilter
    </filter-class>
  </filter>

  <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
  </filter>

  <!-- Shale Application Controller Filter Mapping -->
  <filter-mapping>
    <filter-name>shale</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>faces</servlet-name>
  </filter-mapping>

  <!-- Listener, to allow Jetty serving MyFaces apps -->
  <!--listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  </listener-->

  <listener>
    <listener-class>net.wessendorf.hsql.HsqlListener</listener-class>
  </listener>

  <!-- Commons Chain Configuration Listener -->
  <listener>
    <listener-class>
      org.apache.commons.chain.web.ChainListener
    </listener-class>
  </listener>


  <!-- Faces Servlet -->
  <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  </servlet>

  <!-- resource loader servlet -->
  <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  </servlet>

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

  <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
  </servlet-mapping>

</web-app>



On 12/22/06, Duong BaTien <duong.batien@gmail.com> wrote:
> What did i do wrong here? I start to explore Trinidad with this page
> http://wiki.apache.org/myfaces/Facelets_with_Trinidad
> But get the warning "The TrinidadFilter has not been installed".
>
> The libraries include Shale 1.0.4 (core, dialog, remoting, spring,
> validator, view), Spring 2.0 (aop, beans, context, core,web), tomahawk
> 1.1.5.jar, trinidad stable Dec-06 (api, impl).
>
> Here is my faces-config:
>
>  <application>
>     <message-bundle>
>       com.dbgroups.psi.PsiBundle
>     </message-bundle>
>     <locale-config>
>         <default-locale>en</default-locale>
>         <supported-locale>en</supported-locale>
>     </locale-config>
>     <!-- Use the Trinidad RenderKit -->
>     <default-render-kit-id>
>         org.apache.myfaces.trinidad.core
>     </default-render-kit-id>
>   </application>
>
> Here is my web.xml
>
>   <context-param>
> <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</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>javax.faces.STATE_SAVING_METHOD</param-name>
>         <param-value>client</param-value>
>     </context-param>
>     <context-param>
> <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
>       <param-value>all</param-value>
>     </context-param>
>     <context-param>
> <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
>       <param-value>false</param-value>
>     </context-param>
>     <context-param>
> <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
>       <param-value>true</param-value>
>     </context-param>
>     <context-param>
>  <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
>       <param-value>session</param-value>
>     </context-param>
>     <filter>
>       <filter-name>trinidad</filter-name>
> <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
>     </filter>
>     <filter-mapping>
>       <filter-name>trinidad</filter-name>
>       <servlet-name>faces</servlet-name>
>     </filter-mapping>
>     <servlet>
>         <servlet-name>faces</servlet-name>
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     </servlet>
>     <servlet>
>       <servlet-name>resources</servlet-name>
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>faces</servlet-name>
>         <url-pattern>*.jsf</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>       <servlet-name>resources</servlet-name>
>       <url-pattern>/public/budhnet.com/trinidad/*</url-pattern>
>     </servlet-mapping>
>   <context-param>
>     <param-name>javax.faces.CONFIG_FILES</param-name>
>     <param-value>
>         /WEB-INF/xmlConfig/faces-bean.xml,
>         /WEB-INF/xmlConfig/faces-navigation.xml
>     </param-value>
>     <description>Comma separated list of  config files.</description>
>   </context-param>
>   <context-param>
>     <param-name>contextConfigLocation</param-name>
>     <param-value>
>         /WEB-INF/xmlConfig/psi.xml
>     </param-value>
>   </context-param>
>     <listener>
>       <listener-class>
> org.springframework.web.context.ContextLoaderListener
>       </listener-class>
>     </listener>
>
> Thanks
>
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message