David Radley created ATLAS-1154:
-----------------------------------

             Summary: Errors in Eclipse with web.xml
                 Key: ATLAS-1154
                 URL: https://issues.apache.org/jira/browse/ATLAS-1154
             Project: Atlas
          Issue Type: Bug
            Reporter: David Radley


I have set up a development environment in Eclipse. I notice that the project 
atlas respository has 2 errors like this :
The content of element type "web-app" must match 
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-
 
mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-
 ref*,ejb-local-ref*)".

The reason for the error is that the xml elements were filter, filter mapping, 
filter, filter mapping. This does not match the DTD element order (which 
Eclipse seems to be policing).  If I move the elements so all the filters are 
next to each other - there are no errors.
Like this : 
    <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>
    <filter>
        <filter-name>guiceFilter</filter-name>
        <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>guiceFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>



   



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to