cvc-enumeration-valid: Value 'CONTAINER' is not facet-valid with respect to enumeration问题

web.xml中配置如下:

<res-auth>CONTAINER</res-auth>

 

结果,myeclipse报错,描述如下:

Severity and Description Path Resource Location Creation Time Id
cvc-enumeration-valid: Value 'CONTAINER' is not facet-valid with respect to enumeration '[Application, Container]'. It must be a value from the enumeration. ebiao/WebRoot/WEB-INF web.xml line 87 1333938996777 437873

 

看了好多遍都感觉没问题,大家看看这句:cvc-enumeration-valid: Value 'CONTAINER' is not facet-valid with respect to enumeration '[Application, Container]'. It must be a value from the enumeration.

 

原因是 此处配置的值只能是 Application 或 Container,大小写要一样。

所以改为:

<res-auth>Container</res-auth>

问题解决。

你可能感兴趣的:(MyEclipse,application)