jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: Eclipse-Plugin - Client side fails with log4j
Date Fri, 09 May 2003 09:36:52 GMT
Hi Kumar,

k p wrote:
> I setup Eclipse plugin to run the
> TestSampleServlet.java
> 
> When I run it as Cactus Test, war is created, tomcat
> is launched and war is deployed in tomcat.
> 
> However it then errors out as follows 
> log4j:WARN No appenders could be found for logger
> (org.apache.cactus.client.initialization.ClientInitializer).
> log4j:WARN Please initialize the log4j system
> properly.
> 
> on running the client
> 
> Since cactus uses common-loggins and I'm using jdk
> 1.4, I tried commenting out the copy of
> log_client.properties  at
> cactus.test target in build-share.xml. However I'm
> still getting the same errror as above.

The problem is that log4j is on your classpath. IIUC, the Cactus Eclipse 
Plugin includes the log4j.jar, so you'd have to remove that. (I don't 
know the details of how the Eclipse plugin is structured, so I may be 
wrong).

> My Eclipse project dir is
> 
> TestCactus   -- Projrect root
>   |
>    Web
>      |
>       WEB-INF
>            |
>             src
>                |SampleServlet.java
>                 TestSampleServlet.java
> 
> Deployed war dir structure under webapp in tomcat is
> TestCactus
>      |
>       WEB-INF
>          | 
>           classes
>                |
>                 SampleServlet.class
>                 TestSampleServlet.class 
>           lib - all client and common jars
> 
> 
> Any suggestions?
> 
> Thanks
> Kumar



Mime
View raw message