myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Cordova <tom.cord...@daiwausa.com>
Subject RE: FacesConfigurator Error
Date Wed, 24 May 2006 16:26:27 GMT

Actually, I named the file "myfaces-config.xml" just to make sure.

Here's my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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">
  <display-name>RestrictedList</display-name>
  <description>RestrictedList Application</description>
  <context-param>
    <description>Comma separated list of URIs of (additional) faces config
files.
            (e.g. /WEB-INF/my-config.xml)
            See JSF 1.0 PRD2, 10.3.2
            Attention: You do not need to put /WEB-INF/faces-config.xml in
here.
    </description>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/myfaces-config.xml</param-value>
  </context-param>
  <context-param>
    <description>State saving method: "client" or "server" (= default)
            See JSF Specification 2.5.3</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
  </context-param>
  <context-param>
    <description>Only applicable if state saving method is "server" (=
default).
            Defines the amount (default = 20) of the latest views are stored
in session.</description>
    <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
    <param-value>20</param-value>
  </context-param>
  <context-param>
    <description>Only applicable if state saving method is "server" (=
default).
            If true (default) the state will be serialized to a byte stream
before it 
            is written to the session.
            If false the state will not be serialized to a byte
stream.</description>
    <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <description>Only applicable if state saving method is "server" (=
default) and if 
            org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (=
default)
            If true (default) the serialized state will be compressed before
it 
            is written to the session. If false the state will not be
compressed.</description>
    <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <description>This parameter tells MyFaces if javascript code should be
allowed in the
            rendered HTML output.
            If javascript is allowed, command_link anchors will have
javascript code
            that submits the corresponding form.
            If javascript is not allowed, the state saving info and nested
parameters
            will be added as url parameters.
            Default: "true"</description>
    <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
    <param-value>false</param-value>
  </context-param>
  <context-param>
    <description>If true, rendered HTML code will be formatted, so that it
is "human readable".
            i.e. additional line separators and whitespace will be written,
that do not
            influence the HTML code.
            Default: "true"</description>
    <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <description>If true, a javascript function will be rendered that is
able to restore the
            former vertical scroll on every request. Convenient feature if
you have pages
            with long lists and you do not want the browser page to always
jump to the top
            if you trigger a link or button action that stays on the same
page.
            Default: "false"</description>
    <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
    <param-value>false</param-value>
  </context-param>

    <context-param>
  		<description>
  			Validate managed beans and navigation rules.
  		</description>
       	<param-name>org.apache.myfaces.validate</param-name>
       	<param-value>true</param-value>
    </context-param>

<!-- 
  <context-param>
    <description>A class implementing the
		    org.apache.myfaces.shared.renderkit.html.util.AddResource
		    interface. It is responsible to
   			place scripts and css on the right position in your HTML document.
            Default:
"org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"</description>
    <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
   
<param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
  </context-param>
-->
  
  <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
   
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
      <init-param>
          <description>Set the size limit for uploaded files.
              Format: 10 - 10 bytes
                      10k - 10 KB
                      10m - 10 MB
                      1g - 1 GB
          </description>
          <param-name>uploadMaxFileSize</param-name>
          <param-value>100m</param-value>
      </init-param>
      <init-param>
          <description>Set the threshold size - 
          							files below this limit are stored in momory,
          							files above this size are stored on disk.
              Format: 10 - 10 bytes
                      10k - 10 KB
                      10m - 10 MB
                      1g - 1 GB
          </description>
          <param-name>uploadThresholdSize</param-name>
          <param-value>100k</param-value>
      </init-param>
  </filter>

  <!-- extension mapping for adding <script/>, <link/>, 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>FacesServlet</servlet-name>
  </filter-mapping>

  <!-- extension mapping for serving page-independent resources (javascript,
stylesheets, images, etc.)  -->
  <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
  </filter-mapping>

  <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.faces</url-pattern>
  </filter-mapping>

  <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
  </filter-mapping>

  <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
  </filter-mapping>

   <listener>
     
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
   </listener>
  
  <!-- Faces Servlet -->
   <servlet>
      <servlet-name>FacesServlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <init-param>
         <param-name>config</param-name>
         <param-value>/WEB-INF/myfaces-config.xml</param-value>
      </init-param>
      <init-param>
         <param-name>debug</param-name>
         <param-value>3</param-value>
      </init-param>
      <init-param>
         <param-name>detail</param-name>
         <param-value>3</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
   </servlet>

  <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  
  <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <!--url-pattern>/faces/*</url-pattern-->
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
	<error-page>
		<error-code>500</error-code>
		<location>/error.jsp</location>
	</error-page>
</web-app>

--
View this message in context: http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4544548
Sent from the MyFaces - Users forum at Nabble.com.


Mime
View raw message