Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-25 Thread Jean-Baptiste Onofré

It's an open question (and we have a opened Jira about this).

I would say that javax.annotation* exports should be with 1.0, and 
eventually add 1.2 by specific bundle.


Regards
JB

On 07/24/2015 06:32 PM, Serge Huber wrote:

Ok by changing the org.osgi.framework.system.packages.extra versions
from 1.2 to 1.0 it works. Is this a bug in the distribution ?

cheers,
   Serge...

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
Acacias, Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a
user-driven one, beyond technology constraints - http://www.jahia.com



On Fri, Jul 24, 2015 at 5:34 PM, Serge Huber mailto:shu...@jahia.com>> wrote:

I think I found the culprit, in my config.properties file I have the
following settings :

#
# Extra packages appended after standard packages
#
org.osgi.framework.system.packages.extra = \
 javax.annotation.security;version=1.2, \
 javax.annotation.sql;version=1.2, \
 javax.annotation;version=1.2, \
Why is this added here ?

Regards,
   Serge

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
Acacias, Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP)
vendor, relentlessly working at transforming a siloed industry into
a user-driven one, beyond technology constraints -
http://www.jahia.com 


On Fri, Jul 24, 2015 at 5:13 PM, Serge Huber mailto:shu...@jahia.com>> wrote:

Hi Achim,

Do you mean something like this ?

install -s mvn:javax.annotation/javax.annotation-api/1.2

I tried that but it didn't solve the problem. I'm still trying
to understand the issue of the two versions exported by the
framework though. I'm guessing that someone something is getting
picked up in version 1.2 but I'm not sure how.

I'm not doing something very special or unique, just setting up
Karaf + CXF to provide micro-services :)

cheers,
   Serge...

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes,
1227 Acacias, Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP)
vendor, relentlessly working at transforming a siloed industry
into a user-driven one, beyond technology constraints -
http://www.jahia.com 


On Fri, Jul 24, 2015 at 4:42 PM, Achim Nierbeck
mailto:bcanh...@googlemail.com>> wrote:

Hi Serge,

as neither JDK7 or 8 are actually fully providing these
packages it's best to install the appropriate bundle for it.

regards, Achim

2015-07-24 16:36 GMT+02:00 Serge Huber mailto:shu...@jahia.com>>:

Hi JB,

Thanks for the quick answer. I'm not sure I understand
though, should I update it to 1.2 ? I thought JDK 7
doesn't support it ? Any idea also why I'm seeing the
export with two versions ?

Cheers,
   Serge

Envoyé de mon iPad

 > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré
mailto:j...@nanthrax.net>> a écrit :
 >
 > Hi Serge,
 >
 > take a look in etc/jre.properties, and update
javax.annotation to match the needed.
 >
 > Regards
 > JB
 >
 >> On 07/24/2015 03:49 PM, Serge Huber wrote:
 >> Hello,
 >>
 >> I'm currently trying to develop a REST API using
Karaf 4.0.0 and CXF
 >> 3.1.1 but upon startup I get this error :
 >>
 >> Caused by: java.lang.NoClassDefFoundError:
javax/annotation/Priority
 >>
 >> at
 >>

org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
 >>
 >> at
 >>

org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
 >>
 >> at
 >>

org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
 >>
 >> at
   

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Achim Nierbeck
Hi Serge,

depending on the distribution it might be.
K4 should export 1.0 as already mentioned, the JDK doesn't fully support
all of the classes of the 1.2 version
regards, Achim

2015-07-24 18:32 GMT+02:00 Serge Huber :

