IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Tomcat et TomEE Java Discussion :

web.xml erreur avec PWM + CAS


Sujet :

Tomcat et TomEE Java

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    923
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 923
    Points : 760
    Points
    760
    Par défaut web.xml erreur avec PWM + CAS
    Bonjour à tous,

    J'avais sur mon serveur Tomcat7 deux applications, PWM et CAS. Jusqu'à hier, les deux marchaient de façon indépendant.

    Aujourd'hui je suis en train de faire l'intégration de PWM avec CAS en suivant les pas indiqués sur le doc de PWM, mais je n'arrive pas à me débarrasser de l'erreur suivant lors que je lance mon serveur Tomcat.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    SEVERE: Parse Fatal Error at line 38 column 9: Le type d'élément "filter" doit être suivi des spécifications d'attribut, ">" ou "/>".
    J'arrive pas à trouver l'erreur sur mon fichier, est-ce que quelqu'un saurait qu'est-ce passe?
    Je vous remercie d'avance pour toute idée,
    Marc

    PS: je mets mon web.xml en pièce-jointe...
    Fichiers attachés Fichiers attachés

  2. #2
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    salut:
    essaie ceci:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
     
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
     
        Licensed to Jasig under one or more contributor license
        agreements. See the NOTICE file distributed with this work
        for additional information regarding copyright ownership.
        Jasig licenses this file to you under the Apache License,
        Version 2.0 (the "License"); you may not use this file
        except in compliance with the License.  You may obtain a
        copy of the License at the following location:
     
          http://www.apache.org/licenses/LICENSE-2.0
     
        Unless required by applicable law or agreed to in writing,
        software distributed under the License is distributed on an
        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        KIND, either express or implied.  See the License for the
        specific language governing permissions and limitations
        under the License.
     
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
             version="2.4">
      <display-name>Central Authentication System (CAS) 3.5.2</display-name>
     
      <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
          /WEB-INF/spring-configuration/*.xml
          /WEB-INF/deployerConfigContext.xml
        </param-value>
      </context-param>
      
    <filter>
    	<filter-name>CAS Validation Filter</filter-name>
    	<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
    	<init-param>
    		<param-name>casServerUrlPrefix</param-name>
    		<param-value>https://localhost:8443/cas</param-value>
    	</init-param>
    	<init-param>
    		<param-name>serverName</param-name>
    		<param-value>https://localhost:8443</param-value>
    	</init-param>
    	<init-param>
    		<param-name>exceptionOnValidationFailure</param-name>
    		<param-value>false</param-value>
    	</init-param>
    	<init-param>
    		<param-name>allowedProxyChains</param-name>
    		<param-value>https://localhost:8443/pwm/proxyCallback</param-value>
    	</init-param>
    	<init-param>
    		<param-name>useSession</param-name>
    		<param-value>false</param-value>
    	</init-param>
    	<init-param>
    		<param-name>redirectAfterValidation</param-name>
    		<param-value>false</param-value>
    	</init-param>
      </filter>
      
      <filter>
    	<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
      </filter>
      
      <filter>
        <filter-name>CAS Client Info Logging Filter</filter-name>
        <filter-class>com.github.inspektr.common.web.ClientInfoThreadLocalFilter</filter-class>
      </filter>
       <filter-mapping>
    	<filter-name>CAS Validation Filter</filter-name>
    	<url-pattern>/clearPass</url-pattern>
      </filter-mapping>
      
      
      <filter-mapping>
    	<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
    	<url-pattern>/clearPass</url-pattern>
      </filter-mapping>
     
     
      <filter-mapping>
        <filter-name>CAS Client Info Logging Filter</filter-name>
        <url-pattern>/*</url-pattern>
      </filter-mapping>
     
      <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/status</url-pattern>
      </filter-mapping>
      <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/services/*</url-pattern>
      </filter-mapping>
     
      <filter>
        <filter-name>characterEncodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>characterEncodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
      </filter-mapping>
      
     
      <!--
        - Loads the CAS ApplicationContext.
        - The deployer choice here is how to handle Throwables thrown by Spring's
        - ContextLoaderListener.  The Spring ContextLoaderListener will throw an exception when the
        - application context cannot be loaded, say because the bean XML files are not valid XML or do not
        - refer to real classes and properties or because a bean configured via Spring throws an exception
        - at construction, property setting, or on an afterPropertiesSet() lifecycle method.
        -
        - If you'd like these errors to be fatal and prevent the CAS servlet context from loading at all,
        - use org.springframework.web.context.ContextLoaderListener.
        -
        - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
        - use org.jasig.cas.web.init.SafeContextLoaderListener
      -->
      <listener>
        <listener-class>
          org.jasig.cas.web.init.SafeContextLoaderListener
        </listener-class>
      </listener>
     
      <!--
        - This is the Spring dispatcher servlet which delegates all requests to the
        - Spring WebMVC controllers as configured in cas-servlet.xml.
        -
        - The choice made above about how to handle a broken ApplicationContext at
        - context initialization applies here as well, since this servlet is load-on-startup.
        -
        - If you'd like these errors to be fatal and prevent the CAS servlet from loading at all,
        - use org.springframework.web.servlet.DispatcherServlet.
        -
        - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
        - use org.jasig.cas.web.init.SafeDispatcherServlet
      -->
      <servlet>
        <servlet-name>cas</servlet-name>
        <servlet-class>org.jasig.cas.web.init.SafeDispatcherServlet</servlet-class>
        <init-param>
          <param-name>publishContext</param-name>
          <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/login</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/logout</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/validate</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/serviceValidate</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/samlValidate</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/proxy</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/proxyValidate</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/CentralAuthenticationService</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/add.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/viewStatistics.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/logout.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/loggedOut.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/manage.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/edit.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/openid/*</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/services/deleteRegisteredService.html</url-pattern>
      </servlet-mapping>
      
      <servlet-mapping>
    	<servlet-name>cas</servlet-name>
    	<url-pattern>/services/updateRegisteredServiceEvaluationOrder.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/status</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/authorizationFailure.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
        <servlet-name>cas</servlet-name>
        <url-pattern>/403.html</url-pattern>
      </servlet-mapping>
     
      <servlet-mapping>
    	<servlet-name>cas</servlet-name>
    	<url-pattern>/clearPass</url-pattern>
      </servlet-mapping>
     
      <session-config>
        <!-- Default to 5 minute session timeouts -->
        <session-timeout>5</session-timeout>
      </session-config>
     
      <error-page>
        <exception-type>org.springframework.context.ApplicationContextException</exception-type>
        <location>/WEB-INF/view/jsp/brokenContext.jsp</location>
      </error-page>
     
      <error-page>
        <error-code>500</error-code>
        <location>/WEB-INF/view/jsp/errors.jsp</location>
      </error-page>
     
      <error-page>
        <error-code>404</error-code>
        <location>/</location>
      </error-page>
     
      <error-page>
        <error-code>403</error-code>
        <location>/403.html</location>
      </error-page>
     
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    eric

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    923
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 923
    Points : 760
    Points
    760
    Par défaut
    Salut Eric,

    Bonjour et merci de ta réponse.
    Effectivement ton fichier a bien marché, mais maintenant j'ai un erreur similaire dans un autre xml...


    Est-ce qu'il serait trop de demander qu'est-ce que t'as changé exactement ? J'ai vu qui t'as inversé quelques lignes filter avec filter-mapping, c'était tout ?

    Je demande parce que je suis en déplacement et j'ai pas un bon écran pour comparer les deux fichiers...

    En tout cas je te remercie vraiment de ton aide, au pire cas je ferai la comparaison le soir en rentrant

  4. #4
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    salut, ton editeur de traitement des fichiers semble avoir des problemes, si tu mets cela dans eclipse, tu veras tout de suite qu´il t´indique une faute.
    J´ai remplacé tout le "-" par des auto-completion. et cela est partie tout seul.

    Eric

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2008
    Messages
    923
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2008
    Messages : 923
    Points : 760
    Points
    760
    Par défaut
    Merci beaucoup,

    J'étais en train d'utiliser Notepad++ pour les éditer.

    Je vais essayer dans Eclipse.

    Bonne journée

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. erreur http 404 ressource non disponible avec web.xml correctement configuré
    Par <yassou> dans le forum Développement Web en Java
    Réponses: 0
    Dernier message: 12/06/2015, 10h32
  2. Réponses: 9
    Dernier message: 14/04/2015, 23h16
  3. (web.xml) Erreur lors du déploiement dans GlassFish
    Par the watcher dans le forum Glassfish et Payara
    Réponses: 3
    Dernier message: 26/08/2011, 13h05
  4. Appel Web Service, erreur avec string
    Par cricrides dans le forum VB.NET
    Réponses: 0
    Dernier message: 28/07/2010, 15h17
  5. Réponses: 14
    Dernier message: 08/08/2007, 18h36

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo