Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 38
control image tags in a string ? 12 110
fibonacci ten numbers 4 24
Windows 10 IE Certificate Issue 10 41
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

914 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

12 Experts available now in Live!

Get 1:1 Help Now