> Ok by changing the org.osgi.framework.system.packages.extra versions from
> 1.2 to 1.0 it works. Is this a bug in the distribution ?
>
> cheers,
>   Serge...
>
> - -- --- -=[ shuber at jahia dot com ]= --- -- -
> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
> Acacias, Switzerland
> twitter: @sergehuber 
>
> Jahia is a leading open source User eXperience Platform (UXP) vendor,
> relentlessly working at transforming a siloed industry into a user-driven
> one, beyond technology constraints - http://www.jahia.com
>
>
> On Fri, Jul 24, 2015 at 5:34 PM, Serge Huber  wrote:
>
>> I think I found the culprit, in my config.properties file I have the
>> following settings :
>>
>> #
>> # Extra packages appended after standard packages
>> #
>> org.osgi.framework.system.packages.extra = \
>> javax.annotation.security;version=1.2, \
>> javax.annotation.sql;version=1.2, \
>> javax.annotation;version=1.2, \
>>
>> Why is this added here ?
>>
>> Regards,
>>   Serge
>>
>> - -- --- -=[ shuber at jahia dot com ]= --- -- -
>> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
>> Acacias, Switzerland
>> twitter: @sergehuber 
>>
>> Jahia is a leading open source User eXperience Platform (UXP) vendor,
>> relentlessly working at transforming a siloed industry into a user-driven
>> one, beyond technology constraints - http://www.jahia.com
>>
>>
>> On Fri, Jul 24, 2015 at 5:13 PM, Serge Huber  wrote:
>>
>>> Hi Achim,
>>>
>>> Do you mean something like this ?
>>>
>>> install -s mvn:javax.annotation/javax.annotation-api/1.2
>>>
>>> I tried that but it didn't solve the problem. I'm still trying to
>>> understand the issue of the two versions exported by the framework though.
>>> I'm guessing that someone something is getting picked up in version 1.2 but
>>> I'm not sure how.
>>>
>>> I'm not doing something very special or unique, just setting up Karaf +
>>> CXF to provide micro-services :)
>>>
>>> cheers,
>>>   Serge...
>>>
>>> - -- --- -=[ shuber at jahia dot com ]= --- -- -
>>> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
>>> Acacias, Switzerland
>>> twitter: @sergehuber 
>>>
>>> Jahia is a leading open source User eXperience Platform (UXP) vendor,
>>> relentlessly working at transforming a siloed industry into a user-driven
>>> one, beyond technology constraints - http://www.jahia.com
>>>
>>>
>>> On Fri, Jul 24, 2015 at 4:42 PM, Achim Nierbeck >> > wrote:
>>>
 Hi Serge,

 as neither JDK7 or 8 are actually fully providing these packages it's
 best to install the appropriate bundle for it.

 regards, Achim

 2015-07-24 16:36 GMT+02:00 Serge Huber :

> Hi JB,
>
> Thanks for the quick answer. I'm not sure I understand though, should
> I update it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also 
> why
> I'm seeing the export with two versions ?
>
> Cheers,
>   Serge
>
> Envoyé de mon iPad
>
> > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a
> écrit :
> >
> > Hi Serge,
> >
> > take a look in etc/jre.properties, and update javax.annotation to
> match the needed.
> >
> > Regards
> > JB
> >
> >> On 07/24/2015 03:49 PM, Serge Huber wrote:
> >> Hello,
> >>
> >> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
> >> 3.1.1 but upon startup I get this error :
> >>
> >> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
> >>
> >> at
> java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
> >>
> >> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
> >>
> >> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
> >>
> >> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
> >>
> >> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.Provid

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Serge Huber
Ok by changing the org.osgi.framework.system.packages.extra versions from
1.2 to 1.0 it works. Is this a bug in the distribution ?

cheers,
  Serge...

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227 Acacias,
Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a user-driven
one, beyond technology constraints - http://www.jahia.com


On Fri, Jul 24, 2015 at 5:34 PM, Serge Huber  wrote:

