Re: noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Jean-Baptiste Onofré
Hi

Yes I fixed that by adding osgi promise and function bundle in karaf.

Regards
JB

Le 2 avr. 2019 à 05:48, à 05:48, Scott Lewis  a écrit:
>FWIW, this error doesn't appear to occur on 4.2.4
>
>
>On 4/1/2019 7:52 PM, Scott Lewis wrote:
>> Howdy,,
>>
>> Just got the following in Karaf 4.2.3 (felix framework impl):
>>
>> Exception in thread "Thread-44" java.lang.NoClassDefFoundError:
>> org/osgi/util/function/Predicate
>>     at java.lang.Class.getDeclaredMethods0(Native Method)
>>     at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
>>     at java.lang.Class.privateGetPublicMethods(Unknown Source)
>>     at java.lang.Class.getMethods(Unknown Source)
>>     at
>>
>py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
>>     at
>> py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
>>     at
>> py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)
>>     at py4j.Gateway.invoke(Gateway.java:274)
>>     at
>> py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
>>     at py4j.commands.CallCommand.execute(CallCommand.java:79)
>>     at py4j.GatewayConnection.run(GatewayConnection.java:238)
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.ClassNotFoundException:
>> org.osgi.util.function.Predicate not found by org.apache.felix.scr
>[46]
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
>>     at
>>
>org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
>>     at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more
>>
>>
>> Do I need to load a specific karaf feature to get a hold of Predicate
>
>> class?
>>
>> Thanksinadvance,
>>
>> Scott
>>
>>


Re: noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Scott Lewis

FWIW, this error doesn't appear to occur on 4.2.4


On 4/1/2019 7:52 PM, Scott Lewis wrote:

Howdy,,

Just got the following in Karaf 4.2.3 (felix framework impl):

Exception in thread "Thread-44" java.lang.NoClassDefFoundError: 
org/osgi/util/function/Predicate

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at 
py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)

    at py4j.Gateway.invoke(Gateway.java:274)
    at 
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)

    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:238)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: 
org.osgi.util.function.Predicate not found by org.apache.felix.scr [46]
    at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
    at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
    at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)

    at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more


Do I need to load a specific karaf feature to get a hold of Predicate 
class?


Thanksinadvance,

Scott




noclassdeffounderror in karaf 4.2.3

2019-04-01 Thread Scott Lewis

Howdy,,

Just got the following in Karaf 4.2.3 (felix framework impl):

Exception in thread "Thread-44" java.lang.NoClassDefFoundError: 
org/osgi/util/function/Predicate

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at 
py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305)
    at 
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)

    at py4j.Gateway.invoke(Gateway.java:274)
    at 
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)

    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:238)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: 
