You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Tom Cordova <to...@daiwausa.com> on 2006/05/24 17:39:56 UTC

FacesConfigurator Error

Whenever I deploy my application I get the following warning:

[FacesConfigurator] More than one managed bean w/ the name of 'restlist' -
only keeping the last 

Any idea what could be causing this?  Here's my faces config file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config >
	<managed-bean>
		<managed-bean-name>restlist</managed-bean-name>
	
<managed-bean-class>com.daiwausa.restrictedlist.jsf.RestList</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<navigation-rule>
		<from-view-id>/index.jsp</from-view-id>
		<navigation-case>
			<from-outcome>showDetails</from-outcome>
			<to-view-id>/index.jsp</to-view-id>
		<redirect /></navigation-case>
		<navigation-case>
			<from-outcome>hideDetails</from-outcome>
			<to-view-id>/index.jsp</to-view-id>
		<redirect /></navigation-case>
	</navigation-rule>
</faces-config>


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


RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
Anyone have any idea on this?  Every portlet deployed gives this error
regardless of the application.
--
View this message in context: http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4664603
Sent from the MyFaces - Users forum at Nabble.com.


RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
RestrictedListII is my application.  JBoss creates that whole
tmp33311*-exp.war thing when it deploys the app.  I'm currently deploying
the app as a packaged war fil, not expanded.

When I unzip the war file and check web.xml it's the same as the source --
only mentions my-config.xml -- and my-config.xml is there.  There is no
myfaces-config.xml or faces-config.xml in the war file.
--
View this message in context: http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4634492
Sent from the MyFaces - Users forum at Nabble.com.


RE: FacesConfigurator Error

Posted by David Friedman <hu...@ix.netcom.com>.
What is this restrictedlistII-exp.war? See:

>
C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp33311Restri
ctedListII-exp.war

Is it your war and does it have your file (any faces-config.xml or whatever
name) in it?  If so, can you try deploying the expanded war and moving the
war file somewhere else for a moment to see if  that is part of the problem?

Regards,
David

-----Original Message-----
From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
Sent: Tuesday, May 30, 2006 4:22 PM
To: users@myfaces.apache.org
Subject: RE: FacesConfigurator Error



I changed the name of the file to my-config.xml and made sure it's only in
the web.xml once.  I still get the warning.
----------------------------------------------------------------------------
------------------
And here are the messages from my log:

16:19:30,260 INFO  [FacesConfigurator] Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
16:19:30,338 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp3
3225jsf-facelets.jar!/META-INF/faces-config.xml
16:19:30,354 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp3
3237tomahawk.jar!/META-INF/faces-config.xml
16:19:30,401 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp3
3311RestrictedListII-exp.war/WEB-INF/lib/tomahawk-1.1.3-SNAPSHOT.jar!/META-I
NF/faces-config.xml
16:19:30,447 INFO  [FacesConfigurator] Reading config /WEB-INF/my-config.xml
16:19:30,463 WARN  [LocaleUtils] Locale name in faces-config.xml null or
empty, setting locale to default locale : en_US
16:19:30,463 WARN  [FacesConfigurator] More than one managed bean w/ the
name of 'restlist' - only keeping the last
16:19:30,479 INFO  [MyFacesGenericPortlet] PortletContext
'C:\JBoss\jboss-portal-2.2.1-bundled\server\default\.\tmp\deploy\tmp33311Res
trictedListII-exp.war\'
initialized.


RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
I changed the name of the file to my-config.xml and made sure it's only in
the web.xml once.  I still get the warning.

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/my-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>true</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.webapp.filter.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>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>


----------------------------------------------------------------------------------------------


And here are the messages from my log:

