[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error faces-config.xml in Eclipse  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

I always got an error through validation:
cvc-id.3: A field of identity constraint 'faces-config-managed-bean-name-uniqueness' matched element 'faces-config', but this element does not have a simple type.

it could be solved this way
https://stackoverflow.com/questions/3219639/cvc-id-3-error-in-web-xml
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi Markus,

thanks for this post...

The big question is: why does Eclipse show these errors - because the web.xml is totally correct. This is also mentioned in the link you refer to: "The overall interesting question is why Eclipse stopped working for the former web.xml even though it seems that it was totally correct. Only the namespaces and version number changed, but that worked for years in the past."

Kind regards! Björn


PS: Just for all, the relevant part of the link mentioned by Markus is to replace:

Code:
 <web-app    xmlns="http://java.sun.com/xml/ns/javaee"
             xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                                 <a href="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" target="_blank" rel="nofollow">http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd</a>"
             id="WebApp_ID" version="3.0">
 


with

Code:
 <web-app    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
             xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                                 <a href="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" target="_blank" rel="nofollow">http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd</a>"
             id="WebApp_ID" version="3.1">
 

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

...and: the same is true for faces-config.xml:

Here the header part that does not cause problem messages with Eclipse is:

Code:
 <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
               xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee <a href="http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" target="_blank" rel="nofollow">http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd</a>"
               version="2.2">    
 


Again, the files "before" are correct!!! So you do not have to change (and can remove the problem messages in Eclipse...).

Kind regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team