> I think I found the culprit, in my config.properties file I have the
> following settings :
>
> #
> # Extra packages appended after standard packages
> #
> org.osgi.framework.system.packages.extra = \
> javax.annotation.security;version=1.2, \
> javax.annotation.sql;version=1.2, \
> javax.annotation;version=1.2, \
>
> Why is this added here ?
>
> Regards,
>   Serge
>
> - -- --- -=[ shuber at jahia dot com ]= --- -- -
> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
> Acacias, Switzerland
> twitter: @sergehuber 
>
> Jahia is a leading open source User eXperience Platform (UXP) vendor,
> relentlessly working at transforming a siloed industry into a user-driven
> one, beyond technology constraints - http://www.jahia.com
>
>
> On Fri, Jul 24, 2015 at 5:13 PM, Serge Huber  wrote:
>
>> Hi Achim,
>>
>> Do you mean something like this ?
>>
>> install -s mvn:javax.annotation/javax.annotation-api/1.2
>>
>> I tried that but it didn't solve the problem. I'm still trying to
>> understand the issue of the two versions exported by the framework though.
>> I'm guessing that someone something is getting picked up in version 1.2 but
>> I'm not sure how.
>>
>> I'm not doing something very special or unique, just setting up Karaf +
>> CXF to provide micro-services :)
>>
>> cheers,
>>   Serge...
>>
>> - -- --- -=[ shuber at jahia dot com ]= --- -- -
>> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
>> Acacias, Switzerland
>> twitter: @sergehuber 
>>
>> Jahia is a leading open source User eXperience Platform (UXP) vendor,
>> relentlessly working at transforming a siloed industry into a user-driven
>> one, beyond technology constraints - http://www.jahia.com
>>
>>
>> On Fri, Jul 24, 2015 at 4:42 PM, Achim Nierbeck 
>> wrote:
>>
>>> Hi Serge,
>>>
>>> as neither JDK7 or 8 are actually fully providing these packages it's
>>> best to install the appropriate bundle for it.
>>>
>>> regards, Achim
>>>
>>> 2015-07-24 16:36 GMT+02:00 Serge Huber :
>>>
 Hi JB,

 Thanks for the quick answer. I'm not sure I understand though, should I
 update it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also why
 I'm seeing the export with two versions ?

 Cheers,
   Serge

 Envoyé de mon iPad

 > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a
 écrit :
 >
 > Hi Serge,
 >
 > take a look in etc/jre.properties, and update javax.annotation to
 match the needed.
 >
 > Regards
 > JB
 >
 >> On 07/24/2015 03:49 PM, Serge Huber wrote:
 >> Hello,
 >>
 >> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
 >> 3.1.1 but upon startup I get this error :
 >>
 >> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
 >>
 >> at
 java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
 >>
 >> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
 >>
 >> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
 >>
 >> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
 >>
 >> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)
 >>
 >> at
 >>
 org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSSe

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Serge Huber
I think I found the culprit, in my config.properties file I have the
following settings :

#
# Extra packages appended after standard packages
#
org.osgi.framework.system.packages.extra = \
javax.annotation.security;version=1.2, \
javax.annotation.sql;version=1.2, \
javax.annotation;version=1.2, \

Why is this added here ?

Regards,
  Serge

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227 Acacias,
Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a user-driven
one, beyond technology constraints - http://www.jahia.com


On Fri, Jul 24, 2015 at 5:13 PM, Serge Huber  wrote:

> Hi Achim,
>
> Do you mean something like this ?
>
> install -s mvn:javax.annotation/javax.annotation-api/1.2
>
> I tried that but it didn't solve the problem. I'm still trying to
> understand the issue of the two versions exported by the framework though.
> I'm guessing that someone something is getting picked up in version 1.2 but
> I'm not sure how.
>
> I'm not doing something very special or unique, just setting up Karaf +
> CXF to provide micro-services :)
>
> cheers,
>   Serge...
>
> - -- --- -=[ shuber at jahia dot com ]= --- -- -
> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
> Acacias, Switzerland
> twitter: @sergehuber 
>
> Jahia is a leading open source User eXperience Platform (UXP) vendor,
> relentlessly working at transforming a siloed industry into a user-driven
> one, beyond technology constraints - http://www.jahia.com
>
>
> On Fri, Jul 24, 2015 at 4:42 PM, Achim Nierbeck 
> wrote:
>
>> Hi Serge,
>>
>> as neither JDK7 or 8 are actually fully providing these packages it's
>> best to install the appropriate bundle for it.
>>
>> regards, Achim
>>
>> 2015-07-24 16:36 GMT+02:00 Serge Huber :
>>
>>> Hi JB,
>>>
>>> Thanks for the quick answer. I'm not sure I understand though, should I
>>> update it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also why
>>> I'm seeing the export with two versions ?
>>>
>>> Cheers,
>>>   Serge
>>>
>>> Envoyé de mon iPad
>>>
>>> > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a
>>> écrit :
>>> >
>>> > Hi Serge,
>>> >
>>> > take a look in etc/jre.properties, and update javax.annotation to
>>> match the needed.
>>> >
>>> > Regards
>>> > JB
>>> >
>>> >> On 07/24/2015 03:49 PM, Serge Huber wrote:
>>> >> Hello,
>>> >>
>>> >> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
>>> >> 3.1.1 but upon startup I get this error :
>>> >>
>>> >> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
>>> >>
>>> >> at
>>> java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
>>> >>
>>> >> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
>>> >>
>>> >> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
>>> >>
>>> >> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
>>> >>
>>> >> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)
>>> >>
>>> >> at
>>> >>
>>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
>>> >>
>>> >>
>>> >> which seems very similar to the issue reported here :
>>> >>
>>> >> https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77
>>> >>
>>> >> Except that I'm not using JDK 8 but JDK 7
>>> >>
>>> >> However I'm seing something really strange with the framework bundle.
>>> If
>>> >> I look at the web console for my bundle I see the following imports :
>>> >>
>>> >> javax.annotation,version=1.0.0 from org.apache.felix.framework (0)
>>> >> 
>>> >> javax.annotation,version=1.2.0 from org.apache.felix.framework (0)
>>> >> 

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Serge Huber
Hi Achim,

