You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Chandan Singh <ma...@gmail.com> on 2022/09/30 13:27:07 UTC
Ora18n jar in class path Karaf (4.3.7)
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 *
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You can use dynamic import command or rewrap the bundle on the fly.
On Mon, Oct 3, 2022 at 8:14 PM Chandan Singh <ma...@gmail.com>
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é <jb...@nanthrax.net> 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 <
>> mailbox.chandansingh@gmail.com> 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é <jb...@nanthrax.net>
>>> 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
>>>> <ma...@gmail.com> 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é <jb...@nanthrax.net>
>>>> 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
>>>> >> <ma...@gmail.com> 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
>>>>
>>>
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Chandan Singh <ma...@gmail.com>.
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é <jb...@nanthrax.net> 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 <
> mailbox.chandansingh@gmail.com> 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é <jb...@nanthrax.net>
>> 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
>>> <ma...@gmail.com> 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é <jb...@nanthrax.net>
>>> 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
>>> >> <ma...@gmail.com> 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
>>>
>>
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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 <ma...@gmail.com>
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é <jb...@nanthrax.net>
> 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
>> <ma...@gmail.com> 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é <jb...@nanthrax.net>
>> 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
>> >> <ma...@gmail.com> 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
>>
>
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Chandan Singh <ma...@gmail.com>.
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é <jb...@nanthrax.net>
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
> <ma...@gmail.com> 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é <jb...@nanthrax.net>
> 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
> >> <ma...@gmail.com> 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
>
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
<ma...@gmail.com> 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é <jb...@nanthrax.net> 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
>> <ma...@gmail.com> 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
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Chandan Singh <ma...@gmail.com>.
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é <jb...@nanthrax.net> 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
> <ma...@gmail.com> 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
>
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Chandan,
Did you try to put in lib/ext folder ?
Regards
JB
On Fri, Sep 30, 2022 at 3:27 PM Chandan Singh
<ma...@gmail.com> 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
Re: Ora18n jar in class path Karaf (4.3.7)
Posted by Chandan Singh <ma...@gmail.com>.
Just adding further , I installed the jar from the local file system , but
Still the issue is not Resolved . Please any inputs to get this sorted
Regards
Chandan
On Fri, Sep 30, 2022 at 6:57 PM Chandan Singh <
mailbox.chandansingh@gmail.com> 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 *
>