org.osgi.util.function.Predicate not found by org.apache.felix.scr [46]
    at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
    at 
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
    at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)

    at java.lang.ClassLoader.loadClass(Unknown Source ... 12 more


Do I need to load a specific karaf feature to get a hold of Predicate class?

Thanksinadvance,

Scott




Re: HTTP Session Clustering

2019-04-01 Thread Jean-Baptiste Onofré
Thanks for the update.

It could be related to the karaf xml spec we added in lib/endorsed.

Let me check and try to reproduce.

Regards
JB

On 01/04/2019 15:47, Oleg Cohen wrote:
> Hi JB,
> 
> Thank you for replying!
> 
> Karaf: 4.2.4
> JDK: 8u202
> 
> Standard distribution. I have a feature that has the required features
> in the doc listed as dependencies:
> 
> 
> http
> http-whiteboard
> 
> cellar
> 
> Thank you,
> Oleg
> 
> 
> 
> 
>> On Apr 1, 2019, at 9:40 AM, Jean-Baptiste Onofré > > wrote:
>>
>> Hi Oleg,
>>
>> Is cellar feature installed correctly (providing the hazelcast instance) ?
>>
>> What Karaf version are you using ? Is it a custom distro ?
>>
>> Regards
>> JB
>>
>> On 01/04/2019 15:37, Oleg Cohen wrote:
>>> Greetings,
>>>
>>> I wonder if anybody ran into a similar issue. I followed the setup
>>> instructions
>>> here: 
>>> https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluster_http_session_replication
>>>
>>> Now that Karaf runs I am seeing this exception:
>>>
>>> 2019-04-01T09:31:09,489 | INFO  | .hazelcast-wm.ensureInstance |
>>> ClusteredSessionService          | 68 - com.hazelcast - 3.9.1 | Retrying
>>> the connection!!
>>> 2019-04-01T09:31:09,490 | INFO  | .hazelcast-wm.ensureInstance |
>>> HazelcastInstanceLoader          | 68 - com.hazelcast - 3.9.1 | Creating
>>> a new HazelcastInstance for session replication
>>> 2019-04-01T09:31:09,492 | WARN  | .hazelcast-wm.ensureInstance |
>>> ClusteredSessionService          | 68 - com.hazelcast - 3.9.1 | Cannot
>>> connect to Hazelcast server: XPathFactory#newInstance() failed to create
>>> an XPathFactory for the default object model:
>>> http://java.sun.com/jaxp/xpath/dom with the
>>> XPathFactoryConfigurationException: java.util.ServiceConfigurationError:
>>> javax.xml.xpath.XPathFactory: Provider
>>> org.apache.xpath.jaxp.XPathFactoryImpl not found
>>>
>>> I would appreciate suggestions on how to fix this.
>>>
>>> Thank you,
>>> Oleg
>>
>> -- 
>> Jean-Baptiste Onofré
>> jbono...@apache.org 
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: HTTP Session Clustering

2019-04-01 Thread Oleg Cohen
Hi JB,

Thank you for replying!

Karaf: 4.2.4
JDK: 8u202

Standard distribution. I have a feature that has the required features in the 
doc listed as dependencies:


http
http-whiteboard

cellar

Thank you,
Oleg




> On Apr 1, 2019, at 9:40 AM, Jean-Baptiste Onofré  wrote:
> 
> Hi Oleg,
> 
> Is cellar feature installed correctly (providing the hazelcast instance) ?
> 
> What Karaf version are you using ? Is it a custom distro ?
> 
> Regards
> JB
> 
> On 01/04/2019 15:37, Oleg Cohen wrote:
>> Greetings,
>> 
>> I wonder if anybody ran into a similar issue. I followed the setup
>> instructions
>> here: 
>> https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluster_http_session_replication
>> 
>> Now that Karaf runs I am seeing this exception:
>> 
>> 2019-04-01T09:31:09,489 | INFO  | .hazelcast-wm.ensureInstance |
>> ClusteredSessionService  | 68 - com.hazelcast - 3.9.1 | Retrying
>> the connection!!
>> 2019-04-01T09:31:09,490 | INFO  | .hazelcast-wm.ensureInstance |
>> HazelcastInstanceLoader  | 68 - com.hazelcast - 3.9.1 | Creating
>> a new HazelcastInstance for session replication
>> 2019-04-01T09:31:09,492 | WARN  | .hazelcast-wm.ensureInstance |
>> ClusteredSessionService  | 68 - com.hazelcast - 3.9.1 | Cannot
>> connect to Hazelcast server: XPathFactory#newInstance() failed to create
>> an XPathFactory for the default object model:
>> http://java.sun.com/jaxp/xpath/dom with the
>> XPathFactoryConfigurationException: java.util.ServiceConfigurationError:
>> javax.xml.xpath.XPathFactory: Provider
>> org.apache.xpath.jaxp.XPathFactoryImpl not found
>> 
>> I would appreciate suggestions on how to fix this.
>> 
>> Thank you,
>> Oleg
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



Re: HTTP Session Clustering

2019-04-01 Thread Jean-Baptiste Onofré
Hi Oleg,

Is cellar feature installed correctly (providing the hazelcast instance) ?

What Karaf version are you using ? Is it a custom distro ?

Regards
JB

On 01/04/2019 15:37, Oleg Cohen wrote:
> Greetings,
> 
> I wonder if anybody ran into a similar issue. I followed the setup
> instructions
> here: 
> https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluster_http_session_replication
> 
> Now that Karaf runs I am seeing this exception:
> 
> 2019-04-01T09:31:09,489 | INFO  | .hazelcast-wm.ensureInstance |
> ClusteredSessionService          | 68 - com.hazelcast - 3.9.1 | Retrying
> the connection!!
> 2019-04-01T09:31:09,490 | INFO  | .hazelcast-wm.ensureInstance |
> HazelcastInstanceLoader          | 68 - com.hazelcast - 3.9.1 | Creating
> a new HazelcastInstance for session replication
> 2019-04-01T09:31:09,492 | WARN  | .hazelcast-wm.ensureInstance |
> ClusteredSessionService          | 68 - com.hazelcast - 3.9.1 | Cannot
> connect to Hazelcast server: XPathFactory#newInstance() failed to create
> an XPathFactory for the default object model:
> http://java.sun.com/jaxp/xpath/dom with the
> XPathFactoryConfigurationException: java.util.ServiceConfigurationError:
> javax.xml.xpath.XPathFactory: Provider
> org.apache.xpath.jaxp.XPathFactoryImpl not found
> 
> I would appreciate suggestions on how to fix this.
> 
> Thank you,
> Oleg

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


HTTP Session Clustering

2019-04-01 Thread Oleg Cohen
Greetings,

I wonder if anybody ran into a similar issue. I followed the setup instructions 
here: 
https://karaf.apache.org/manual/cellar/latest-4/#_enable_cluster_http_session_replication
 


Now that Karaf runs I am seeing this exception:

2019-04-01T09:31:09,489 | INFO  | .hazelcast-wm.ensureInstance | 
ClusteredSessionService  | 68 - com.hazelcast - 3.9.1 | Retrying the 
connection!!
2019-04-01T09:31:09,490 | INFO  | .hazelcast-wm.ensureInstance | 
HazelcastInstanceLoader  | 68 - com.hazelcast - 3.9.1 | Creating a new 
HazelcastInstance for session replication
2019-04-01T09:31:09,492 | WARN  | .hazelcast-wm.ensureInstance | 
ClusteredSessionService  | 68 - com.hazelcast - 3.9.1 | Cannot connect 
to Hazelcast server: XPathFactory#newInstance() failed to create an 
XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom 
with the XPathFactoryConfigurationException: 
java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: Provider 
org.apache.xpath.jaxp.XPathFactoryImpl not found

I would appreciate suggestions on how to fix this.

Thank you,
Oleg

Re: Guide for upgrading from karaf 4.1.x to 4.2.x

2019-04-01 Thread lechlukasz
Thanks, I've needed to update persistence to 2_1, unfortunately it means that
the change in code is not backwards-compatible... placing blueprint
descriptors in the same project like JPA classes and logic looked like a
good idea at the beginning, as always in life...

I have no idea why my RESOURCE_LOCAL transactions stopped to work and I've
needed to switch to JTA, but I've managed to run my app as the whole.

BTW I'm not getting emails from the list from a long time. I'm able to post
and log online. So I haven't noticed your response... 



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html