Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Log4j is not logging after JBoss start finish

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with Log4j log. The JBoss is not logging after the start.
Server log is not empty. It contains all valid logging info up to the
point where JBoss finishes loading. The last entry is:


2005-08-17 00:18:48,369 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting
2005-08-17 00:18:48,787 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5'
2005-08-17 00:18:48,844 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2005-08-17 00:18:48,844 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2005-08-17 00:18:49,082 INFO [org.apache.struts.util.PropertyMessageResources] Initializing, config='br.com.unimed.ApplicationResources', returnNull=true
2005-08-17 00:18:49,105 INFO [org.apache.struts.validator.ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validator-rules.xml'
2005-08-17 00:18:49,161 INFO [org.apache.struts.validator.ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml'


The Log4j service was started (I can see the message in boot.log) and my log4j.xml is:




Someone can help me?

Thank you,
Leonardo Oliveira
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Leonardo,

do you supply your own log4j jar with the web application you're deploying? If so, this might be the reason for JBoss no longer logging. I've got the same problem where I use a 3rd party API that subclasses the log4j LoggerFactory, and this seems to interfere with JBoss' version of log4j. The effect is the same as you describe, no more logging. So, if you can rip out the log4j from your web app, try that ... if not (like in my case), I don't know ... if you come across a solution, please post it, I'd be interested in it as well!

- Stefan
 
Those are the largest trousers in the world! Especially when next to this ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic