Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: problem of logging in ejb3

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem of logging in ejb3

    Hi,

    I am not able to log anything in from my ejb3.0 project. I am using log4j and weblogic 10.0 MP2. Please help.
    my log4j.properties is as follows:

    ### direct log messages to stdout ###
    #log4j.appender.stdout=org.apache.log4j.ConsoleApp ender
    #log4j.appender.stdout.Target=System.out

    #log4j.appender.stdout.layout=org.apache.log4j.Pat ternLayout
    #log4j.appender.stdout.layout.ConversionPattern=%d {ABSOLUTE} %5p %c{1}:%L - %m%n
    #log4j.rootLogger=debug, stdout
    #### Use two appenders, one to log to console, another to log to a file
    log4j.rootCategory=debug, R

    #### First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppe nder
    log4j.appender.stdout.layout=org.apache.log4j.Patt ernLayout

    # Pattern to output the caller's file name and line number.
    log4j.appender.stdout.layout.ConversionPattern=%d{ ABSOLUTE} [%t] %5p %C{7}\:%L - %m%n

    #### Second appender writes to a file
    log4j.appender.R=org.apache.log4j.RollingFileAppen der
    log4j.appender.R.File=D:/ejbModuleLog.log

    # Control the maximum log file size
    log4j.appender.R.MaxFileSize=100KB
    # Archive log files (one backup file here)
    log4j.appender.R.MaxBackupIndex=5

    log4j.appender.R.layout=org.apache.log4j.SimpleLay out
    log4j.appender.R.layout.ConversionPattern=%d{ABSOL UTE} [%t] %5p %C{7}\:%L - %m%n


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: problem of logging in ejb3

    Is your log4j.properties in the right place?

    // Json

  3. #3
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: problem of logging in ejb3

    Please find attached file to see my folder structure.

Similar Threads

  1. Replies: 1
    Last Post: March 18th, 2009, 07:21 AM