Hi Marie,

Yes I am.
Effectivement Tomcat utilise son propre environnement. Il utilise ses propres 
CLASSPATH pour chaque application.
En fait le chemin webApp/WEB-INF/lib y est par defaut. J'utilise TOmcat sous Win et je 
ne connais pas sous Uni.

Sous Windows, les fichiers 'bat' du repertoire bin definissent entirement 
l'environnement. Le classpath existant est conserve.
En revanche il ne faut pas y citer des sous-repertoires de webapps qui risque de creer 
des incoherences.

Dans le repertoire bin, tu dois pouvoir sous Uni fixer tes classpath pour Tomcat. Mais 
commeje connais pas, je peux
pas t'aider.

@+,
Charlie


        -----Message d'origine-----
        De:     
o=INTERNET;p=CREDIT-AGRICOLE;a=ATLAS;c=FR;dda:rfc-822=mjung(a)kodak.com; 
        Date:   mardi 19 février 2002 17:52
        À:      Log4J Users List
        Objet:  RE: issue with xml configuration


        From: Marie Jung

        Charles,

        It looks like you are french, no?

        Merci, mais je ne comprends pas votre réponse. Je travaille sur solaris 8,
        d'après ce que j'ai compris sur le classloader de Tomcat, la variable
        d'environnement UNIX CLASSPATH est complètement ignorée et c'est Tomcat
        lui-même qui crée son environnement. Donc dans ce cas la notion de
        CLASSPATH me semble différente. Qu'en pensez-vous?


        Marie






        "PAULET Charles (DEVOTEAM)" <[EMAIL PROTECTED]> on 19/02/2002
        15:02:16

        Please respond to "Log4J Users List" <[EMAIL PROTECTED]>

        To:   "'Log4J Users List'" <[EMAIL PROTECTED]>
        cc:
        Subject:  RE: issue with xml configuration


        Hi Marie,

        Is $CATALINA_HOME/common/lib in your classpath ?
        Probably is webApp/WEB-INF/lib in the classpath that's why it works.

        Charlie

             -----Message d'origine-----
             De:
        o=INTERNET;p=CREDIT-AGRICOLE;a=ATLAS;c=FR;dda:rfc-822=mjung(a)kodak.com;
             Date:     mardi 19 février 2002 15:01
             À:
        
o=INTERNET;p=CREDIT-AGRICOLE;a=ATLAS;c=FR;dda:rfc-822=log4j-user(a)jakarta.apache.org;

             Objet:    issue with xml configuration

             From: Marie Jung
             Hello,

             I have an issue with the initialization of log4j with a xml file.
        log4j is
             not seeing the custom appender I have made.
             I have try to put the log4j.jar in
                  $CATALINA_HOME/common/lib
                  and in $CATALINA_HOME/lib
             with MyPackage.MyAppender in
             webApp/WEB-INF/classes/MyPackage/MyAppender.class

             I have  the following error :

             log4j:ERROR Could not create an Appender. Reported error follows.
             java.lang.ClassNotFoundException: MyPackage.MyAppender
                     at
        
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)

                     at
        
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)

                     at
        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
                     at java.lang.Class.forName0(Native Method)
                     at java.lang.Class.forName(Class.java:120)
                     at
        org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:159)

                     at
        
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:144)

                     at
        
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfCategoryElement(DOMConfigurator.java:361)

                     at
        org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:330)
                     at
        org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:693)
                     at
        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:593)
                     at
        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:527)
                     at
        org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:606)

             If I put the log4j.jar in webApp/WEB-INF/lib everything is working
        fine. It
             looks like it is an issue with the classloader, but looking at :
             http://jakarta.apache.org/log4j/docs/TROUBLESHOOT.html
             I don't see what I am doing wrong,

             Any help would be appreciate. Thanks in advance,

             Marie


             --
             To unsubscribe, e-mail:   <
        mailto:[EMAIL PROTECTED]>
             For additional commands, e-mail: <
        mailto:[EMAIL PROTECTED]>



        --
        To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]
        >
        For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
        >








        --
        To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
        For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to