facebook

faces-config.xml errors with ME 4.1

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #246175 Reply

    Don Nelson
    Member

    I am experiencing some weird behavior with 4.1 and the faces-config.xml file. The editor is showing every managed bean as an error, with the message “Duplicated managed bean name: beanName” When I validate the xml file manually, it says the file is valid. Editing the file and resaving it does nothing. Uninstalling 4.1, and reinstalling 4.0 fixes the problem.

    Any ideas?

    Thanks,

    Don

    – System Setup ——————————-
    Operating System and version: XP sp2
    Eclipse version: 3.1
    Eclipse build id: M20060118-1600
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? n
    MyEclipse version: 4.1
    Eclipse JDK version: 1.4.2

    #246201 Reply

    Don,
    I can’t reproduce the problem. Can you show the sample config XML?

    #246223 Reply

    Don Nelson
    Member

    The entire config file is huge, so I will paste a representative sample. Also, you should know that we are using MyFaces 1.0.9.

    <faces-config>

    <lifecycle>
    <phase-listener>
    gov.mass.eos.web.listeners.MessageListernerCustom
    </phase-listener>
    </lifecycle>

    <managed-bean>
    <managed-bean-name>houseHold</managed-bean-name>
    <managed-bean-class>
    gov.mass.eos.business.model.ce.household.Household
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>

    <managed-bean>
    <managed-bean-name>certification</managed-bean-name>
    <managed-bean-class>
    gov.mass.eos.business.model.ce.cert.Certification
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>food@participant</from-view-id>

    <navigation-case>
    <from-outcome>profiles</from-outcome>
    <to-view-id>/pages/food/participant/participantProfiles.jsp</to-view-id>
    <redirect />
    </navigation-case>
    </navigation-rule>
    </faces-config>

    #246298 Reply

    I still can’t reproduce the problem.

    Can you clarify the Eclipse version you are using – the 3.1 build ID is I20050627-1435. Are you using 3.1.2 or 3.2 milestone?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: faces-config.xml errors with ME 4.1

You must be logged in to post in the forum log in