You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by rajnishe <ra...@gmail.com> on 2007/10/11 15:29:14 UTC
log4j error in axis2
Hello All
I am using axis2 for webservice development.
and jboss 4.0.2 server .
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
Thanks in advance for your kind sugestion to solve this problem.
Best Regards
Rajnish Chauhan
--
View this message in context: http://www.nabble.com/log4j-error-in-axis2-tf4607270.html#a13155878
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: log4j error in axis2
Posted by "Walker, Jeff" <Je...@fmr.com>.
Your log4j is simply not setup properly yet.
I suggest you search previous posts that mention log4j to see how to set
it up in Axis2.
-jeff
-----Original Message-----
From: rajnishe [mailto:rajnishe@gmail.com]
Sent: Thursday, October 11, 2007 9:29 AM
To: axis-user@ws.apache.org
Subject: log4j error in axis2
Hello All
I am using axis2 for webservice development.
and jboss 4.0.2 server .
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
Thanks in advance for your kind sugestion to solve this problem.
Best Regards
Rajnish Chauhan
--
View this message in context:
http://www.nabble.com/log4j-error-in-axis2-tf4607270.html#a13155878
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: log4j error in axis2
Posted by Chris Bowman <ch...@phoros.co.uk>.
Hi Rajnish,
your jBoss log4j setup will be in $JBOSS_HOME/server/default/conf/log4j.xml.
You'll need to edit it to include an appender and category.
In my apps, I use:
<appender name="Axis2Log"
class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Append" value="true"/>
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="File"
value="${jboss.server.home.dir}/log/Axis2Log.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{DATE} %-5p
[%c{1}:%L] %m%n"/>
</layout>
</appender>
And
<category name="org.apache.axis2">
<priority value="DEBUG"/>
<appender-ref ref="Axis2Log"/>
</category>
Thsi writes debug level logs to a file, Axis2Log.log, in the jBoss
logging directory.
Hope this helps,
Chris
rajnishe wrote:
> Hello All
>
> I am using axis2 for webservice development.
> and jboss 4.0.2 server .
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.description.AxisService).
> log4j:WARN Please initialize the log4j system properly.
>
> Thanks in advance for your kind sugestion to solve this problem.
>
>
> Best Regards
> Rajnish Chauhan
>
--
Chris Bowman
Director, Phoros Limited
mobile: +44(0)7766 881 564
email: chris@phoros.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org