I'm having the following warning messages in my WebLogic log file about some
duplication during the app deployment. And then it confirms that some resources
could have been duplicated ("only keeping the last"). Here it is:
11:15:08,824 WARN FacesConfigurator:385 - /WEB-INF/faces-config.xml has been
specified in the javax.faces.CONFIG_FILES context parameter of the deployment
descriptor. This should be removed, as it will be loaded twice. See JSF spec
1.1, 10.3.2
11:15:08,824 INFO FacesConfigurator:397 - Reading config
/WEB-INF/faces-config.xml
11:15:09,043 INFO FacesConfigurator:411 - Reading config
/WEB-INF/faces-config.xml
11:15:09,433 WARN LocaleUtils:52 - Locale name in faces-config.xml null or
empty, setting locale to default locale : en_US
11:15:12,699 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'userBean' - only keeping the last
11:15:12,699 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'dateBean' - only keeping the last
11:15:12,699 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'explorerSearchServiceBean' - only keeping the last
11:15:12,715 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'refDataBean' - only keeping the last
11:15:12,715 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'reportsMenuHandler' - only keeping the last
11:15:12,715 WARN FacesConfigurator:588 - More than one managed bean w/ the
name of 'tabbedPaneHandler' - only keeping the last
I've seen a thread on this newsgroup about similar behaviour, but it didn't
seem to have any resolution. Does anyone know the reason for these warnings?
Here is my web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by BPTA Iniative
(Credit Suisse First Boston) -->
<web-app>
<context-param>
<param-name>log4jConfigLocation</param-name>
<!-- Should it be under /web-inf/classes instead ??? -->
<!--<param-value>/WEB-INF/log4j.properties</param-value>-->
<param-value>classpath:log4j.properties</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/PortalContext.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<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>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param>
<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>
<description>
Set the size limit for uploaded files. Format:
10 - 10
bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter>
<filter-name>SecurityFilter</filter-name>
<filter-class>
com.csfb.fao.clr.security.SecurityFilter
</filter-class>
</filter>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/jsp/explorer/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/jsp/refdata/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/jsp/reports/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SecurityFilter</filter-name>
<url-pattern>/jsp/lcw/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>
org.apache.myfaces.webapp.MyFacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>authservlet</servlet-name>
<servlet-class>
com.csfb.fao.clr.security.AuthServlet
</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>SpringContextServlet</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>2</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>
<servlet-name>JasperController</servlet-name>
<servlet-class>
com.csfb.fao.clr.reports.prototype.JasperController
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>authservlet</servlet-name>
<url-pattern>/auth</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Jenia internal servlet</servlet-name>
<url-pattern>/jenia4faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JasperController</servlet-name>
<url-pattern>/reports/jasper</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Thank you,
Simeon Leyzerzon
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================