You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2017/01/04 07:20:58 UTC

[jira] [Updated] (ATLAS-1154) Errors in Eclipse with web.xml

     [ https://issues.apache.org/jira/browse/ATLAS-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Madhan Neethiraj updated ATLAS-1154:
------------------------------------
    Affects Version/s: 0.7.1-incubating

Committed to 0.7-incubating branch: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/120e4b97

> 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, 0.7.1-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 : 
> {noformat}
>     <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>
> {noformat}
>    



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