try the following code:

<gbean 
class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"
 name="DirectoryLog4jConfiguration"> 
      <attribute name="log4jFile">META-INF/log4j.properties</attribute> 
    <reference name="ServerInfo"><name>ServerInfo</name></reference>
</gbean>

anything else, let us know.

Jeff C


In this case, I get 
org.apache.geronimo.kernel.config.LifecycleException: start of 
com.scort.demos/vscics/1.0/ear failed
//
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: 
Configuration com.scort.demos/vscics/1.0/ear failed to start due to the 
following reasons:
  The service 
J2EEApplication=com.scort.demos/vscics/1.0/ear,j2eeType=SystemLog,name=DirectoryLog4jConfiguration
 did not start because 
D:\geronimo-tomcat6-javaee5-2.1.3\META-INF\log4j.properties (Le fichier 
spécifié est introuvable)

If i put log4.properties at the root of my rar and modifies gerionimo-ra.xml
  <gbean 
class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"
 name="DirectoryLog4jConfiguration">
   <attribute name="log4jFile">log4j.properties</attribute>
   <reference name="ServerInfo"><name>ServerInfo</name></reference>
  </gbean>

I get

org.apache.geronimo.kernel.config.LifecycleException: start of 
com.scort.demos/vscics/1.0/ear failed

//
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: 
Configuration com.scort.demos/vscics/1.0/ear failed to start due to the 
following reasons:
  The service 
J2EEApplication=com.scort.demos/vscics/1.0/ear,j2eeType=SystemLog,name=DirectoryLog4jConfiguration
 did not start because D:\geronimo-tomcat6-javaee5-2.1.3\log4j.properties (Le 
fichier spécifié est introuvable)

So where must I put the properties file ? (BTW, another question: may I use a 
log4j.xml file ?)

Reply via email to