Do you mean something like this ?

install -s mvn:javax.annotation/javax.annotation-api/1.2

I tried that but it didn't solve the problem. I'm still trying to
understand the issue of the two versions exported by the framework though.
I'm guessing that someone something is getting picked up in version 1.2 but
I'm not sure how.

I'm not doing something very special or unique, just setting up Karaf + CXF
to provide micro-services :)

cheers,
  Serge...

- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227 Acacias,
Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a user-driven
one, beyond technology constraints - http://www.jahia.com


On Fri, Jul 24, 2015 at 4:42 PM, Achim Nierbeck 
wrote:

> Hi Serge,
>
> as neither JDK7 or 8 are actually fully providing these packages it's best
> to install the appropriate bundle for it.
>
> regards, Achim
>
> 2015-07-24 16:36 GMT+02:00 Serge Huber :
>
>> Hi JB,
>>
>> Thanks for the quick answer. I'm not sure I understand though, should I
>> update it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also why
>> I'm seeing the export with two versions ?
>>
>> Cheers,
>>   Serge
>>
>> Envoyé de mon iPad
>>
>> > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a
>> écrit :
>> >
>> > Hi Serge,
>> >
>> > take a look in etc/jre.properties, and update javax.annotation to match
>> the needed.
>> >
>> > Regards
>> > JB
>> >
>> >> On 07/24/2015 03:49 PM, Serge Huber wrote:
>> >> Hello,
>> >>
>> >> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
>> >> 3.1.1 but upon startup I get this error :
>> >>
>> >> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
>> >>
>> >> at
>> java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
>> >>
>> >> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
>> >>
>> >> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
>> >>
>> >> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
>> >>
>> >> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)
>> >>
>> >> at
>> >>
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
>> >>
>> >>
>> >> which seems very similar to the issue reported here :
>> >>
>> >> https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77
>> >>
>> >> Except that I'm not using JDK 8 but JDK 7
>> >>
>> >> However I'm seing something really strange with the framework bundle.
>> If
>> >> I look at the web console for my bundle I see the following imports :
>> >>
>> >> javax.annotation,version=1.0.0 from org.apache.felix.framework (0)
>> >> 
>> >> javax.annotation,version=1.2.0 from org.apache.felix.framework (0)
>> >> 
>> >>
>> >> whereas on the felix.framework bundle I see this :
>> >>
>> >> javax.annotation,version=1.0.0
>> >> javax.annotation,version=1.2.0
>> >>
>> >> however in Karaf's jre.properties I do only see the following for
>> jre-1.7 :
>> >>
>> >> jre-1.7= \
>> >>  javax.accessibility, \
>> >>  javax.activation;version="1.1", \
>> >>  javax.activity, \
>> >>  javax.annotation;version="1.0", \
>> >>  javax.annotation.processing;version="1.0", \
>> >>
>> >> what's going on where is the 1.2 version coming from ? Even in Felix's
>> >> default.properties file all I could find was the following :
>> >>
>> >> jre-1.7=,\
>> >>
>> javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE",\
>> >>  javax.activation;version="0.0.0.1_007_JavaSE",\
>> >>  javax.activity;version="0.0.0.1_007_JavaSE",\
>> >>
>> javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE",\

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Achim Nierbeck
Hi Serge,

