tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Prasetya" <andre.prase...@gmail.com>
Subject strange log4j behaviour
Date Thu, 22 Feb 2007 05:38:47 GMT
Hi,

I m using tomcat 5.5 and we're hosting 5 application. The problem is that 1
of the application is not doing the log as expected. We're using commons
logging and log4j. All of the log4j config is similar. and this is the log4j
config file

log4j.rootLogger=INFO,STDOUT,FILE

log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1} -
%m%n

log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.DatePattern=yyyy-MM-dd
log4j.appender.FILE.layout.ConversionPattern=%5p %d{HH:mm:ss} [%t] %c{1} -
%m%n
log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender

log4j.appender.FILE.File=/opt/gateway/logs/LegacyEngine.log

log4j.logger.com.mchange=WARN
log4j.logger.com.csp=INFO
log4j.logger.com.ricochet=INFO

what we're doing is : all of the codes are saved as a jar, these jar then
placed at WEB-INF/lib at the war. those 4 applications that succeeded at
logging, only use jars at the lib and not using any codes at classes. But
the troublesome application, have classes placed at WEB-INF classes and logs
from these classes are not logged properly at the log files. any insights ?

for reference, this is the structure of the trouble some application :

Archive:  heart.war
  Length     Date   Time    Name
 --------    ----   ----    ----
       39  02-21-07 14:09   META-INF/MANIFEST.MF
        0  01-24-07 11:11   WEB-INF/classes/com/ricochet/j2ee/
     4900  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/ApplicationUtil.class
      395  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/dao/ContentNotExistException.class
      335  02-15-07 14:19   invalid_request_id.wml
     1313  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/dao/LegacyContentDao$2.class
      388  02-15-07 14:19   no_service.wml
       65  09-13-06 17:11   index.html
    84462  02-21-07 14:09   WEB-INF/lib/commons-validator.jar
   188671  02-21-07 14:09   WEB-INF/lib/commons-beanutils.jar
   571259  02-21-07 14:09   WEB-INF/lib/commons-collections.jar
     1021  02-19-07 16:42
WEB-INF/classes/com/ricochet/database/ConnectionPoolFactory.class
    18905  02-21-07 14:09   WEB-INF/lib/base.jar
   367444  02-21-07 14:09   WEB-INF/lib/log4j-1.2.14.jar
   446464  02-21-07 14:09   WEB-INF/lib/mysql.jar
   226877  02-21-07 14:09   WEB-INF/lib/jaxen-1.1-beta-7.jar
     9537  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/ServiceProcessor.class
     4516  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/bean/WapMessageBean.class
        0  12-28-06 16:08   META-INF/
    35695  02-21-07 14:09   WEB-INF/lib/md-bean.jar
        0  12-28-06 15:29   WEB-INF/
      227  02-15-07 14:20   success_download.wml
      231  01-31-07 19:02   META-INF/context.xml
        0  12-19-06 02:28   WEB-INF/classes/com/ricochet/database/
        0  01-25-07 13:56   WEB-INF/classes/com/ricochet/
     1302  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/bean/RawContent.class
    79151  02-21-07 14:09   WEB-INF/lib/qdox-1.5.jar
   279781  02-21-07 14:09   WEB-INF/lib/commons-httpclient.jar
    96529  02-21-07 14:09   WEB-INF/lib/commons-javaflow.jar
     2539  02-16-07 15:40   WEB-INF/web.xml
        0  01-25-07 14:11   WEB-INF/classes/com/ricochet/ems/bean/
   313898  02-21-07 14:09   WEB-INF/lib/dom4j-1.6.1.jar
     2274  02-19-07 16:42
WEB-INF/classes/com/ricochet/database/Query.class
     6382  02-21-07 14:08
WEB-INF/classes/com/ricochet/service/ContentProcessor.class
    16146  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/WapReceiverServlet.class
   134104  02-21-07 14:09   WEB-INF/lib/sunjce_provider.jar
   168446  02-21-07 14:09   WEB-INF/lib/commons-digester.jar
     1526  02-19-07 16:42
WEB-INF/classes/com/ricochet/j2ee/LegacyEngineStarter.class
        0  01-25-07 14:11   WEB-INF/classes/com/ricochet/ems/dao/
   243016  02-21-07 14:09   WEB-INF/lib/commons-lang.jar
    46725  02-21-07 14:09   WEB-INF/lib/commons-codec.jar
        0  01-25-07 17:00   WEB-INF/classes/com/ricochet/service/
      266  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/dao/ContentDao.class
     2581  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/SubscriptionWapPageServlet.class
     3730  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/SoapMessageGenerator.class
     4475  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/DigiChargeMT.class
      283  02-15-07 14:20   product_not_available.wml
        0  12-19-06 02:28   WEB-INF/classes/com/ricochet/system/
     9081  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/SubscriptionDownloadServlet.class
    18524  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/ServiceConstants.class
      265  02-15-07 14:20   product_downloaded.wml
    61562  02-21-07 14:09   WEB-INF/lib/commons-io.jar
    75549  02-21-07 14:09   WEB-INF/lib/md-logic.jar
   103101  02-21-07 14:09   WEB-INF/lib/xmlizable.jar
     2021  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/DigiSecurityUtilWAP.class
        0  12-28-06 17:14   WEB-INF/lib/
  2593850  02-21-07 14:09   WEB-INF/lib/spring.jar
   107631  02-21-07 14:09   WEB-INF/lib/commons-dbcp.jar
     3971  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/DownloadServlet.class
     3114  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/dao/LegacyContentDao.class
     1339  02-19-07 16:42
