atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Radley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-1154) Errors in Eclipse with web.xml
Date Thu, 01 Sep 2016 16:53:21 GMT

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

David Radley updated ATLAS-1154:
--------------------------------
    Description: 
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>



   

  was:
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>



   


> 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-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)

Mime
View raw message