as neither JDK7 or 8 are actually fully providing these packages it's best
to install the appropriate bundle for it.

regards, Achim

2015-07-24 16:36 GMT+02:00 Serge Huber :

> Hi JB,
>
> Thanks for the quick answer. I'm not sure I understand though, should I
> update it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also why
> I'm seeing the export with two versions ?
>
> Cheers,
>   Serge
>
> Envoyé de mon iPad
>
> > Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a
> écrit :
> >
> > Hi Serge,
> >
> > take a look in etc/jre.properties, and update javax.annotation to match
> the needed.
> >
> > Regards
> > JB
> >
> >> On 07/24/2015 03:49 PM, Serge Huber wrote:
> >> Hello,
> >>
> >> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
> >> 3.1.1 but upon startup I get this error :
> >>
> >> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
> >>
> >> at
> java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
> >>
> >> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
> >>
> >> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
> >>
> >> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
> >>
> >> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)
> >>
> >> at
> >>
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
> >>
> >>
> >> which seems very similar to the issue reported here :
> >>
> >> https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77
> >>
> >> Except that I'm not using JDK 8 but JDK 7
> >>
> >> However I'm seing something really strange with the framework bundle. If
> >> I look at the web console for my bundle I see the following imports :
> >>
> >> javax.annotation,version=1.0.0 from org.apache.felix.framework (0)
> >> 
> >> javax.annotation,version=1.2.0 from org.apache.felix.framework (0)
> >> 
> >>
> >> whereas on the felix.framework bundle I see this :
> >>
> >> javax.annotation,version=1.0.0
> >> javax.annotation,version=1.2.0
> >>
> >> however in Karaf's jre.properties I do only see the following for
> jre-1.7 :
> >>
> >> jre-1.7= \
> >>  javax.accessibility, \
> >>  javax.activation;version="1.1", \
> >>  javax.activity, \
> >>  javax.annotation;version="1.0", \
> >>  javax.annotation.processing;version="1.0", \
> >>
> >> what's going on where is the 1.2 version coming from ? Even in Felix's
> >> default.properties file all I could find was the following :
> >>
> >> jre-1.7=,\
> >>
> javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE",\
> >>  javax.activation;version="0.0.0.1_007_JavaSE",\
> >>  javax.activity;version="0.0.0.1_007_JavaSE",\
> >>
> javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE",\
> >>  javax.annotation;version="0.0.0.1_007_JavaSE",\
> >>
> >> any help would be greatly appreciated, I'm really at a loss here. If it
> >> helps here is the list of features I have installed :
> >>
> >> 
> >> shell
> >> ssh
> >> management
> >> bundle
> >> config
> >> deployer
> >> diagnostic
> >> instance
> >> kar
> >> feature
> >> log
> >> package
> >> service
> >> system
> >> scheduler
> >> webconsole
> >> cxf
> >> checker-feature
> >> 
> >>
> >> (the checker-feature is my application)
> >>
> >> cheers,
> >>   Serge...
> >>
> >>
> >> - -- --- -=[ shuber at jahia dot com ]= --- -- -
> >> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
> >> Acacias, Switzerland
> >> twitter: @sergehuber 
> >>
> >> Jahia is a leading open source User eXperience Platform (UXP) vendor,
> >> relentlessly working at transforming a siloed industry into a
> >> user-driven one, beyond technology constraints - http://www.jahia.com
> >> 

Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Serge Huber
Hi JB,

Thanks for the quick answer. I'm not sure I understand though, should I update 
it to 1.2 ? I thought JDK 7 doesn't support it ? Any idea also why I'm seeing 
the export with two versions ?

Cheers,
  Serge

Envoyé de mon iPad

