Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat et log4j

Tomcat et log4j

2006-11-22       - By Pierre Goupil

 Back
Reply:     1     2     3     4     5     6     7     8  

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 Source code of java.lang.ExceptionInInitializerError
> Caused by: com.sun.org.apache.commons.logging.LogConfigurationException:
> com.sun.org.apache.commons.logging.LogConfigurationException :
> java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' border=0> (Caused by java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' border=0>)
> (Caused by com.sun.org.apache.commons.logging.LogConfigurationException:
> java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' border=0> (Caused by java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' 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 Source code of org.apache.catalina.startup.Bootstrap<clinit>(Bootstrap.java:73)
> Caused by: com.sun.org.apache.commons.logging.LogConfigurationException :
> java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' border=0> (Caused by java.lang.NullPointerException Source code of java.lang.NullPointerException.html>java.lang.NullPointerException Source code of java.lang.NullPointerException java.lang.NullPointerException Source code of java.lang.NullPointerException.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/NullPointerException.html>java.lang.NullPointerException</a> <a href=http://www.docjar.com/html/api/java/lang/NullPointerException.java.html><img src=/j.gif alt=' 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 Source code of 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."

©2008 junlu.com - Jax Systems, LLC, U.S.A.