No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.

Incompatibilité entre JBoss et Log4J

Astuces de l’Infobrol (Java)Article publié le 13/02/2007 14:09:18


Si vous utilisez JBoss[Zion] 4.0.5 (ce dernier travaille avec la version 5.5.20 de Tomcat) et que vous utilisez Log4J, vous pouvez vous heurter à une incompatibilité entre votre système et celui de JBoss au moment de charger les classes.

Vous pouvez alors éditer le fichier jboss-services.xml qui se trouve dans le répertoire META-INF du serveur.

Exemple :

jboss\server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-services.xml



Cherchez les lignes suivantes :

  1. ‹!-- Get the flag indicating if the normal Java2 parent first class
  2. loading model should be used over the servlet 2.3 web container first
  3. model.
  4. --›
  5. ‹attribute name="Java2ClassLoadingCompliance"›false‹/attribute›
  6. ‹!-- A flag indicating if the JBoss Loader should be used. This loader
  7. uses a unified class loader as the class loader rather than the tomcat
  8. specific class loader.
  9. The default is false to ensure that wars have isolated class loading
  10. for duplicate jars and jsp files.
  11. --›
  12. ‹attribute name="UseJBossWebLoader"›false‹/attribute›


Vous pouvez remplacer les valeurs false par true.
Normalement JBoss redémarre, mais il est possible qu’il s’embrouille les pinceaux et qu’il crache un flot impressionnant d’erreurs. Dans ce cas, redémarrez le manuellement.

Avatar :: Steph Un article de Steph

Source : indéterminée


Sélection, tri et recherche d'articles
FILTRER :
TRIER :1er critère : 2e critère :
CHERCHER : Dans les titres Dans le contenu


[Afficher les liens en fonction des critères du formulaire ci-dessus]

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-388.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.