16:19:30,260 INFO  [FacesConfigurator] Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
16:19:30,338 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp33225jsf-facelets.jar!/META-INF/faces-config.xml
16:19:30,354 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp33237tomahawk.jar!/META-INF/faces-config.xml
16:19:30,401 INFO  [FacesConfigurator] Reading config
jar:file:/C:/JBoss/jboss-portal-2.2.1-bundled/server/default/tmp/deploy/tmp33311RestrictedListII-exp.war/WEB-INF/lib/tomahawk-1.1.3-SNAPSHOT.jar!/META-INF/faces-config.xml
16:19:30,447 INFO  [FacesConfigurator] Reading config /WEB-INF/my-config.xml
16:19:30,463 WARN  [LocaleUtils] Locale name in faces-config.xml null or
empty, setting locale to default locale : en_US
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = javax.faces.Button renderer class =
org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlButtonRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = javax.faces.Link renderer class =
org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.Button renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlButtonRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.Link renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.Table renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.Grid renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlGridRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.Group renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlGroupRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.Secret renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlSecretRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Graphic rendererType = org.apache.myfaces.Image renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlImageRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.Text renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.TextHelp renderer class
= org.apache.myfaces.custom.inputTextHelp.HtmlTextHelpRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.Textarea renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlTextareaRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Message rendererType = org.apache.myfaces.Message renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlMessageRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Messages rendererType = org.apache.myfaces.Messages renderer
class = org.apache.myfaces.renderkit.html.ext.HtmlMessagesRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Output rendererType = org.apache.myfaces.Text renderer class =
org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectBoolean rendererType = org.apache.myfaces.Checkbox
renderer class = org.apache.myfaces.renderkit.html.ext.HtmlCheckboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectMany rendererType = org.apache.myfaces.Checkbox renderer
class = org.apache.myfaces.renderkit.html.ext.HtmlCheckboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectOne rendererType = org.apache.myfaces.Menu renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlMenuRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectMany rendererType = org.apache.myfaces.Menu renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlMenuRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectOne rendererType = org.apache.myfaces.Listbox renderer
class = org.apache.myfaces.renderkit.html.ext.HtmlListboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectMany rendererType = org.apache.myfaces.Listbox renderer
class = org.apache.myfaces.renderkit.html.ext.HtmlListboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectOne rendererType = org.apache.myfaces.Radio renderer class
= org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.AliasBean renderer class
= org.apache.myfaces.custom.aliasbean.AliasBeanRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.AliasBeansScope renderer
class = org.apache.myfaces.custom.aliasbean.AliasBeansScopeRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.Buffer renderer class =
org.apache.myfaces.custom.buffer.BufferRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.Checkbox rendererType = org.apache.myfaces.Checkbox
renderer class = org.apache.myfaces.renderkit.html.ext.HtmlCheckboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.DataScroller renderer
class = org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.Calendar renderer class
= org.apache.myfaces.custom.calendar.HtmlCalendarRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.Date renderer class =
org.apache.myfaces.custom.date.HtmlDateRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.FileUpload renderer
class = org.apache.myfaces.custom.fileupload.HtmlFileUploadRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Input rendererType = org.apache.myfaces.InputHtml renderer class
= org.apache.myfaces.custom.inputHtml.InputHtmlRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.Popup renderer class =
org.apache.myfaces.custom.popup.HtmlPopupRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.Layout renderer class =
org.apache.myfaces.custom.layout.HtmlLayoutRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.Navigation renderer
class = org.apache.myfaces.custom.navigation.HtmlNavigationRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.NavigationMenu renderer
class =
org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.Navigation renderer
class = org.apache.myfaces.custom.navigation.HtmlNavigationRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.NavigationMenu
renderer class =
org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.JSCookMenu renderer
class = org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.SortHeader renderer
class = org.apache.myfaces.custom.sortheader.HtmlSortHeaderRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.TabbedPane renderer
class = org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.CollapsiblePanel
renderer class =
org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanelRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.List renderer class =
org.apache.myfaces.custom.datalist.HtmlListRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Data rendererType = org.apache.myfaces.HtmlNewspaperTable
renderer class =
org.apache.myfaces.custom.newspaper.HtmlNewspaperTableRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Output rendererType = org.apache.myfaces.JsValueSet renderer
class = org.apache.myfaces.custom.jsvalueset.HtmlJsValueSetRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Output rendererType = org.apache.myfaces.JsValueChangeListener
renderer class =
org.apache.myfaces.custom.jslistener.JsValueChangeListenerRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.Radio rendererType = org.apache.myfaces.Radio renderer
class = org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectOne rendererType =
org.apache.myfaces.SelectOneCountryRenderer renderer class =
org.apache.myfaces.custom.selectOneCountry.SelectOneCountryRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.SelectOne rendererType =
org.apache.myfaces.SelectOneLanguageRenderer renderer class =
org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguageRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Output rendererType = org.apache.myfaces.Stylesheet renderer
class = org.apache.myfaces.custom.stylesheet.StylesheetRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Output rendererType = org.apache.myfaces.HtmlTagRenderer
renderer class = org.apache.myfaces.custom.htmlTag.HtmlTagRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.HtmlTree2 rendererType = org.apache.myfaces.HtmlTree2
renderer class = org.apache.myfaces.custom.tree2.HtmlTreeRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.HtmlTree rendererType = org.apache.myfaces.HtmlTree
renderer class =
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.HtmlTree rendererType =
org.apache.myfaces.HtmlTreeImageCommandLink renderer class =
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeImageCommandLinkRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
org.apache.myfaces.HtmlTreeCheckbox rendererType =
org.apache.myfaces.HtmlTreeCheckbox renderer class =
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeCheckboxRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Command rendererType = org.apache.myfaces.HtmlTreeNode renderer
class = org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeNodeRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Panel rendererType = org.apache.myfaces.PanelStack renderer
class = org.apache.myfaces.custom.panelstack.HtmlPanelStackRenderer
16:19:30,463 INFO  [HtmlRenderKitImpl] Overwriting renderer with family =
javax.faces.Graphic rendererType = org.apache.myfaces.SwapImage renderer
class = org.apache.myfaces.custom.swapimage.HtmlSwapImageRenderer
16:19:30,463 INFO  [RenderKitFactoryImpl] RenderKit with renderKitId
'HTML_BASIC' was replaced.
16:19:30,463 WARN  [FacesConfigurator] More than one managed bean w/ the
name of 'restlist' - only keeping the last 
16:19:30,479 INFO  [MyFacesGenericPortlet] PortletContext
'C:\JBoss\jboss-portal-2.2.1-bundled\server\default\.\tmp\deploy\tmp33311RestrictedListII-exp.war\'
initialized.

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


RE: FacesConfigurator Error

Posted by David Friedman <hu...@ix.netcom.com>.
Matthias,

I thought I remember doing this when I bought a JSF book (Core JavaServer
Faces) but I can't find any sign of the Servlet level init-param named
"config" in the current source code.  Maybe I'm mistaken.  I guess we will
find out more if/when Tom tries it with only one config file listing and
gives us the results.

Regards,
David

-----Original Message-----
From: Matthias Wessendorf [mailto:mwessendorf@gmail.com]
Sent: Wednesday, May 24, 2006 1:38 PM
To: MyFaces Discussion
Subject: Re: FacesConfigurator Error


I think (no code here at airport internet cafe ;-)) it (the warning)
looks for "faces-config.xml" which is, of course inside the name
"myfaces-config.xml" ;-)



On 5/24/06, David Friedman <hu...@ix.netcom.com> wrote:
> Let's just say the new SVN Trunk has more explicit warnings, like this
when
> you have both a context param and an override as a servlet init param as
you
> do:
>
> log.warn(DEFAULT_FACES_CONFIG + " has been specified in the " +
> 	FacesServlet.CONFIG_FILES_ATTR + " context parameter of " +
> 	"the deployment descriptor. This should be removed, " +
> 	"as it will be loaded twice.  See JSF spec 1.1, 10.3.2");
>
> Regards,
> David
>
> -----Original Message-----
> From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
> Sent: Wednesday, May 24, 2006 12:39 PM
> To: users@myfaces.apache.org
> Subject: RE: FacesConfigurator Error
>
> Thanks for responding so quickly...
>
> It's in as a javax.faces.CONFIG_FILES parameter and then again in the
> Servlet stanza as a config param
>
> Should I take it out of one of those places?
> --
> View this message in context:
> http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4544799
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: FacesConfigurator Error

Posted by Matthias Wessendorf <mw...@gmail.com>.
I think (no code here at airport internet cafe ;-)) it (the warning)
looks for "faces-config.xml" which is, of course inside the name
"myfaces-config.xml" ;-)