WEB-INF/classes/com/ricochet/ems/dao/LegacyContentDao$1.class
     3051  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/SubscriptionWapServlet.class
    62103  02-21-07 14:09   WEB-INF/lib/commons-pool.jar
      274  02-15-07 14:19   back_page.wml
    18601  02-21-07 14:09   WEB-INF/lib/md-content-base.jar
     3075  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/DESProcessor.class
        0  12-19-06 02:28   WEB-INF/classes/com/ricochet/service/bean/
    74869  02-21-07 14:09   WEB-INF/lib/jce1_2_2.jar
        0  01-25-07 14:11   WEB-INF/classes/com/ricochet/ems/
     5914  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/MaxisChargeMT.class
        0  12-19-06 02:28   WEB-INF/classes/com/
    52915  02-21-07 14:09   WEB-INF/lib/commons-logging.jar
     2165  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/WapMsisdnServlet.class
     3991  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/EasyMessageParser.class
    20318  02-19-07 16:42
WEB-INF/classes/com/ricochet/util/DatabaseUtil.class
      237  02-15-07 14:20   phone_not_supported.wml
        0  01-25-07 17:12   WEB-INF/classes/com/ricochet/util/
     1472  02-19-07 16:42
WEB-INF/classes/com/ricochet/system/SystemConfiguration.class
    71442  02-21-07 14:09   WEB-INF/lib/commons-discovery.jar
     3245  02-19-07 16:42
WEB-INF/classes/com/ricochet/service/CelcomChargeMT.class
        0  12-28-06 16:01   WEB-INF/classes/
    31909  02-21-07 14:09   WEB-INF/lib/commons-fileupload.jar
 --------                   -------
  6701487                   82 files

while the applications that logs properly, the structure is as follows :
Archive:  md-request-terminal.war
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-22-07 12:05   .myeclipse/
        0  02-22-07 12:05   META-INF/
       39  02-22-07 12:05   META-INF/MANIFEST.MF
      262  02-22-07 12:05   META-INF/context.xml
        0  02-22-07 12:05   WEB-INF/
        0  02-22-07 12:05   WEB-INF/classes/
        0  02-22-07 12:05   WEB-INF/lib/
    18808  02-22-07 12:05   WEB-INF/lib/base.jar
   188671  02-22-07 12:05   WEB-INF/lib/commons-beanutils.jar
    46725  02-22-07 12:05   WEB-INF/lib/commons-codec.jar
   571259  02-22-07 12:05   WEB-INF/lib/commons-collections.jar
   107631  02-22-07 12:05   WEB-INF/lib/commons-dbcp.jar
   168446  02-22-07 12:05   WEB-INF/lib/commons-digester.jar
    71442  02-22-07 12:05   WEB-INF/lib/commons-discovery.jar
    31909  02-22-07 12:05   WEB-INF/lib/commons-fileupload.jar
   279781  02-22-07 12:05   WEB-INF/lib/commons-httpclient.jar
    61562  02-22-07 12:05   WEB-INF/lib/commons-io.jar
    96529  02-22-07 12:05   WEB-INF/lib/commons-javaflow.jar
   243016  02-22-07 12:05   WEB-INF/lib/commons-lang.jar
    52915  02-22-07 12:05   WEB-INF/lib/commons-logging.jar
    62103  02-22-07 12:05   WEB-INF/lib/commons-pool.jar
    84462  02-22-07 12:05   WEB-INF/lib/commons-validator.jar
   313898  02-22-07 12:05   WEB-INF/lib/dom4j-1.6.1.jar
   226877  02-22-07 12:05   WEB-INF/lib/jaxen-1.1-beta-7.jar
   367444  02-22-07 12:05   WEB-INF/lib/log4j-1.2.14.jar
    37130  02-22-07 12:05   WEB-INF/lib/md-bean.jar
    80178  02-22-07 12:05   WEB-INF/lib/md-logic.jar
   446464  02-22-07 12:05   WEB-INF/lib/mysql.jar
    79151  02-22-07 12:05   WEB-INF/lib/qdox-1.5.jar
  2593850  02-22-07 12:05   WEB-INF/lib/spring.jar
     1248  02-22-07 12:05   WEB-INF/web.xml
        0  02-22-07 12:05   build/
        0  02-22-07 12:05   build/classes/
 --------                   -------
  6231800                   33 files

any insights ?

-- 
-Andre-

People see things the way they are and say "why ?" I see things that never
were and say "Why not ?"

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message