[ https://issues.apache.org/jira/browse/ATLAS-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shwetha G S updated ATLAS-1154: ------------------------------- Assignee: David Radley > Errors in Eclipse with web.xml > ------------------------------ > > Key: ATLAS-1154 > URL: https://issues.apache.org/jira/browse/ATLAS-1154 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.8-incubating > Reporter: David Radley > Assignee: David Radley > Fix For: 0.8-incubating > > Attachments: atlas1154.patch > > > I have set up a development environment in Eclipse. I notice that the project > atlas-webapp 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)