Re: ***UNCHECKED*** Re: java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator when running as Service on RedHat 7.5

2018-07-25 Thread Oleg Cohen
Thank you, JB! Looking forward to trying 4.2.1.

Sent from my iPhone

> On Jul 25, 2018, at 3:15 PM, Jean-Baptiste Onofré  wrote:
>
> Hi Oleg,
>
> that's part of the fix but I also aligned the wrapper conf with the one
> used in  bin/karaf.
>
> Regarding Karaf 4.2.1, it's planned for the end of this week/beginning
> of next week.
>
> Regards
> JB
>
>> On 25/07/2018 19:05, Oleg Cohen wrote:
>> Hi JB,
>>
>> Thank you! For now I actually went into etc/karaf-wrapper.conf and added
>> this one
>>
>> wrapper.java.classpath.3=%KARAF_BASE%/lib/endorsed/*.jar
>>
>> It works good now.
>>
>> BTW, when is the 4.2.1 release scheduled for?
>>
>> Best,
>> Oleg
>>
>>> On Jul 25, 2018, at 10:52 AM, j...@nanthrax.net 
>>> wrote:
>>>
>>> Hi Oleg,
>>>
>>> I fixed on a local branch. Any system using wrapper is impacted (it
>>> doesn't matter if it's Linux or Windows).
>>>
>>> I will create the PR tonight and it will be fixed on master soon.
>>>
>>> Regards
>>> JB
>>>
>>> On Wednesday, July 25, 2018 12:40 CEST, Oleg Cohen
>>> mailto:oleg.co...@assurebridge.com>> wrote:
>>>

>>> Same with me on Linux. Only happens with the service wrapper. Is there
>>> a quick fix I can apply aside from copying the jar? I guess I need to
>>> add endorsed libs somehow. JB mentioned it is fixed already. Main branch?
>>>
>>> Thank you,
>>> Oleg
>>>
>>> On Jul 24, 2018, at 3:39 PM, Leschke, Scott >> > wrote:
>>>
 Hi Oleg,



 I’m the person who originally reported the issue that JB is referring
 to.  In my case on Windows, Karaf appears to work fine as well but
 there is that error in the log that only occurs when you start Karaf
 using the service wrapper.



 Regards,
 Scott



 *From:* Oleg Cohen [mailto:oleg.co...@assurebridge.com]
 *Sent:* Tuesday, July 24, 2018 2:01 PM
 *To:* user@karaf.apache.org 
 *Subject:* Re: java.lang.NoClassDefFoundError:
 org/apache/karaf/specs/locator/OsgiLocator when running as Service on
 RedHat 7.5



 Hi JB,



 I am using the wrapper. bin/karaf works fine.



 Thank you!
 Oleg


 On Jul 24, 2018, at 2:58 PM, Jean-Baptiste Onofré >>> > wrote:



 Maybe it's related to:

 https://issues.apache.org/jira/browse/KARAF-5840 (I already have a fix
 on a local branch)

 The problem only occurs when using the wrapper.

 @Oleg/Miroslav: do you use wrapper to start Karaf instead of bin/karaf ?

 Regards
 JB

 On 24/07/2018 20:54, Francois Papon wrote:

 Hi,

 It's weird because I downloaded the binary and after extract it, I can
 see the org.apache.karaf.specs.locator-4.2.0.jar in the lib/endorsed
 directory.

 regards,

 François Papon
 fpa...@apache.org 

 Le 24/07/2018 à 22:31, Oleg Cohen a écrit :

 Hi Miroslav,

 I think I found the issue. You are right a JAR is missing.

 I built org.apache.karaf.specs.locator-4.2.0.jar and added it to the
 boot/lib folder and the exception is now gone.

 Thank you!
 Oleg



 On Jul 24, 2018, at 11:45 AM, Miroslav Beranič
 >>>  >
 wrote:

 Hi Oleg,

 I've just downloaded package from:

 http://karaf.apache.org/download.html
 Binary Distribution : tar.gz [PGP] [SHA512]

 I've downloaded to /opt/ folder and unpacked the package.

 I am using RHEL 7.5, Oracle Java 8 ( 1.8.0.172 )

 Next I've started Karf with:

 [root@framework apache-karaf-4.2.0]# ls -al
 total 424
 drwxr-xr-x. 9 root root156 jul 24 17:35 .
 drwxr-xr-x. 4 root root110 jul 24 17:35 ..
 drwxr-xr-x. 3 root root282 apr  5 06:29 bin
 drwxr-xr-x. 3 root root 17 apr  5 06:29 data
 drwxr-xr-x. 9 root root123 apr  5 06:29 demos
 drwxr-xr-x. 2 root root 20 apr  5 06:29 deploy
 drwxr-xr-x. 3 root root   4096 apr  5 06:29 etc
 drwxr-xr-x. 5 root root 59 apr  5 06:29 lib
 -rw-r--r--. 1 root root  27754 apr  5 06:29 LICENSE
 -rw-r--r--. 1 root root   1829 apr  5 06:29 NOTICE
 -rw-r--r--. 1 root root   4025 apr  5 06:29 README
 -rw-r--r--. 1 root root 390829 apr  5 06:29 RELEASE-NOTES
 drwxr-xr-x. 3 root root 31 apr  5 06:29 system
 [root@framework apache-karaf-4.2.0]# JAVA_HOME=/opt/jdk ./bin/karaf debug
 Listening for transport dt_socket at address: 5005
 __ __  
/ //_/ __ _/ __/
   / ,<  / __ `/ ___/ __ `/ /_
  / /| |/ /_/ / /  / /_/ / __/
 /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (4.2.0)

 Hit '' for a list of available commands
 and '[cmd] 

Re: ***UNCHECKED*** Re: java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator when running as Service on RedHat 7.5

2018-07-25 Thread Jean-Baptiste Onofré
Hi Oleg,

that's part of the fix but I also aligned the wrapper conf with the one
used in  bin/karaf.

Regarding Karaf 4.2.1, it's planned for the end of this week/beginning
of next week.

Regards
JB

On 25/07/2018 19:05, Oleg Cohen wrote:
> Hi JB,
> 
> Thank you! For now I actually went into etc/karaf-wrapper.conf and added
> this one
> 
> wrapper.java.classpath.3=%KARAF_BASE%/lib/endorsed/*.jar
> 
> It works good now.
> 
> BTW, when is the 4.2.1 release scheduled for?
> 
> Best,
> Oleg
> 
>> On Jul 25, 2018, at 10:52 AM, j...@nanthrax.net 
>> wrote:
>>
>> Hi Oleg,
>>
>> I fixed on a local branch. Any system using wrapper is impacted (it
>> doesn't matter if it's Linux or Windows).
>>
>> I will create the PR tonight and it will be fixed on master soon.
>>
>> Regards
>> JB
>>
>> On Wednesday, July 25, 2018 12:40 CEST, Oleg Cohen
>> mailto:oleg.co...@assurebridge.com>> wrote:
>>  
>>>  
>> Same with me on Linux. Only happens with the service wrapper. Is there
>> a quick fix I can apply aside from copying the jar? I guess I need to
>> add endorsed libs somehow. JB mentioned it is fixed already. Main branch? 
>>  
>> Thank you,
>> Oleg
>>
>> On Jul 24, 2018, at 3:39 PM, Leschke, Scott > > wrote:
>>  
>>> Hi Oleg,
>>>
>>>  
>>>
>>> I’m the person who originally reported the issue that JB is referring
>>> to.  In my case on Windows, Karaf appears to work fine as well but
>>> there is that error in the log that only occurs when you start Karaf
>>> using the service wrapper.
>>>
>>>  
>>>
>>> Regards,
>>> Scott
>>>
>>>  
>>>
>>> *From:* Oleg Cohen [mailto:oleg.co...@assurebridge.com]
>>> *Sent:* Tuesday, July 24, 2018 2:01 PM
>>> *To:* user@karaf.apache.org 
>>> *Subject:* Re: java.lang.NoClassDefFoundError:
>>> org/apache/karaf/specs/locator/OsgiLocator when running as Service on
>>> RedHat 7.5
>>>
>>>  
>>>
>>> Hi JB,
>>>
>>>  
>>>
>>> I am using the wrapper. bin/karaf works fine.
>>>
>>>  
>>>
>>> Thank you!
>>> Oleg
>>>
>>>  
>>> On Jul 24, 2018, at 2:58 PM, Jean-Baptiste Onofré >> > wrote:
>>>
>>>  
>>>
>>> Maybe it's related to:
>>>
>>> https://issues.apache.org/jira/browse/KARAF-5840 (I already have a fix
>>> on a local branch)
>>>
>>> The problem only occurs when using the wrapper.
>>>
>>> @Oleg/Miroslav: do you use wrapper to start Karaf instead of bin/karaf ?
>>>
>>> Regards
>>> JB
>>>
>>> On 24/07/2018 20:54, Francois Papon wrote:
>>>  
>>> Hi,
>>>
>>> It's weird because I downloaded the binary and after extract it, I can
>>> see the org.apache.karaf.specs.locator-4.2.0.jar in the lib/endorsed
>>> directory.
>>>
>>> regards,
>>>
>>> François Papon
>>> fpa...@apache.org 
>>>
>>> Le 24/07/2018 à 22:31, Oleg Cohen a écrit :
>>>  
>>> Hi Miroslav,
>>>
>>> I think I found the issue. You are right a JAR is missing.
>>>
>>> I built org.apache.karaf.specs.locator-4.2.0.jar and added it to the
>>> boot/lib folder and the exception is now gone.
>>>
>>> Thank you!
>>> Oleg
>>>
>>>
>>>  
>>> On Jul 24, 2018, at 11:45 AM, Miroslav Beranič
>>> >>  >
>>> wrote:
>>>
>>> Hi Oleg,
>>>
>>> I've just downloaded package from:
>>>
>>> http://karaf.apache.org/download.html
>>> Binary Distribution : tar.gz [PGP] [SHA512]
>>>
>>> I've downloaded to /opt/ folder and unpacked the package.
>>>
>>> I am using RHEL 7.5, Oracle Java 8 ( 1.8.0.172 )
>>>
>>> Next I've started Karf with:
>>>
>>> [root@framework apache-karaf-4.2.0]# ls -al
>>> total 424
>>> drwxr-xr-x. 9 root root    156 jul 24 17:35 .
>>> drwxr-xr-x. 4 root root    110 jul 24 17:35 ..
>>> drwxr-xr-x. 3 root root    282 apr  5 06:29 bin
>>> drwxr-xr-x. 3 root root 17 apr  5 06:29 data
>>> drwxr-xr-x. 9 root root    123 apr  5 06:29 demos
>>> drwxr-xr-x. 2 root root 20 apr  5 06:29 deploy
>>> drwxr-xr-x. 3 root root   4096 apr  5 06:29 etc
>>> drwxr-xr-x. 5 root root 59 apr  5 06:29 lib
>>> -rw-r--r--. 1 root root  27754 apr  5 06:29 LICENSE
>>> -rw-r--r--. 1 root root   1829 apr  5 06:29 NOTICE
>>> -rw-r--r--. 1 root root   4025 apr  5 06:29 README
>>> -rw-r--r--. 1 root root 390829 apr  5 06:29 RELEASE-NOTES
>>> drwxr-xr-x. 3 root root 31 apr  5 06:29 system
>>> [root@framework apache-karaf-4.2.0]# JAVA_HOME=/opt/jdk ./bin/karaf debug
>>> Listening for transport dt_socket at address: 5005
>>>     __ __    
>>>    / //_/ __ _/ __/  
>>>   / ,<  / __ `/ ___/ __ `/ /_    
>>>  / /| |/ /_/ / /  / /_/ / __/    
>>>     /_/ |_|\__,_/_/   \__,_/_/     
>>>
>>>   Apache Karaf (4.2.0)
>>>
>>> Hit '' for a list of available commands
>>> and '[cmd] --help' for help on a specific command.
>>> Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>>
>>> karaf@root()> feature:install
>>> service-wrapper 
>>>  

***UNCHECKED*** Re: java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator when running as Service on RedHat 7.5

2018-07-25 Thread Oleg Cohen
Hi JB,

Thank you! For now I actually went into etc/karaf-wrapper.conf and added this 
one

wrapper.java.classpath.3=%KARAF_BASE%/lib/endorsed/*.jar

It works good now.

BTW, when is the 4.2.1 release scheduled for?

Best,
Oleg

> On Jul 25, 2018, at 10:52 AM, j...@nanthrax.net wrote:
> 
> Hi Oleg,
> 
> I fixed on a local branch. Any system using wrapper is impacted (it doesn't 
> matter if it's Linux or Windows).
> 
> I will create the PR tonight and it will be fixed on master soon.
> 
> Regards
> JB
> 
> On Wednesday, July 25, 2018 12:40 CEST, Oleg Cohen 
>  wrote:
>  
>> 
>>  
> Same with me on Linux. Only happens with the service wrapper. Is there a 
> quick fix I can apply aside from copying the jar? I guess I need to add 
> endorsed libs somehow. JB mentioned it is fixed already. Main branch? 
>  
> Thank you,
> Oleg
> 
> On Jul 24, 2018, at 3:39 PM, Leschke, Scott  > wrote:
>  
>> Hi Oleg,
>>  
>> I’m the person who originally reported the issue that JB is referring to.  
>> In my case on Windows, Karaf appears to work fine as well but there is that 
>> error in the log that only occurs when you start Karaf using the service 
>> wrapper.
>>  
>> Regards,
>> Scott
>>  
>> From: Oleg Cohen [mailto:oleg.co...@assurebridge.com 
>> ]
>> Sent: Tuesday, July 24, 2018 2:01 PM
>> To: user@karaf.apache.org 
>> Subject: Re: java.lang.NoClassDefFoundError: 
>> org/apache/karaf/specs/locator/OsgiLocator when running as Service on RedHat 
>> 7.5
>>  
>> Hi JB,
>>  
>> I am using the wrapper. bin/karaf works fine.
>>  
>> Thank you!
>> Oleg
>> 
>>  
>> On Jul 24, 2018, at 2:58 PM, Jean-Baptiste Onofré > > wrote:
>>  
>> Maybe it's related to:
>> 
>> https://issues.apache.org/jira/browse/KARAF-5840 
>>  (I already have a fix
>> on a local branch)
>> 
>> The problem only occurs when using the wrapper.
>> 
>> @Oleg/Miroslav: do you use wrapper to start Karaf instead of bin/karaf ?
>> 
>> Regards
>> JB
>> 
>> On 24/07/2018 20:54, Francois Papon wrote:
>>  
>> Hi,
>> 
>> It's weird because I downloaded the binary and after extract it, I can
>> see the org.apache.karaf.specs.locator-4.2.0.jar in the lib/endorsed
>> directory.
>> 
>> regards,
>> 
>> François Papon
>> fpa...@apache.org 
>> 
>> Le 24/07/2018 à 22:31, Oleg Cohen a écrit :
>>  
>> Hi Miroslav,
>> 
>> I think I found the issue. You are right a JAR is missing.
>> 
>> I built org.apache.karaf.specs.locator-4.2.0.jar and added it to the
>> boot/lib folder and the exception is now gone.
>> 
>> Thank you!
>> Oleg
>> 
>> 
>>  
>> On Jul 24, 2018, at 11:45 AM, Miroslav Beranič
>> mailto:miroslav.bera...@mibesis.si> 
>> >> 
>> wrote:
>> 
>> Hi Oleg,
>> 
>> I've just downloaded package from:
>> 
>> http://karaf.apache.org/download.html 
>> Binary Distribution : tar.gz [PGP] [SHA512]
>> 
>> I've downloaded to /opt/ folder and unpacked the package.
>> 
>> I am using RHEL 7.5, Oracle Java 8 ( 1.8.0.172 )
>> 
>> Next I've started Karf with:
>> 
>> [root@framework apache-karaf-4.2.0]# ls -al
>> total 424
>> drwxr-xr-x. 9 root root156 jul 24 17:35 .
>> drwxr-xr-x. 4 root root110 jul 24 17:35 ..
>> drwxr-xr-x. 3 root root282 apr  5 06:29 bin
>> drwxr-xr-x. 3 root root 17 apr  5 06:29 data
>> drwxr-xr-x. 9 root root123 apr  5 06:29 demos
>> drwxr-xr-x. 2 root root 20 apr  5 06:29 deploy
>> drwxr-xr-x. 3 root root   4096 apr  5 06:29 etc
>> drwxr-xr-x. 5 root root 59 apr  5 06:29 lib
>> -rw-r--r--. 1 root root  27754 apr  5 06:29 LICENSE
>> -rw-r--r--. 1 root root   1829 apr  5 06:29 NOTICE
>> -rw-r--r--. 1 root root   4025 apr  5 06:29 README
>> -rw-r--r--. 1 root root 390829 apr  5 06:29 RELEASE-NOTES
>> drwxr-xr-x. 3 root root 31 apr  5 06:29 system
>> [root@framework apache-karaf-4.2.0]# JAVA_HOME=/opt/jdk ./bin/karaf debug
>> Listening for transport dt_socket at address: 5005
>> __ __    
>>/ //_/ __ _/ __/  
>>   / ,<  / __ `/ ___/ __ `/ /_
>>  / /| |/ /_/ / /  / /_/ / __/
>> /_/ |_|\__,_/_/   \__,_/_/ 
>> 
>>   Apache Karaf (4.2.0)
>> 
>> Hit '' for a list of available commands
>> and '[cmd] --help' for help on a specific command.
>> Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>> 
>> karaf@root()> feature:install
>> service-wrapper  
>>  
>>   
>>  
>> karaf@root()> wrapper:install
>> Creating file: /opt/apache-karaf-4.2.0/bin/karaf-wrapper
>> Creating file: /opt/apache-karaf-4.2.0/bin/karaf-service
>> Creating file: /opt/apache-karaf-4.2.0/bin/karaf.service
>>