Solved

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

Posted on 2008-06-15
3
744 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Assisted Solution

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

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

Author Comment

by:rdelossantos
ID: 21789965
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
ID: 21790022
Thanks for the help. I found the class path in the target folder of the application.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

717 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