Bonjour à tous !

J'avais un Tomcat 5.5 et un Eclipse 3.2 qui marchaient très bien, puis... le dur a crashé... Résultat des courses : aucune perte de données, mais impossible de démarrer Tomcat. La vue "serveur" d'Eclipse me renvoie la trace suivante :


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
 
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: com.sun.org.apache.commons.logging.LogConfigurationException: com.sun.org.apache.commons.logging.LogConfigurationException : java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by com.sun.org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException ))
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getInstance (LogFactoryImpl.java:209)
    at com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:73)
Caused by: com.sun.org.apache.commons.logging.LogConfigurationException : java.lang.NullPointerException (Caused by java.lang.NullPointerException)
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.newInstance (LogFactoryImpl.java:529)
    ... 4 more
Caused by: java.lang.NullPointerException
    at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
    ... 5 more
Bon, en fait, je suis tombé dans l'enfer de la cohabitation entre commons-loggging et log4j ! Perso, le système de log de ma servlet (log4j) ne veut plus marcher mais de toutes façons vu qu'elle ne se lance pas, je m'en fiche ! Par contre, la question de savoir comment relancer le système de log de Tomcat (log4j + commons-logging !) est un archi-classique : des dizaines de gens en parlent. Mais impossible de trouver une solution. Ho bien sûr des tutos j'en ai trouvé des tas, mais bon...

Il est évident que j'ai ré-installé tout mon poste de développement.

Quant à lancer Tomcat via un autre plugin, j'ai essayé avec Sysdeo : Tomcat se lance, il charge la servlet, mais il ne la démarre pas et reste silencieux. Ni log de ma servlet, ni exception, ni résultat.

Si quelqu'un avait la réponse à cette question cent fois posée, ça me dépannerait bien !

Merci !



Alien