java - Eclipse reporting problem in my web.xml, but it is processed fine -


i'm using google app engine google plugin in eclipse, here header of web.xml:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xmlns="http://java.sun.com/xml/ns/javaee"     xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"     xsi:schemalocation="http://java.sun.com/xml/ns/javaee         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> 

based on of gae documentation, added this:

<security-constraint>     <web-resource-collection>         <url-pattern>/tasks/*</url-pattern>     </web-resource-collection>     <auth-constraint>         <role-name>admin</role-name>     </auth-constraint> </security-constraint> 

however eclipse reports error @ "url-pattern":

cvc-complex-type.2.4.a: invalid content found starting element 'url-pattern'.
1 of '{"http://java.sun.com/xml/ns/javaee":web-resource-name}' expected.

i can start app , seems process web.xml file fine, don't fact eclipse reporting error. problem?

well, error seems pretty straightforward - web-resource-name tag expected before url-pattern :)

cheers


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -