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:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 11:40 AM
To: [email protected]
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.

Reply via email to