>I'm not sure exactly what you are trying to do but have you looked at
>
>http://cwiki.apache.org/GMOxDOC21/configuring-application-specific-logging-with-log4j.html
>
>to see if it would help?
>
>thanks
>david jencks
>

Alas, I'm using geronimo 2.0.2...

I don't feel I'm trying to do something special. I'm deploying a Resource 
Adapter packaged in a rar file.
I want this adapter to use the commons-logging.jar and log4j.jar (with their 
corresponding commons-logging.properties
and log4j.xml) that are in the rar, in order to have total control on the log 
level....

Thanks

Jean-Noël


>On Jul 9, 2008, at 2:44 AM, johnxmas wrote:
>
>> Kevan,
>>
>> I corrected my geronimo.bat, by suppressing the quotes as you  
>> stated, and,
>> yes, it succeeded: the commons-logging.jar used is the one from my  
>> application
>>
>> Thanks for that
>>
>> BUT, that is not a full success: as expected, the LogFactory gives  
>> me a Log4JLogger
>>
>> MockAdapter setting hostName - Log is  
>> org.apache.commons.logging.impl.Log4JLogger - loaded from file:/D:/ 
>> geronimo-tomcat6-jee5-2.0.2/repository/mock/jca/MockAdapter/1.0/ 
>> MockAdapter-1.0.rar/rar/commons-logging-1.1.jar
>>
>> Alas,  the following line
>>
>> MockAdapter - embedded Log is org.apache.log4j.Logger - loaded from  
>> file:/D:/geronimo-tomcat6-jee5-2.0.2/lib/log4j-1.2.14.jar
>>
>> shows that my applications log4j.jar is not used. So, my local  
>> log4j.xml is ignored and I get a default "INFO" trace level instead
>> of the ones I specified....
>>
>> Jean-Noël
>>
>>
>>
>>>
>>> On Jul 8, 2008, at 9:24 AM, johnxmas wrote:
>>>
>>>> David,
>>
>>> Hmm. The MPCLSearchOption is working for me. I set as follows:
>>>
>>> set JAVA_OPTS=- 
>>> DXorg.apache.geronimo.kernel.config.MPCLSearchOption=safe
>>>
>>> I verified that this works on Windows (and Mac OS X). I had Jetty
>>> installed. Don't see how a Tomcat install could behave differently.
>>>
>>> Here's the output during deploy:
>>>
>>> MockAdapter setting hostName - Log factory is
>>> org.apache.commons.logging.LogFactory - loaded from file:/C:/ 
>>> geronimo-
>>> jetty6-jee5-2.0.2/repository/mock/jca/MockAdapter/1.0/
>>> MockAdapter-1.0.rar/rar/commons-logging.jar
>>>
>>> Doh... I bet the " " 's that you used are wrong... If you update your
>>> GERONIMO_OPTS setting in geronimo.bat and remove the quotation mark
>>> characters, I bet it works...
>>>
>>> Still need to fix this properly...
>>>
>>> --kevan
>>>
>>>
>>>

Reply via email to