> Le 24 juil. 2015 à 16:02, Jean-Baptiste Onofré  a écrit :
> 
> Hi Serge,
> 
> take a look in etc/jre.properties, and update javax.annotation to match the 
> needed.
> 
> Regards
> JB
> 
>> On 07/24/2015 03:49 PM, Serge Huber wrote:
>> Hello,
>> 
>> I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
>> 3.1.1 but upon startup I get this error :
>> 
>> Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority
>> 
>> at
>> org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)
>> 
>> at
>> org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)
>> 
>> at
>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)
>> 
>> at
>> org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)
>> 
>> at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]
>> 
>> at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]
>> 
>> at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]
>> 
>> at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]
>> 
>> at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]
>> 
>> at
>> org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)
>> 
>> at
>> org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)
>> 
>> at
>> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)
>> 
>> at
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)
>> 
>> at
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)
>> 
>> at
>> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
>> 
>> 
>> which seems very similar to the issue reported here :
>> 
>> https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77
>> 
>> Except that I'm not using JDK 8 but JDK 7
>> 
>> However I'm seing something really strange with the framework bundle. If
>> I look at the web console for my bundle I see the following imports :
>> 
>> javax.annotation,version=1.0.0 from org.apache.felix.framework (0)
>> 
>> javax.annotation,version=1.2.0 from org.apache.felix.framework (0)
>> 
>> 
>> whereas on the felix.framework bundle I see this :
>> 
>> javax.annotation,version=1.0.0
>> javax.annotation,version=1.2.0
>> 
>> however in Karaf's jre.properties I do only see the following for jre-1.7 :
>> 
>> jre-1.7= \
>>  javax.accessibility, \
>>  javax.activation;version="1.1", \
>>  javax.activity, \
>>  javax.annotation;version="1.0", \
>>  javax.annotation.processing;version="1.0", \
>> 
>> what's going on where is the 1.2 version coming from ? Even in Felix's
>> default.properties file all I could find was the following :
>> 
>> jre-1.7=,\
>>  javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE",\
>>  javax.activation;version="0.0.0.1_007_JavaSE",\
>>  javax.activity;version="0.0.0.1_007_JavaSE",\
>>  
>> javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE",\
>>  javax.annotation;version="0.0.0.1_007_JavaSE",\
>> 
>> any help would be greatly appreciated, I'm really at a loss here. If it
>> helps here is the list of features I have installed :
>> 
>> 
>> shell
>> ssh
>> management
>> bundle
>> config
>> deployer
>> diagnostic
>> instance
>> kar
>> feature
>> log
>> package
>> service
>> system
>> scheduler
>> webconsole
>> cxf
>> checker-feature
>> 
>> 
>> (the checker-feature is my application)
>> 
>> cheers,
>>   Serge...
>> 
>> 
>> - -- --- -=[ shuber at jahia dot com ]= --- -- -
>> CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
>> Acacias, Switzerland
>> twitter: @sergehuber 
>> 
>> Jahia is a leading open source User eXperience Platform (UXP) vendor,
>> relentlessly working at transforming a siloed industry into a
>> user-driven one, beyond technology constraints - http://www.jahia.com
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


Re: Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Jean-Baptiste Onofré

Hi Serge,

take a look in etc/jre.properties, and update javax.annotation to match 
the needed.


Regards
JB

On 07/24/2015 03:49 PM, Serge Huber wrote:

Hello,

I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF
3.1.1 but upon startup I get this error :

Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority

at
org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)

at
org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)

at
org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)

at
org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)

at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]

at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]

at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]

at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]

at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]

at
org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)

at
org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)

at
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)


which seems very similar to the issue reported here :

https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77

Except that I'm not using JDK 8 but JDK 7

However I'm seing something really strange with the framework bundle. If
I look at the web console for my bundle I see the following imports :

javax.annotation,version=1.0.0 from org.apache.felix.framework (0)

javax.annotation,version=1.2.0 from org.apache.felix.framework (0)


whereas on the felix.framework bundle I see this :

javax.annotation,version=1.0.0
javax.annotation,version=1.2.0

however in Karaf's jre.properties I do only see the following for jre-1.7 :

jre-1.7= \
  javax.accessibility, \
  javax.activation;version="1.1", \
  javax.activity, \
  javax.annotation;version="1.0", \
  javax.annotation.processing;version="1.0", \