On 5/24/06, David Friedman <hu...@ix.netcom.com> wrote:
> Let's just say the new SVN Trunk has more explicit warnings, like this when
> you have both a context param and an override as a servlet init param as you
> do:
>
> log.warn(DEFAULT_FACES_CONFIG + " has been specified in the " +
> 	FacesServlet.CONFIG_FILES_ATTR + " context parameter of " +
> 	"the deployment descriptor. This should be removed, " +
> 	"as it will be loaded twice.  See JSF spec 1.1, 10.3.2");
>
> Regards,
> David
>
> -----Original Message-----
> From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
> Sent: Wednesday, May 24, 2006 12:39 PM
> To: users@myfaces.apache.org
> Subject: RE: FacesConfigurator Error
>
> Thanks for responding so quickly...
>
> It's in as a javax.faces.CONFIG_FILES parameter and then again in the
> Servlet stanza as a config param
>
> Should I take it out of one of those places?
> --
> View this message in context:
> http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4544799
> Sent from the MyFaces - Users forum at Nabble.com.
>
>


-- 
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
Well, I removed it from the Servlet / init-param stanza and even shutdown and
restarted the server, but I'm still getting the same warning.  Here's my new
we.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>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#a4545835
Sent from the MyFaces - Users forum at Nabble.com.


RE: FacesConfigurator Error

Posted by David Friedman <hu...@ix.netcom.com>.
Let's just say the new SVN Trunk has more explicit warnings, like this when
you have both a context param and an override as a servlet init param as you
do:

log.warn(DEFAULT_FACES_CONFIG + " has been specified in the " +
	FacesServlet.CONFIG_FILES_ATTR + " context parameter of " +
	"the deployment descriptor. This should be removed, " +
	"as it will be loaded twice.  See JSF spec 1.1, 10.3.2");

Regards,
David

-----Original Message-----
From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
Sent: Wednesday, May 24, 2006 12:39 PM
To: users@myfaces.apache.org
Subject: RE: FacesConfigurator Error

Thanks for responding so quickly...

It's in as a javax.faces.CONFIG_FILES parameter and then again in the
Servlet stanza as a config param

Should I take it out of one of those places?
--
View this message in context:
http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4544799
Sent from the MyFaces - Users forum at Nabble.com.


RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
Thanks for responding so quickly...  

It's in as a javax.faces.CONFIG_FILES parameter and then again in the
Servlet stanza as a config param

Should I take it out of one of those places?
--
View this message in context: http://www.nabble.com/FacesConfigurator+Error-t1675804.html#a4544799
Sent from the MyFaces - Users forum at Nabble.com.


RE: FacesConfigurator Error

Posted by David Friedman <hu...@ix.netcom.com>.
Odd, but I see it in there twice, don't you? (or do I need new glasses?)

Regards,
David

-----Original Message-----
From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
Sent: Wednesday, May 24, 2006 12:26 PM
To: users@myfaces.apache.org
Subject: RE: FacesConfigurator Error



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"</descript
ion>
    <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>

<param-value>org.apache.myfaces.component.html.util.StreamingAddResource</pa
ram-value>
  </context-param>
-->

  <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>

<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filte
r-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</lis
tener-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.


RE: FacesConfigurator Error

Posted by Tom Cordova <to...@daiwausa.com>.
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.


RE: FacesConfigurator Error

Posted by David Friedman <hu...@ix.netcom.com>.
Are you specifying your faces-config.xml file in a web.xml parameter so it
would reload twice?  I.E. JSF loads it automatically so if you specify the
config file in web.xml, it might be reading your configuration file twice
and saying "hey, I'll use the latest definition of that managed bean."

Regards,
David

-----Original Message-----
From: Tom Cordova [mailto:tom.cordova@daiwausa.com]
Sent: Wednesday, May 24, 2006 11:40 AM
To: users@myfaces.apache.org
Subject: FacesConfigurator Error



Whenever I deploy my application I get the following warning:

[FacesConfigurator] More than one managed bean w/ the name of 'restlist' -
only keeping the last

Any idea what could be causing this?  Here's my faces config file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config >
	<managed-bean>
		<managed-bean-name>restlist</managed-bean-name>

<managed-bean-class>com.daiwausa.restrictedlist.jsf.RestList</managed-bean-c
lass>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<navigation-rule>
		<from-view-id>/index.jsp</from-view-id>
		<navigation-case>
			<from-outcome>showDetails</from-outcome>
			<to-view-id>/index.jsp</to-view-id>
		<redirect /></navigation-case>
		<navigation-case>
			<from-outcome>hideDetails</from-outcome>
			<to-view-id>/index.jsp</to-view-id>
		<redirect /></navigation-case>
	</navigation-rule>
</faces-config>


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