Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Newbee - Log4j WARN No appenders could be found for logger

Newbee - Log4j WARN No appenders could be found for logger

2007-07-25       - By Upul Godage

 Back
Reply:     1     2  

To intialize the log4j system, create a new file named "log4j.properties" in
a directory in the classpath and enter these lines.  May be the root
directory where your compiled Java classes are in.

# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n


Above sample was taken from the
http://logging.apache.org/log4j/docs/manual.html

On 7/25/07, Vikram Mandal <vmandal@(protected)> wrote:
>
> Hi,
>
> I am new to Axis, Log4j,... doing java after good long break.
>
> I am trying to run one the sample codes "echoString"  that comes with
> axis-1 (See http://xis-1.ora-code.com)_4. I have set the classpath as mentioned in the doc .. and now I
> have
> got :
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectResourceBundle Source code of org.apache.axis.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system
> properly.java.net.ConnectException: Connection timed out: connect
>
> This seems to be a popular error ...... Google.. but unfortunately I am
> not
> able to find a appropriate solution to error with the sample code. Please
> guide.
>
> Thanks and regards,
> Vikram
>
>
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
> For additional commands, e-mail: axis-user-help@(protected)
>
>

To intialize the log4j system, create a new file named &quot;log4j.properties
&quot; in a directory in the classpath and enter these lines.&nbsp; May be the
root directory where your compiled Java classes are in.<br><br><pre># Set root
logger level to DEBUG and its only appender to A1.
<br>log4j.rootLogger=DEBUG, A1<br><br># A1 is set to be a ConsoleAppender.<br
>log4j.appender.A1=org.apache.log4j.ConsoleAppender<br><br># A1 uses
PatternLayout.<br>log4j.appender.A1.layout=org.apache.log4j.PatternLayout<br>
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n</pre><br
>Above sample was taken from the <br><a href="http://logging.apache.org/log4j
/docs/manual.html">http://logging.apache.org/log4j/docs/manual.html
</a><br><br><div><span class="gmail_quote">On 7/25/07, <b class="gmail
_sendername">Vikram Mandal</b> &lt;<a href="mailto:vmandal@(protected)">vmandal
@(protected)</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border
-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
Hi,<br><br>I am new to Axis, Log4j,... doing java after good long break.<br><br
>I am trying to run one the sample codes &quot;echoString&quot;&nbsp;&nbsp;that
comes with<br>axis-1 (See http://xis-1.ora-code.com)_4. I have set the classpath as mentioned in the doc .. and
now I have
<br>got :<br><br>log4j:WARN No appenders could be found for logger<br>(org
.apache.axis.i18n.ProjectResourceBundle).<br>log4j:WARN Please initialize the
log4j system<br>properly.java.net.ConnectException: Connection timed out:
connect
<br><br>This seems to be a popular error ...... Google.. but unfortunately I am
not<br>able to find a appropriate solution to error with the sample code.
Please<br>guide.<br><br>Thanks and regards,<br>Vikram<br><br><br><br>
<br><br>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
<br>To unsubscribe, e-mail: <a href="mailto:axis-user-unsubscribe@(protected)"
>axis-user-unsubscribe@(protected)</a><br>For additional commands, e-mail:
<a href="mailto:axis-user-help@(protected)">axis-user-help@(protected)</a>
<br><br></blockquote></div><br>