Solved

How to enable log4j appenders to a apache mina tcp ip server?

Posted on 2008-06-15
3
705 Views
Last Modified: 2013-11-13
I receive this message in the console when i try to run a tcp ip service developed with apache mina library and the service generate an error in the IoHandlerAdapter extended class:

log4j:WARN No appenders could be found for logger

I need to know the best way to enable an appender for the log4j library but specifically when using mina library.
0
Comment
Question by:rdelossantos
  • 2
3 Comments
 
LVL 92

Assisted Solution

by:objects
objects earned 125 total points
Comment Utility
Put log4j.xml or log4j.properties in your classpath

http://logging.apache.org/log4j/1.2/manual.html
0
 

Author Comment

by:rdelossantos
Comment Utility
Ok, i quick read the manual but i have a question. I'm using Maven plugin with Netbeans. I would like to know what would be my classpath? the path where my application.jar is located?

Sorry for inconvenience i'm new to java i have strong programming knowledge with c# and .NET framework.
0
 

Accepted Solution

by:
rdelossantos earned 0 total points
Comment Utility
Thanks for the help. I found the class path in the target folder of the application.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

10 Experts available now in Live!

Get 1:1 Help Now