Log4j and Jboss are acting weird

This question is reagards to Log4j and JBoss and I thought this is the best place to ask this question.
I am using Jboss 3.2.3. My purpose was to log messages in a seperate file "developer.log" using Log4j. These messages has to be logged in this file only. So in my WAR's folder under WEB-INF/classes I created a file log4j.properties:
log4j.logger.standard=DEBUG, devlog
log4j.appender.devlog=org.apache.log4j.RollingFileAppender
log4j.appender.devlog.File=C:/logs/developer.log
log4j.appender.devlog.layout=org.apache.log4j.PatternLayout
log4j.appender.devlog.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%nNow my code :
import org.apache.log4j.Logger;
private static Logger log = Logger.getLogger("standard");
log.debug("a debug message");
log.info("a info message");
log.warn("a war message");I test run this code without Jboss and it works perfect. It created a file "developer.log" in the desired location and logs messages in it.
Now i run with JBoss. JBoss does not create "developer.log" file at all. Instead it logs all the messages in server.log
2005-09-30 23:07:35,459 DEBUG [standard] a debug message
Jboss is recognizing that it is standard but after that it is not gving me the desired results. Any input on how to fix this problem?
TIA

You can tell it you don't want to inherit, by adding
this to your "standard" category tag:
<category name="standard" additivity="false">
thanks. it works perfect.
ok i got it working kind of. Jboss already comeswith
a log4j.xml so i put my log4j stuff in this file :You should be able to deploy your own log4j.xml with
your app's resource files and make it use yours when
it is running your app.Ok I took out my stuff from Jboss log4j.xml, create a new xml progtest.log4j.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  <appender name="DEVLOG" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="${jboss.server.home.dir}/log/developer.log" />
    <param name="Append" value="true" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
    </layout>
  </appender>
  <category name="standard" additivity="false">
    <priority value="INFO"/>
    <appender-ref ref="DEVLOG" />
  </category>
</log4j:configuration>My web application is in a ProgTest.WAR folder. I put the above file "progtest.log4j.xml" under WEB-INF/classes in ProgTest.WAR folder. When i run the app the very first problem again arises that no developer.log file was created; instead the concerned messages were put into server.log and console.
All my classes are in one jar file. I include progtest.log4j.xml in that jar file, redeploy it and test it but still the same problem.
What i am doing wrong here?
Thanks

