|
From: Thomas B. <sp...@th...> - 2004-10-07 18:28:27
|
Hi,
I don't know if this is the right list for such points, so give me a tip
if not.
samples/petclinic (using spring 1.1.1, tomcat 5.0):
When activating the Log4jConfigListener in the web.xml to use logging
based on log4j one get a "java.lang.NoClassDefFoundError:
org/apache/log4j/PropertyConfigurator" on start because log4j.jar is not
in WEB-INF/lib (not in petclinic.war).
Adding the jar in the build.xml file fix it:
<target name="build" description="...">
...
<copy todir="${weblib.dir}" preservelastmodified="true">
...
<fileset dir="${spring.root}/lib/log4j">
<include name="log4j-*.jar"/>
</fileset>
</copy>
</target>
--
Ciao,
Thomas
|