Add a <web-resource-name> element. App Engine does not pay attention to it, but I believe it is technically required.
On Sat, Oct 30, 2010 at 2:21 PM, Daniel <[email protected]> wrote: > Hi i got the following setting in my web.xml: > > <security-constraint> > <web-resource-collection> > <url-pattern>/*</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>*</role-name> > </auth-constraint> > </security-constraint> > > in eclipse it shows me a red X as if it was an error (the project > works fine and even can be deployed) but it asks me all the time if im > sure i want to deploy with the error) > > HERE IS THE ERROR: > > cvc-complex-type.2.4.a: Invalid content was found starting with > element 'url-pattern'. One of '{"http://java.sun.com/xml/ns/ > javaee":web-resource-name}' is expected. > > > And this is how the web.xml begins: > > <?xml version="1.0" encoding="utf-8"?> > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > > how can i fix this annoying error ? > > Tx ahead > > Daniel > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
