Solved

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

Posted on 2008-06-15
3
721 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
expectj telnet failing 5 36
maven module vs maven project 3 23
How to parse the string and split the sub directory names in asp.net 7 41
mysql jsp example issue 32 33
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

770 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