what's going on where is the 1.2 version coming from ? Even in Felix's
default.properties file all I could find was the following :

jre-1.7=,\
  javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE",\
  javax.activation;version="0.0.0.1_007_JavaSE",\
  javax.activity;version="0.0.0.1_007_JavaSE",\
  
javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE",\
  javax.annotation;version="0.0.0.1_007_JavaSE",\

any help would be greatly appreciated, I'm really at a loss here. If it
helps here is the list of features I have installed :


 shell
 ssh
 management
 bundle
 config
 deployer
 diagnostic
 instance
 kar
 feature
 log
 package
 service
 system
 scheduler
 webconsole
 cxf
 checker-feature


(the checker-feature is my application)

cheers,
   Serge...


- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227
Acacias, Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a
user-driven one, beyond technology constraints - http://www.jahia.com




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


Help need with Karaf 4.0.0 + CXF 3.1.1

2015-07-24 Thread Serge Huber
Hello,

I'm currently trying to develop a REST API using Karaf 4.0.0 and CXF 3.1.1
but upon startup I get this error :

Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority

at
org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(AnnotationUtils.java:85)

at
org.apache.cxf.jaxrs.provider.ProviderFactory.getFilterPriority(ProviderFactory.java:1172)

at
org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1031)

at
org.apache.cxf.jaxrs.provider.ProviderFactory$BindingPriorityComparator.compare(ProviderFactory.java:1021)

at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)[:1.7.0_79]

at java.util.TimSort.sort(TimSort.java:189)[:1.7.0_79]

at java.util.TimSort.sort(TimSort.java:173)[:1.7.0_79]

at java.util.Arrays.sort(Arrays.java:659)[:1.7.0_79]

at java.util.Collections.sort(Collections.java:217)[:1.7.0_79]

at
org.apache.cxf.jaxrs.provider.ServerProviderFactory.setProviders(ServerProviderFactory.java:247)

at
org.apache.cxf.jaxrs.provider.ProviderFactory.setUserProviders(ProviderFactory.java:753)

at
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:332)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:237)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)

at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)

which seems very similar to the issue reported here :

https://github.com/hstaudacher/osgi-jax-rs-connector/issues/77

Except that I'm not using JDK 8 but JDK 7

However I'm seing something really strange with the framework bundle. If I
look at the web console for my bundle I see the following imports :

javax.annotation,version=1.0.0 from org.apache.felix.framework (0)

javax.annotation,version=1.2.0 from org.apache.felix.framework (0)


whereas on the felix.framework bundle I see this :

javax.annotation,version=1.0.0
javax.annotation,version=1.2.0

however in Karaf's jre.properties I do only see the following for jre-1.7 :

jre-1.7= \
 javax.accessibility, \
 javax.activation;version="1.1", \
 javax.activity, \
 javax.annotation;version="1.0", \
 javax.annotation.processing;version="1.0", \

what's going on where is the 1.2 version coming from ? Even in Felix's
default.properties file all I could find was the following :

jre-1.7=, \
 javax.accessibility;uses:="javax.swing.text";version="0.0.0.1_007_JavaSE", \
 javax.activation;version="0.0.0.1_007_JavaSE", \
 javax.activity;version="0.0.0.1_007_JavaSE", \
 
javax.annotation.processing;uses:="javax.tools,javax.lang.model,javax.lang.model.element,javax.lang.model.util";version="0.0.0.1_007_JavaSE",
\
 javax.annotation;version="0.0.0.1_007_JavaSE", \

any help would be greatly appreciated, I'm really at a loss here. If it
helps here is the list of features I have installed :


shell
ssh
management
bundle
config
deployer
diagnostic
instance
kar
feature
log
package
service
system
scheduler
webconsole
cxf
checker-feature


(the checker-feature is my application)

cheers,
  Serge...


- -- --- -=[ shuber at jahia dot com ]= --- -- -
CTO & Co-founder - Jahia Solutions Group, 9 Routes de Jeunes, 1227 Acacias,
Switzerland
twitter: @sergehuber 

Jahia is a leading open source User eXperience Platform (UXP) vendor,
relentlessly working at transforming a siloed industry into a user-driven
one, beyond technology constraints - http://www.jahia.com