geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "johnxmas" <johnx...@free.fr>
Subject Re: Re: JCA Connector and hidden-classes
Date Wed, 23 Apr 2008 07:19:30 GMT
David,

Thanks for your help

I corrected the geronim-ra.xml according to your indications, but I  still get the same problem
(load origin is got thru LogFactory.class.getProtectionDomain().getCodeSource().getLocation())

 ---> LOG FACTORY is loaded from file:/D:/geronimo-1.0/lib/commons- logging-1.0.4.jar

Jean-Noël


>The filter element only takes one package, so you want
>
>   <dep:hidden-classes>
>        <dep:filter>org.apache.commons.logging.</dep:filter>
>        <dep:filter>org.apache.log4.</dep:filter>
>     </dep:hidden-classes>
>
>Also its a good idea to include the "." just in case someone has a  
>package org.apache.log4jakarta or something that you don't want to  
>hide :-)
>
>Let us know if there are additional problems
>
>thanks
>david jencks
>
>On Apr 22, 2008, at 7:50 AM, johnxmas wrote:
>
>> Hello,
>>
>> I created my own JCA connector. Wanting to use my own version of  
>> commons-logging and log4j,
>> I have embedded in thre RAR the two corresponding jars and, in  
>> geronimo-ra.xml, added the following
>> lines
>>
>>   <dep:hidden-classes>
>>        <filter>org.apache.commons.logging,org.apache.log4</filter>
>>     </dep:hidden-classes>
>>
>> But, when I deploy the adapter (stand-alone deployment, not thru an  
>> EAR), I do not
>> get the expected result. I traced the code, and discovered that in  
>> fact the resources
>> are loaded from the parent
>>
>> ---> LOG FACTORY is loaded from file:/D:/geronimo-1.0/lib/commons- 
>> logging-1.0.4.jar
>>
>> If any one has got an explaination....
>>
>> Thanks
>>
>> Jean-Noël
Mime
View raw message