You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shilpa Nalgonda <sn...@mypublisher.com> on 2004/09/10 23:21:28 UTC

at the tomcat start up...log4j error..

log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Starting service Tomcat-Standalone

I am getting the above error as the tomcat starts up, i hav elog4j.jar under
commom/lib and log4j.proprties
under webapps/myapps/WEB-INF/lib... any clue..



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: at the tomcat start up...log4j error..

Posted by Shilpa Nalgonda <sn...@mypublisher.com>.
Thanks a lot jake it works.

-----Original Message-----
From: Jacob Kjome [mailto:hoju@visi.com]
Sent: Saturday, September 11, 2004 1:43 AM
To: Tomcat Users List
Subject: Re: at the tomcat start up...log4j error..


At 05:21 PM 9/10/2004 -0400, you wrote:
>log4j:WARN No appenders could be found for logger
>(org.apache.commons.digester.D
>igester).
>log4j:WARN Please initialize the log4j system properly.
>Starting service Tomcat-Standalone
>
>I am getting the above error as the tomcat starts up, i hav elog4j.jar
under
>commom/lib and log4j.proprties
>under webapps/myapps/WEB-INF/lib... any clue..

Tomcat itself won't see the log4j.properties in your webapp.  There are two
issues here:

1.  Log4j tries to perform autoconfiguration at Tomcat startup and isn't
finding a config file.  The solution here is to put a simple
log4j.properties or log4j.xml file in common/classes

2.  Log4j won't perform automatic configuration for your webapp since the
one in common/lib can't see WEB-INF/classes.  In this case, there are a few
different solutions....
    a.  add a copy of log4j.jar to WEB-INF/lib and your config file to
WEB-INF/classes and autoconfiguration will happen and only affect your
webapp logging.

    b.  perform manual configuration at webapp startup and provide Log4j
with the URL of the config file.  However, keep in mind that this will
configure logging not only for your webapp, but also for any other app that
is using Log4j.  This is because Log4j is global to all apps.  The solution
is to do as described in "a" or do "c" below...

    c.  use a repository selector so that Log4j can be global, but use a
separate logger repository for each application.  This is certainly more
complex than "a", but it is a good option.  See more here...
http://wiki.apache.org/logging-log4j/AppContainerLogging

If you check out the log4j-sandbox code mentioned at that link, make sure
to checkout the 0_3_alpha tag, as there are certain files that are required
that were removed from the HEAD branch because they were moved into
Log4j-1.3 HEAD.

Jake


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: at the tomcat start up...log4j error..

Posted by Jacob Kjome <ho...@visi.com>.
At 05:21 PM 9/10/2004 -0400, you wrote:
>log4j:WARN No appenders could be found for logger
>(org.apache.commons.digester.D
>igester).
>log4j:WARN Please initialize the log4j system properly.
>Starting service Tomcat-Standalone
>
>I am getting the above error as the tomcat starts up, i hav elog4j.jar under
>commom/lib and log4j.proprties
>under webapps/myapps/WEB-INF/lib... any clue..

Tomcat itself won't see the log4j.properties in your webapp.  There are two 
issues here:

1.  Log4j tries to perform autoconfiguration at Tomcat startup and isn't 
finding a config file.  The solution here is to put a simple 
log4j.properties or log4j.xml file in common/classes

2.  Log4j won't perform automatic configuration for your webapp since the 
one in common/lib can't see WEB-INF/classes.  In this case, there are a few 
different solutions....
    a.  add a copy of log4j.jar to WEB-INF/lib and your config file to 
WEB-INF/classes and autoconfiguration will happen and only affect your 
webapp logging.

    b.  perform manual configuration at webapp startup and provide Log4j 
with the URL of the config file.  However, keep in mind that this will 
configure logging not only for your webapp, but also for any other app that 
is using Log4j.  This is because Log4j is global to all apps.  The solution 
is to do as described in "a" or do "c" below...

    c.  use a repository selector so that Log4j can be global, but use a 
separate logger repository for each application.  This is certainly more 
complex than "a", but it is a good option.  See more here...
http://wiki.apache.org/logging-log4j/AppContainerLogging

If you check out the log4j-sandbox code mentioned at that link, make sure 
to checkout the 0_3_alpha tag, as there are certain files that are required 
that were removed from the HEAD branch because they were moved into 
Log4j-1.3 HEAD.

Jake


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: cannot deploy the war file..Tomcat 4.1.30 --- please suggest...

Posted by Shilpa Nalgonda <sn...@mypublisher.com>.
Hi i am not able to deploy the war file on Linux box , i am using
Tomcat4.1.30

The way i deploy it is, i copy the war file under tomcat/webapp directory...
And when i restart the server the war file is not being exploded...and i get
below error in logs...

2004-09-24 15:58:03 StandardContext[/rpcoemapi]: Resources start failed:
java.lang.IllegalArgumentException: Document base
/var/lib/tomcat4/webapps/rpcoe
mapi does not exist or is not a readable directory
        at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:193)
        at
org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3349)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
479)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org