You can use dynamic import command or rewrap the bundle on the fly.

On Mon, Oct 3, 2022 at 8:14 PM Chandan Singh <[email protected]>
wrote:

> Hi J B ,
>
> The lib/ext didn’t work , yes you are right the bundle has to import it .
> But is it possible to achieve the same without down time  or via command
> line?
>
> Regards
> Chandan
>
> On Mon, 3 Oct 2022 at 22:07, Jean-Baptiste Onofré <[email protected]> wrote:
>
>> Installing the bundle is not enough if the "user" bundle doesn't import
>> it.
>>
>> Which bundle needs these classes ?
>>
>> Regards
>> JB
>>
>> On Sun, Oct 2, 2022 at 9:03 AM Chandan Singh <
>> [email protected]> wrote:
>>
>>> Hi JB ,
>>>
>>> Thanks again for responding , I did the wrap part. I also see the
>>> classes in the* find-class  but still at runtime the class is not found
>>> ,   I think may be it is expecting to be exported as package  in the
>>> bundles-config.   Please do advise if there is any way to export via
>>> command- line . Below is the command I used .  *
>>>
>>>
>>> *karaf@root()> bundle:install
>>> wrap:file:/opt/rcm/container/deploy/orai18n.jar //$Bundle-SymbolicName
>>> orai18n &Bundle-Version=19.15.0.0&Bundle-Name='JDBC Global Jar Oracle'*
>>>
>>>
>>>
>>> [image: image.png]
>>>
>>> [image: image.png]
>>>
>>> Regards
>>> Chandan
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sun, Oct 2, 2022 at 11:36 AM Jean-Baptiste Onofré <[email protected]>
>>> wrote:
>>>
>>>> You can also wrap / ship the lib in your bundle (as private): it will
>>>> be in the bundle classloader.
>>>>
>>>> But adding to the system classloader (lib/ext) should work as well.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On Sat, Oct 1, 2022 at 11:57 AM Chandan Singh
>>>> <[email protected]> wrote:
>>>> >
>>>> > No Have not tried it there .  But have tried  in lib/endorsed, boot,
>>>> jdk9plus .  Will try ext aswell and update you .   Since it is prod
>>>> environment, I will update you by Monday .   Thanks for replying   . Please
>>>> do share any other way you think  I can add the jar to classpath ?
>>>> > will  adding it to java classpath lib help ?
>>>> >
>>>> >
>>>> > Regards
>>>> > Chandan
>>>> >
>>>> > On Sat, Oct 1, 2022 at 3:13 PM Jean-Baptiste Onofré <[email protected]>
>>>> wrote:
>>>> >>
>>>> >> Hi Chandan,
>>>> >>
>>>> >> Did you try to put in lib/ext folder ?
>>>> >>
>>>> >> Regards
>>>> >> JB
>>>> >>
>>>> >> On Fri, Sep 30, 2022 at 3:27 PM Chandan Singh
>>>> >> <[email protected]> wrote:
>>>> >> >
>>>> >> > Hi  All ,
>>>> >> >
>>>> >> > We are getting an issue of charset from DB end for charset
>>>> support  as below  for one of our applications  ,   We were able to
>>>> mitigate the same in tomcat by adding to web-inf/lib folder  .   I tried
>>>> to add the jar  in Karaf/lib/endorsed,and  jdk9plis  directory  but it
>>>> doesnt fix the issue .
>>>> >> > Any inputs where I can put the jar so that it is available to
>>>> classpath ?   Below is the error thrown .
>>>> >> >
>>>> >> > Non supported character set (add orai18n.jar in your classpath):
>>>> IW8MSWIN1255
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > Regards
>>>> >> > Chandan
>>>>
>>>

Reply via email to