• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 829
  • Last Modified:

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

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 log4j.properties file, but seeing as how I know nothing of Java I'm at a loss here. Here is my log4j.properties:

     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
     # Hide most Maverick output

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!
  • 3
  • 3
  • 2
2 Solutions
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
dthomas53Author Commented:
The one listed in the OP was found in /root/port_builds/sslexplorer-0.2.0_dev01/sslexplorer/conf/log4j.properties,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/log4j.properties. 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?

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

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.


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

to your run target and you should find out your classpath

dthomas53Author Commented:
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?
>>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
> 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now