Similar Messages

  • Is there some new type of crash at the moment? My BB Pearl emails are acting weird a

    My BB Pearl emails are acting weird again, very similar like in the previous outage!

    Hey bravopaololondon,
    Are you still having issues with your email on your BlackBerry smartphone? If you are you can try clear the service book database. 
    How to clear the user content databases from the BlackBerry smartphone
    How to send service books to the BlackBerry smartphone for BlackBerry Internet Service
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Lumia 720: Power and camera button act weird

    Hi,
    My Nokia Lumia 720 is acting weird.
    The camera button doesn't work and so does the power button.
    However if I press the volume down and the power button simultaneously the button does work.
    Does anyone know how to fix this?
    I've already brought the phone back to the default settings.
    I'm running the latest developer preview if that matters.
    -- Mathijs
    Solved!
    Go to Solution.

    That's great to hear, Mathijs. If you need further assistance in the future, don't hesitate to post again here in the forum and let our community help you. 
    Cheers! 

  • I have an iPod Touch 4th Generation and it's acting weird. It looks to be something like a calibration error but i don't exactly know. It won't let me tap letters and symbols such as ' ; R and D'. Help?

    So my iPod Touch forth gen is acting up. When i try to slide the button to unlock the lock screen, it slides back. It takes several tries for me to do that. I'm able to tap the numbers for the code, but when i try to send messages to my friends or write one of my fanfictions, it goes haywire. It'll enter in letters and words that i didn't even tap on. When i try to tap on a couple of things in particular, it ignores it. '; R D and ~' are some of the letters and symbols that I'm having issues with. Can someone please tell me what's going on? I've restarted it dozens of times, re-entered my passcode, deleted data, and even re-downloaded the keyboards a couple of times. Help!

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • Log4j and JBoss issue

    Hi ,
         I am working in Log4j for my web application.
         I am using Eclipse2.1, Log4j 1.2.8, JBoss 3.2.2
         I am having problem in the log4J concepts.
         I am using my own Logger.java.
         I have set the root category in the Log4j.properties to the WARN.I am using File appender.
         Then I have used log.debug(), log.info(), log.warn(), log.error(), log.fatal() in my applications.
         Even when I set the root category as WARN, it enabling all levels and appending the information of all the levels in the file.
         So I started to analyze the code.
         So I set the eclipse in debug mode and stated the application.
         When it comes to the line logger.log() , when I place the cursor on
              1) logger - it shows org.apache.log4j.Category
              2) log - it shows as org.jboss.logging.Logger
         So I understand that, it inherits the log4j properties from the jboss.
         So all the levels get enabled.
         So i want to know, how to override or disable the Jboss's inbulit Log4j.
         Please help in this tough suitation. I am trying this for last 2 days.
    Thanks and Regards
    Mohan.

    This question is off topic for this forum. In the future please only post specific questions about Sun's J2EE SDK and its related technologies. For this type of question why not try the JBoss forums or the Log4J mailing list.
    http://jboss.org/index.html?module=bb
    http://logging.apache.org/log4j/docs/contactUs.html

  • CC latest update...layers are acting weird

    I just update Photoshop cc for a iMac 2011 Maverick OS
    Now every so often/ most often... PS will not let me select the layer. or also...I have a layer selected but try to work on it and i get a warning that I need top select a target area l layer?.. ?
    started acting up once I updated so wondering if this is a bug yet?..the only fix is to close down my file and reopen it..works for a few more min. before again acts up?...
    really frustrating
    Dan

    What is the exact wording of the alert?
    What are you doing exactly (which Tools do you use, are Selections active, …)? (edited)
    What have you done for general trouble-shooting so far?
    Photoshop: Basic Troubleshooting steps to fix most issues

  • Since windows 8.1 usb ports and sound are acting strange

    Hello,
    Since I upgraded to windows 8.1 my sound randomly stutters(very anoying) and my usb ports get turned off, only the ports that have been occupied since boot, new things work, and not reinsterting the things that were present at boot, in the same or a different
    port doesn't work.
    Hell, why do we pay for an OS that doesn't even work?
    I expect that something as simple as an USB port or sound would work just fine.
    I have installed all the latest drivers but somehow windows seems to screw things up.
    When I boot up debian, I have no problems at ALL. And did I pay a dime for Debian? No, it is free.
    I am getting really depressed here, paying for stuff that doesn't work.
    So does anyone know any other way to fix this OS than by breaking the disc and never return to it?
    Thanks in advance.

    To whom are you telling that, this is an end user forum.
    If you have problems than contact Microsoft in your country.
    http://www.microsoft.com/worldwide/
    Success
    Cor

  • I just got a new iMac and quicktime is acting weird

    Movie files from the internet are downloading to the desktop before they play and if it is a wmv file it just opens text edit and shows jibberish.
    on my macbook it opens a quicktime window and downloads to that and plays there, or in the webpage in an imbedded player.
    how do i go back to playing in an imbedded or a quicktime player window instead of default downloading?
    O and i almost forgot, im already downloading flip 4 mac to solve the wmv problem
    Message was edited by: John Novi

    Hi John....glad you figured it out. I found that F4M works for most wmv content, but there are a few other items you might want to have in your video toolkit. Occasionally, content providers will offer up variations on the wmv theme and these things may help:
    VLC
    Perian
    Streamclip

  • My macbook pro keyboard has stopped working overnight. The DEL button, along with O and P are acting strange. The DEL button is adjusting screen brightness and the O isnt working at all. Is this hardware related? or a software issue?

    The left side of the keyboard seems to be working fine but the DEL button and other buttons are doing strange commands. The DEL button is adjusting the brightness and other F commands.
    The O is not working at all. Some other letters are coming up with other characters.

    Try a different keyboard with your computer if possible. If it woks well, it's a hardware problem.
    http://support.apple.com/kb/TS1381?viewlocale=en_US

  • Need some help, things are acting weird.

    Hey all
    Not sure if this is the right place for this topic but i've run into something strange and was wondering if i could get some help fixing it.
    I've noticed 2 things that are kind of strange that have been going on with my system lately. The first one is whenever any of my browsers reach the point of downloading a file (off of sites like macupdate, torrent sites, etc...) it just hangs on the screen and never actually downloads the files unless i go back and right click and 'save link as'. Now when I go to the same site with my powerbook running the same OS it doesn't have a problem.
    Also, another big problem is certain installers (such as some vise ones) cause problems where they A: don't open at all or B: get to the point of the install and then just hang with a beach ball forever. Again when i run the same installers on my powerbook they seem to work just fine.
    The computer in question is a Powermac G5 running OS X 10.4.9
    I haven't upgraded to anything higher because I am a pro tools user and so far with this setup pro tools has not given me any issues.
    If anyone has any suggestions that would be great.
    Thanks a lot.
    Cheers

    Besides Thomas' great advice on DW, (worth it's weight in gold)...
    I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files!
    Disconnect the USB cable from any UPS so the system doesn't shut down in the middle of the process.

  • Some of my keyboard Buttons are acting weird ..

    It was working fine suddenly some problem occurred. Like my 9,O,L buttons are working but when i press right shift+9 (or O,L) it doesn't work.. but left shift works with those buttons. and the right shift works with other buttons as well.... Can some one help me? I am using a late 2009 iMac 27" .. I will appreciate your help. thank u........

    You have a 1-year warranty, and can buy AppleCare to extend it to 3.
    Take it to a Genius Bar since we are just users and we can olny guess.  Also, any cost estimate we give would be just a wild-a$$ guess, which you do not need.

  • 3D Bevel and Extrude Effect acting weird

    When I do Bevel & Extrude on a font, or object, or whatever...sometimes I get this...
    http://img.photobucket.com/albums/v611/rogval/AIScreenShot.jpg
    And my settings are very low as you can see here...
    http://img.photobucket.com/albums/v611/rogval/AISettings.jpg
    So why does this happen?
    Thanks
    Roger

    I'm sorry...you're right and I know better...I just forgot to put that bit in. It's CS3.
    So I've made my text into outlines, and when I go to Object> Path> Offset Path, I get "Offset Path" window that comes up that has an "Offset" window where you can change the values, "Joins" which you can choose from Miter, Bevel, & Round, and then the "Miter Limit" and the "Preview" check box, which you can obviously toggle on and off. I've tried all different combinations, None of which give me anything like what the 3D effect did. The only thing I noticed was it basically will make a duplicate path either larger or smaller than your existing paths/shape, or whatever you want to call it. So I am assuming I am missing something here?
    Thanks
    Roger

  • Keypad and touchpad acting weird

    The touchpad and keypad are acting strange. When browser open, touching anything on the page makes a box window pop-up (not always the same one)
    If I click on the search box and try to type, nothing happens and a box pops up.

    If the box looks like this, then voiceover is on.  You can turn it off by hitting CMD fn F5 or going to System Preferences > Universal Access > seeing tab > voiceover: off.
    Captfred

  • My macbook trackpad is acting weird

    I was working on my MacBook Pro and it start acting weird, it would go all over the place and it would zoom in and zoom out, go back and forth pages it was crazy. I shut it down for couple hours then I opened it and it was ok for couple a minutes then it would go crazy all over again. Any suggestions?

    i would try SMC reset the following article tells how to do this:
    http://support.apple.com/kb/HT3964
    if still doesn't work right may need to take to apple store or service provider to have it looked at. the following link tells how to find these close to you:
    https://locate.apple.com

  • Camera app acting weird - not saving photos - iphone 6 plus

    I just got my iphone 6 plus... I'm trying to use the stock camera app and it's acting weird.  I'm able to focus and take a photo... after I take a pic, you know how the little thumbnail of that photo appears on the bottom left of the app?  You should be able to touch that and then view in full screen your last pic, right?  Well here is when it starts acting up... When I touch it, nothing happens!  I exit the app and go to the photos app and my picture isn't there!  The app doesn't appear to freeze - as I can still view the screen and what the camera is looking at!  Before the 1st photo is "taken" I am able to choose between any of the photo types (square, pano, video, slo mo, time lapse)... but the same thing will happen no matter which photo I choose.  If I pick a video, the video begins and then the touch part doesn't work... the video will run on 'forever' or until i press the home button - in which case the video isn't saved.
    I have restarted my phone many times... and even done the power cycle (where you hold the sleep/lock and home button at same time)
    Any ideas?  Please help - this is a 2 day old phone and the camera doesn't work properly.
    What is really weird is that I can post a photo taken by instagram with no problem.. I can also use the Camera Awesome app but the photos aren't saved in the photos app... even if I try to export to camera roll in camera awesome!
    Thanks

    Hey Bender1031,
    Thanks for the question, I can definitely understand how frustrating this issue may be with a brand new phone. Great troubleshooting so far by already attempting a restart and reset. If the issue persists, let’s try restoring your device and updating to the latest software (iOS 8.0.2):
    Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/HT4137
    After erasing and setting up as a new device, your device is now in a factory configuration. Test to determine if erasing and setting up as a new device resolved the issue. Content on the device may have caused unexpected behavior.
    - If the issue is still present, you may want to contact Apple Support.
    - If the issue is now resolved, sync one type of content at a time back to the device. For example, if you had an issue playing music, add songs from iTunes and confirm they will play. If your contacts weren't loading successfully, add the contacts back. After each sync, test to see if the issue has returned.
    Thanks,
    Matt M.

Maybe you are looking for

  • Date format in Table Editor

    I am using Oracle 8.1.7. I tried to set the date format by setting the NLS_DATE_FORMAT variable, but it worked for sqlplus only. How can I set it for the Enterprise Manager's Table Editor? Thanks

  • Using textboxes in insert command

    Sir, I had a doubt about insert command while I was trying to give the content of the swing text boxes as the arguments to the insert command.Is it possible?.How can i give values to the fields of a table through GUI components.

  • Can't adjust video levels in capture tool

    I'm using a Blackmagic Multibridge Pro as my I/O but when I try to digitize, the video input levels are hot. i want to adjust them in the capture tool but it's grayed out. I'm capturing from a Beta SP deck with a component signal. Anyone know how to

  • XML News content modification problem in Portal application

    Hi, We are trying to update the xml news content in Portal application with KM API. We are getting following exception while updating the content. javax.xml.transform.TransformerException: Namespace fixup failed. Prefix 'xsi' used in attribute 'xsi:n

  • How the system know a device is removable

    Something I find rather insecure is the way devices can be mounted by end user. In a usual configuration users are allowed to mount "removable" devices with a desktop application (that I believe use dbus). How the system does know a device is removab