SSL-Explorer: "log4j:WARN No appenders could be found for logger"

Posted on 2006-06-08
Last Modified: 2007-11-27
Hello all,

I'm currently trying to get SSL-Explorer installed on FreeBSD 6.1 (unsupported OS). My problem is (following the README) after I run "ant install", configure everything via HTTP, it appears to build cleanly but I get the following error when running the server (via "ant run"):

     [java] log4j:WARN No appenders could be found for logger (com.sslexplorer.server.Main).
     [java] log4j:WARN Please initialize the log4j system properly.

I've Googled this and I'm sure it has something to do with incorrect settings in my file, but seeing as how I know nothing of Java I'm at a loss here. Here is my

     log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss} %-5p %c{1} - %m%n
     log4j.appender.logfile.layout.ConversionPattern=%d{HH:mm:ss} %-5p %c{1} - %m%n
     #                                 BEWARE!!!!
     # It is recommended that you do *NOT* change the root logging level to anything
     # less than INFO. Doing so may prove a security risk as it is possible that
     # passwords will be visible in the logs (these come from Struts / Jasper, not
     # anything SSL-Explorer itself is doing). Instead, enable DEBUG on anything in
     # the namespace com.sslexplorer plus add any invididual namespaces you may wish
     # visible.
     # Root logging level
     # Un-comment the following two lines to enable debug logs.
     # Hide most Slide output,logfile,logfile
     # Hide most Maverick output,logfile

If there is any information, such as debugging, that would help just let me know. Any help on this would be GREATLY appreciated.

Thanks in advance!
Question by:dthomas53
    LVL 92

    Expert Comment

    could bve that it is just not finding the log4j config file at all.
    where is it located?  it should be somewhere in your classpath

    Author Comment

    The one listed in the OP was found in /root/port_builds/sslexplorer-0.2.0_dev01/sslexplorer/conf/,with sslexplorer-0.2.0_dev01 being the root of the downloaded source file. Tkaing a second look though, I've also found it in /root/port_builds/sslexplorer-0.2.0_dev01/sslexplorer/webapp/WEB-INF/client/ The latter file contains this:

         log4j.rootCategory=INFO, logfile, stdout
         log4j.appender.logfile.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c - %m%n

    Is this file used during the build or by the server daemon? And, forgive me, what would my "classpath" be on FreeBSD box?

    LVL 92

    Expert Comment

    its used by the server
    the classpath is probably specified in the build script you use to start it

    LVL 86

    Expert Comment


    <echo message="${java.class.path}" />

    to your run target and you should find out your classpath


    Author Comment

    Ahhhh, what a newb...

    Sorry for the fuss, I got it. I guess I just missed the big WARNING when running "ant run":

         *WARNING* The 'run' target is deprecated. Use 'console', 'start' and 'stop'

    Running it with the 'start' target got it: "ant start"

    Thanks for the help in any case.

    P.S. How do I assign points for this?
    LVL 86

    Assisted Solution

    >>P.S. How do I assign points for this?

    If i ask questions, in a case like this, i normally get them lowered and offer smallish points awards to contribs
    LVL 92

    Accepted Solution

    > Thanks for the help in any case.

    no worries, happy to help :)

    > P.S. How do I assign points for this?

    Well I did explain the reason for the warning :)
    Do with them as you please.
    LVL 86

    Expert Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now