• 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=org.apache.log4j.ConsoleAppender
     log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
     log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss} %-5p %c{1} - %m%n
     
     log4j.appender.logfile=org.apache.log4j.RollingFileAppender
     log4j.appender.logfile.File=logs/sslexplorer.log
     log4j.appender.logfile.MaxFileSize=2048KB
     log4j.appender.logfile.MaxBackupIndex=1
     log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
     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
     
     log4j.rootCategory=WARN,logfile,stdout,stdout
     
     # Un-comment the following two lines to enable debug logs.
     
     #log4j.category.com.sslexplorer=DEBUG,logfile,stdout
     #log4j.additivity.com.sslexplorer=false
     
     # Hide most Slide output
     log4j.category.org.apache.slide=WARN,logfile
     log4j.additivity.org.apache.slide=false
     log4j.category.com.sslexplorer.slide.CommonsLoggingAdapter=WARN,logfile
     log4j.additivity.com.sslexplorer.slide.CommonsLoggingAdapter=false
     
     # Hide most Maverick output
     log4j.category.com.maverick=WARN,logfile
     log4j.additivity.com.maverick=false

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!
0
dthomas53
Asked:
dthomas53
  • 3
  • 3
  • 2
2 Solutions
 
objectsCommented:
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
0
 
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.properties
     log4j.appender.stdout=org.apache.log4j.ConsoleAppender
     log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
     log4j.appender.stdout.layout.ConversionPattern=%m%n
     
     log4j.threshold=INFO
     log4j.rootCategory=INFO, logfile, stdout
     log4j.appender.logfile=org.apache.log4j.RollingFileAppender
     log4j.appender.logfile.File=vpn-client.log
     log4j.appender.logfile.MaxFileSize=1MB
     log4j.appender.logfile.MaxBackupIndex=3
     log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
     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?

Thanks!
0
 
objectsCommented:
its used by the server
the classpath is probably specified in the build script you use to start it

0
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.

 
CEHJCommented:
Add

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

to your run target and you should find out your classpath

0
 
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?
0
 
CEHJCommented:
>>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
0
 
objectsCommented:
> 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.
0
 
CEHJCommented:
:-)
0
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