Hello Ceki,

I suppose it's not the problem with SSL. I didn't
tried it....but i m not getting any
exception...actually tomcat is not loading the
log4j-1.2.8.jar while startup. Why i m saying this is
b'coz..in log4j configuration i set debug="true"..so
that i can see the process...but, in the tomcat
console i m not getting the classes initialisation.
This is the reason that i m getting my log files..but,
with no messages.

How can i make tomcat to load my log4j.jar. It's in
webapps\myapp\WEB-INF\classes\lib\log4j-1.2.8.jar

Please guide.
thanks and regards

--- Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> 
> Can you provide the exception? Also, does using
> log4j 1.2.8 change 
> anything? Your problem might also be related to 
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17323
> 
> At 10:29 AM 2/26/2003 -0800, you wrote:
> >Hello All,
> >
> >
> >I am facing the following problem. I am using a
> >log4j.xml file for logging different levels of
> >messages to different files and also a main log
> file
> >and a SMTPAppender for any fatal error and email
> >notification. The following is the log4j.xml file.
> >
> >
> ><?xml version="1.0" encoding="Shift_JIS" ?>
> ><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> ><log4j:configuration  debug="true"
> >xmlns:log4j='http://jakarta.apache.org/log4j/'>
> >   <!--  -->
> >   <appender name="AI"
> >class="org.apache.log4j.FileAppender">
> >         <param name="Threshold" value="INFO" />
> >     <param name="File"   value="main.log" />
> >     <layout
> class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="%d %c
> %l
> >- %m%n"/>
> >     </layout>
> >     <filter
> >class="org.apache.log4j.varia.LevelRangeFilter">
> >       <param name="LevelMin" value="INFO" />
> >       <param name="LevelMax" value="FATAL" />
> >       <param name="AcceptOnMatch" value="true" />
> >     </filter>
> >   </appender>
> >
> >   <!-- -->
> >   <appender name="DEBUG"
> >class="org.apache.log4j.FileAppender">
> >     <param name="Append" value="true" />
> >     <param name="File"   value="debug.log" />
> >     <layout
> class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="%d %c
> %l
> >- %m%n"/>
> >     </layout>
> >     <filter
> >class="org.apache.log4j.varia.LevelRangeFilter">
> >       <param name="LevelMin" value="DEBUG" />
> >       <param name="LevelMax" value="DEBUG" />
> >       <param name="AcceptOnMatch" value="true" />
> >     </filter>
> >   </appender>
> >
> >   <!-- -->
> >   <appender name="ERROR"
> >class="org.apache.log4j.FileAppender">
> >     <param name="Append" value="true" />
> >     <param name="File"   value="error.log" />
> >     <layout
> class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="%d %c
> %l
> >- %m%n"/>
> >     </layout>
> >     <filter
> >class="org.apache.log4j.varia.LevelRangeFilter">
> >       <param name="LevelMin" value="ERROR" />
> >       <param name="LevelMax" value="ERROR" />
> >       <param name="AcceptOnMatch" value="true" />
> >     </filter>
> >   </appender>
> >
> ><!-- -->
> >   <appender name="FATAL"
> >class="org.apache.log4j.FileAppender">
> >     <param name="Append" value="true" />
> >     <param name="File"   value="fatal.log" />
> >     <layout
> class="org.apache.log4j.PatternLayout">
> >       <param name="ConversionPattern" value="%d %c
> %l
> >- %m%n"/>
> >     </layout>
> >     <filter
> >class="org.apache.log4j.varia.LevelRangeFilter">
> >       <param name="LevelMin" value="FATAL" />
> >       <param name="LevelMax" value="FATAL" />
> >       <param name="AcceptOnMatch" value="true" />
> >     </filter>
> >   </appender>
> >
> ><appender name="EMAIL"
> >class="org.apache.log4j.net.SMTPAppender">
> >                 <param name="Threshold"
> >value="FATAL"/>
> >                 <param name="SMTPHost"
> >value="10.0.99.75"/>
> >                 <param name="To"
> >value="[EMAIL PROTECTED]"/>
> >                 <param name="From"
> >value="[EMAIL PROTECTED]"/>
> >                 <param name="Subject" value="Fatal
> >Error comes up in IA--Testing"/>
> >                 <param name="BufferSize"
> value="1"/>
> >
> >                 <layout
> >class="org.apache.log4j.PatternLayout">
> >                         <param
> >name="ConversionPattern" value="%d{ABSOLUTE}(%F:%L)
> -
> >%m%n"/>
> >                 </layout>
> ></appender>
> >   <root>
> >     <appender-ref ref="AI" />
> >     <appender-ref ref="DEBUG" />
> >         <appender-ref ref="ERROR" />
> >         <appender-ref ref="FATAL" />
> >         <appender-ref ref="EMAIL" />
> >   </root>
> ></log4j:configuration>
> >
> >The following is the way in my jsp code:
> >
> >org.apache.log4j.Logger log =
> >org.apache.log4j.Logger.getLogger("Check.jsp");
> >java.net.URL url = new
>
>org.apache.log4j.helpers.Loader().getResource("log4j.xml");
> >if(url == null){
> >System.out.println("Things are not going good.");
> >}else{
>
>org.apache.log4j.xml.DOMConfigurator.configure(url);
> >}
> >
> >log4j.xml is placed at webapps\classes\log4j.xml,
> so
> >that it can be picked up from class loader.
> Moreover,
> >log4j-1.2.7.jar is also at classpath.
> >
> >All the things except the main.log works fine under
> >tomcat 4.0.3. But, in case of Tomcat
> 4.1.18...nothing
> >works up. The inclusion of SMTPAppender gives
> jasper
> >exception for javax/Mail/Multipart.
> >
> >Even the mail.jar is in Tomcat base dir\common\lib.
> >
> >What could be the problem?? I am doing something
> wrong
> >somewhere. Please consider that i m using the code
> >with jsp and not in java classes. I am struggling
> with
> >such inconsistency from last one week. Please guide
> >me. It's really urgent.
> >
> >
> >Thanks and regards
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Tax Center - forms, calculators, tips, more
> >http://taxes.yahoo.com/
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> --
> Ceki 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Reply via email to