Why only one appender works

I use jboss cluster, and I want separate server.log and cluster.log.
treat file and console appender as root.
before I add cluster appender, every thing works fine. but after I add cluster appender, only cluster.log work, server.log is empty.
are someone can help me out.
Thank you very much
source log4j.xml is in the following:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<!-- Size based rolling appender -->
<appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
<!-- <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> -->
<param name="File" value="${jboss.server.home.dir}/log/cluster.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
<!-- <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>-->
<param name="File" value="${jboss.server.home.dir}/log/server.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<!-- <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>-->
<param name="Target" value="System.out"/>
<param name="Threshold" value="ERROR"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
<!-- Limit JBoss categories to INFO -->
<category name="org.jboss">
<priority value="DEBUG"/>
<appender-ref ref="FILE" />
</category>
<category name="org.jgroups">
<priority value="DEBUG"/>
<appender-ref ref="FILE" />
</category>
<category name="org.apache">
<priority value="INFO"/>
</category>
<category name="org.jgroups">
<priority value="DEBUG" />
<appender-ref ref="CLUSTER"/>
</category>
<category name="org.jgroups.protocols.UDP">
<priority value="DEBUG" />
<appender-ref ref="CLUSTER"/>
</category>
<category name="org.jboss.ha">
<priority value="DEBUG" />
<appender-ref ref="CLUSTER"/>
</category>
</log4j:configuration>

Hello, you might get better answer in either J2EE forums, or in JBoss.org forums.
When cross posting, it is polite to include a link to the orginal thread (this one).

Similar Messages

  • HT204266 Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i do?

    Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i have to do?

    You can try cleaning the headphone jack. However, I suspect that th headphone jack needs replacement.
    Apple will only exchange your iPod for a refurbished one for this price.
    Apple - Support - iPod - Repair pricing
    A third-party place like the following is less expensive. Google for more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Why does only one headphone work on my ipod. it is not my headphones.

    when i plug my headphones into my ipod only one will work, unless i pull it out a little bit. i just bought a 70 dollar pair of wireless headphones and only one will work. i know it is not the headphones it is definetly the ipod. any way to help?

    Call Apple.

  • It seems I cannot use Sky Go even if I use Firefox. The only one that works is IE 11.

    I was using Google Chrome, but it seems they do not support Silverlight which Sky Go use. I was told that Firefox would work. It doesn't. The only one that works is Internet Explorer 11, which is very slooow. Why can't I use Firefox to view Sky Go?

    My Sky homepage. If I want to watch cricket say, it come up with ' sky go unavailable at this present moment'. If I log on to my IE 11, sky go works Ok. I have the Silverlight add-on or plug-in whatever you call it.
    Still no joy in Firefox.

  • When I plug in headphones or use audio jack only one speaker works.

    I have an iphone 4g.  When I plug in headphones only one side works.  When I plug into my car audio jack...only one car speaker works. 

    There is only one speaker, the other side is the microphone.

  • I've placed two Edge oam files in to a dps doc and only one will work, can anyone help?

    Hi, I've created one animation and tested it in dps and it works fine. I've repeated this and my second animation is fine also, but when I have them in the same doc only one will work.
    Has anyone had this problem or know of any suggestions?
    I'm using Edge CC and Indesign CC with the latest viewer release on my iPad.
    Thanks

    Hi, yes I'm using the most up to date tools (v27). I've tried also setting the delays to various different increments, this doesn't make a difference.
    Although this is an old post I wonder if it is the same issue - http://forums.adobe.com/message/5615731#5615731
    Thanks

  • HT2995 Only one speaker works when playing music. Is this normal?

    Only one speaker works when playing music. Is this normal?

    This being the Mac mini forum, I naturally presumed you were asking about a mini. But in any case, there's only speaker in an iPhone as well.
    Regards.

  • I'm not happy at all with my Ipad I only had it for a few monthes and I found a lot of things wrong with it like it wont charge only one earbud works when i watch videos or listen to music but both work when I'm facetiming

    I'm not happy at all with my Ipad I only had it for a few monthes and I found a lot of things wrong with it like it wont charge only one earbud works when i watch videos or listen to music but both work when I'm facetiming

    Contact Apple to take advantage of your standard 1 year warranty.

  • Why only one client ???

    Why only one client is possible for one server in case of BW ?? And why it is not the case in R/3???

    Hi,
    have a look at sap help:
    Clients in BW:
    http://help.sap.com/saphelp_nw04/helpdata/en/b7/8a9a3aaf894871e10000000a114084/content.htm
    Assign points if its helpful.

  • Why is 1080i the only one that works for my slideshow.

    Well... I'm getting to my breaking point.
    First my system.. Mac Pro 2.66 2x300gb raid 0. x1900 ACD 30
    5gb Ram
    I have read many many posts.. but I still need your help.
    I have found that the only thing that gives me a marketable slideshow in terms of quality images is to make a slideshow in imovie under 1080i.
    The problem with this is that it really really slows my computer down, and I don't want to do this with a slide show of about 150 images per client, and then have wait more for transistions.
    Shouldn't I start a new slideshow in "DV" setting for a 4x3?
    I have tried reducing res from 10.2 mp to a 1024x??? settting for images (depending on orientation). All I seem to lose here is a bit of sharpening as I reduce the image resolution, which makes sense if I understand correctly.
    So... Where to go from here.
    I read the posts.. and have determined that I can use Photo to move (which I have) to make clips and import them into Imovie. Again, a slow process as each clip has to be done seperatly. Is there another way with PTM, because it does render the best Ken burns effect I have seen. Again 150 images is too long to wait to make a slide show of a wedding, not cost effective for me.
    Hope someone can help.

    Anyone??
    When I make a movie in 1080 or 720.. it takes alot of resources and slows things down.
    Just wondering why choosing those options are the only ones that seem to work
    I really need to get it into 4x3 format too.

  • HD slideshow is the only one that works for me.. WHY??

    I have a new mac pro with lots of hd and ram 5GB.. so I don't think its my system.
    What I need to know is that I can make an acceptable slideshow if
    1) I lower the resolution of my photos from 3884x2600 to about 1024x1024
    2) I create a imovie 720hd or 1080i HD.
    ANY other format creates a lousy final picture quality when viewed on the TV. I get a shimmering, but not so noticible jaggies as some have posted. If I keep the photo still and not use KB.. the still images are ok, but not fantastic. The KB kills them. This seems opposite of what I have read of the bug in imovie6.
    Can anyone explain why if I use the HD formats for Imovie the photos turn out ok?
    I would like to keep them in a 4x3 format but can't if I use the HD formats. Is there a way to make it 4x3 after?
    Anyway.. I have done a lot of testing and this is the best I can get so far.

    Anyone??
    When I make a movie in 1080 or 720.. it takes alot of resources and slows things down.
    Just wondering why choosing those options are the only ones that seem to work
    I really need to get it into 4x3 format too.

  • Bluetooth acting very strange. Only one device works at a time.

    HI,
    I have a bluetooth device in my macmini. And also now have airport.
    But it seems only one device can connect at a time.
    But if a keep turning the 2 dvices ona nd off and mucking around with them then eventuly both work at the same time. One being an apple wireless KB the other a macmice wireless mouse. i have tried other mouses but same result.
    Was wondering if anyone would know why this is doing this and mayb a fix.
    any help would be great.

    jpalan wrote:However, flash still seems to hijack everything.
    Instead of guessing, start playing mplayer and some flash source (youtube or whatever) and post the output of  'fuser -v /dev/snd/*'.
    Is your mplayer using alsa? 'cat ~/.mplayer/config' might have the answer (if you use the config) or just check mplayer output:
    ==========================================================================
    Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback...
    See that
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    - I have configured mplayer to use alsa.

  • 2 thunderbolt displays worked fine daisy chained, moved one to work in other room, now only one will work.  both work independantly or both plugged into my macbook pro.

    I have 2 thunderbolt displays and have had them daisy chained for months where I only would plug one into my macbook pro 15" retina and both displays have worked great.  The other day I moved one of them into the conference room, connected also a HDMI cord to a projector to do some work with staff on software design. 
    I brought my thunderbolt back into my office and plugged it back into the other thunderbolt dispay, then plugged the other display back into my macbook and started it up and now I can only get one to work daisy chained.  They both work great independantly or if both of them are plugged into my macbook pro, but not daisy chained any longer.
    Is there a setting I need to look at to maybe reset so that my macbook pro will use both thunderbolt displays daisy chained?
    Thanks for anyones advice and sharing any similar issues and how you fixed the issue.

    Hi there,
    The first thing that I would recomend is resetting the PRAM on your portable.
    OS X Mountain Lion: Reset your computer’s PRAM
    http://support.apple.com/kb/ph11243
    If the issues persist, then you may need to force the device to detect displays.
    OS X Mountain Lion: About the Display pane of System Preferences
    http://support.apple.com/kb/ht5369
    How can I detect displays?
    If the detect displays option is not available, hold down the Option key while you are in the Display pane.
    - Griff W.

  • Only One LED works when shuffle turns on

    hi, i just bought my 2nd gen ipod shuffle, i turned it on to find only one LED shows the battery status. Both LEDs work for everything else apart from when i turn it on.
    Is this a problem or is it just normal?
    Thanks in Advance

    Not to worry... it's normal behavior.

  • Why only one public class in a source file?

    why we have to write only one public class in a source file?

    PhHein wrote:
    Because the JLS says so.It does?
    From section 7.6 of the JLS (third edition):
    When packages are stored in a file system (§7.2.1), the host system may choose to enforce the restriction that it is a compile-time error if a type is not found in a file under a name composed of the type name plus an extension (such as .java or .jav) if either of the following is true:* The type is referred to by code in other compilation units of the package in which the type is declared.
    * The type is declared public (and therefore is potentially accessible from code in other packages).
    This restriction implies that there must be at most one such type per compilation unit. This restriction makes it easy for a compiler for the Java programming language or an implementation of the Java virtual machine to find a named class within a package; for example, the source code for a public type wet.sprocket.Toad would be found in a file Toad.java in the directory wet/sprocket, and the corresponding object code would be found in the file Toad.class in the same directory.
    >
    To my mind, it's strongly recommending, rather than mandating, this practice. All academic of course, merely shifting the answer from "Because the JLS says so" to "Because pretty much all Java compilers say so". I don't know of any that don't enforce this, but of course, that doesn't mean they don't exist

Maybe you are looking for