  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Tomcat et log4j | Tomcat et log4j 2006-11-22 - By Pierre Goupil
Back Hi !
1) English
2) French
1) I've just tried this. Tomcat's doc tells to put the file into the classpath and I can't figure how to set this classpath. I've tried to give an Eclipse Preferences / Build path / Classpath variable as well as using the -cp option at server launch, but the machine doesn't seem to take it into account. Or, at least, it doesn't change anything...
2) Je viens d'essayer. La doc de Tomcat dit de mettre ce fichier dans le classpath mais je n'arrive pas ? le positionner. J'ai essay? avec les Preferences d'Eclipse / Builpath / Classpath variable et aussi en utilisant la commande -cp au lancement du serveur, mais Tomcat ne semble pas en tenir compte. En tous cas, ?a ne change rien...
Pierre
Le 22/11/06, OBESSALEM@(protected) <OBESSALEM@(protected)> a ?crit : > > > Salut Pierre, > > J'ai d?j? eu aussi un probl?me de compatibilit? entre Commons-logging et > Log4j. Je ne sais pas si c'est celui que tu rencontres mais sait-on > jamais!!!! > > En fait mon fichier de configuration commons-logging.properties ?tait > incorrect car dans les version plus r?cente de commons-logging, la classe > Log4jFactory n'existe plus; je remplace alors cette ligne: > > org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl .Log4jFactory > par: > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > En esp?rant que ?a aide > @+ > Olviier > > > > > *"Pierre Goupil" <goupilpierre@(protected)>* > > 22/11/2006 05:51 > > Pour : java@(protected) > cc : > Objet : Tomcat et log4j > > > > > Bonjour la liste ! > > 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 : > > ******************************** > 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 .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0> (Caused by java.lang.NullPointerException .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0>) > (Caused by com.sun.org.apache.commons.logging.LogConfigurationException: > java.lang.NullPointerException .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0> (Caused by java.lang.NullPointerException .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0>)) > 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 .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0> (Caused by java.lang.NullPointerException .html>java.lang.NullPointerException java.lang.NullPointerException .java.html> ' border=0>) > 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 pas 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 ! > > > Pierre > > > -- > "L'une des raisons pour lesquelles la vie est complexe > C'est qu'elle a une partie r?elle et une partie imaginaire." >
-- "L'une des raisons pour lesquelles la vie est complexe C'est qu'elle a une partie r?elle et une partie imaginaire."
|
|
 |