You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Krzysztof Sobkowiak <kr...@gmail.com> on 2015/03/29 23:54:46 UTC

Re: camel-swagger and Scala 2.11 (was: [VOTE] Apache Camel 2.15.1)

Btw. I can see the camel-swagger bundle uses Scala 2.10. This is probably caused by missing swagger and json4s bundles
for Scala 2.11. The next ServiceMix bundles will provide the bundles for Scala 2.11.

I have another question. ServiceMix defines a feature swagger. It looks like the Camel's camel-swagger, but without
camel-swagger and jsr311-api bundles. Would it be possible to define a separate swagger feature in Camel  and use it
then  in camel-swagger feature? We could then use the Camel's swagger feature and remove it from ServiceMix features.

Regards
Krzysztof


On 29.03.2015 23:34, Christian Müller wrote:
> Ok, got it... scala-reflect AND scala-library...
>
> Best,
>
>
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Member
> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
> On Sun, Mar 29, 2015 at 11:31 PM, Krzysztof Sobkowiak <
> krzys.sobkowiak@gmail.com> wrote:
>
>> Following worked for me
>>
>> install -s mvn:org.scala-lang/scala-library/2.10.4
>> install -s mvn:org.scala-lang/scala-reflect/2.10.4
>> feature:install camel-swagger
>>
>> Regards
>> Krzysztof
>>
>>
>> On 29.03.2015 23:24, Krzysztof Sobkowiak wrote:
>>> Hi
>>>
>>> You must install mvn:org.scala-lang/scala-reflect/2.10.4. But next I
>> have new problem
>>> Error executing command: Can't install feature camel-swagger/0.0.0:
>>> Could not start bundle
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1
>> in
>>> feature(s) camel-swagger-2.15.1: Uses constraint violation. Unable to
>> resolve bundle revision
>>> org.apache.servicemix.bundles.swagger-core [167.0] because it is exposed
>> to package 'scala.collection.immutable' from
>>> bundle revisions org.scala-lang.scala-library [215.0] and
>> org.scala-lang.scala-library [138.0] via two dependency chains.
>>> Chain 1:
>>>   org.apache.servicemix.bundles.swagger-core [167.0]
>>>     import:
>> (&(osgi.wiring.package=scala.collection.immutable)(version>=2.10.0)(!(version>=3.0.0)))
>>>      |
>>>     export: osgi.wiring.package=scala.collection.immutable
>>>   org.scala-lang.scala-library [215.0]
>>>
>>> Chain 2:
>>>   org.apache.servicemix.bundles.swagger-core [167.0]
>>>     import:
>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0)))
>>>      |
>>>     export: osgi.wiring.package=scala.reflect.api;
>> uses:=scala.collection.immutable
>>>   org.scala-lang.scala-reflect [199.0]
>>>     import: (osgi.wiring.package=scala.collection.immutable)
>>>      |
>>>     export: osgi.wiring.package=scala.collection.immutable
>>>   org.scala-lang.scala-library [138.0]
>>>
>>>
>>>
>>> Regards
>>> Krzysztof
>>>
>>>
>>>
>>> On 29.03.2015 22:07, Christian Müller wrote:
>>>> + 0
>>>>
>>>> The signature looks good.
>>>> I could install almost all bundles in Karaf 2.4.1.
>>>>
>>>> Some findings:
>>>> The camel-cxf feature doesn't install the camel-spring feature, which
>> is a
>>>> required dependency. This leads to errors like this one:
>>>>
>>>> ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting
>>>> mvn:org.apache.camel/camel-cxf/2.15.1
>> (org.osgi.framework.BundleException:
>>>> Unresolved constraint in bundle org.apache.camel.camel-cxf [105]:
>> Unable to
>>>> resolve 105.0: missing requirement [105.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))))
>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>> org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing
>>>> requirement [105.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))
>>>>     at
>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>     at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
>>>>     at
>>>>
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>> ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting/stopping
>>>> bundle. (org.osgi.framework.BundleException: Unresolved constraint in
>>>> bundle org.apache.camel.camel-cxf [105]: Unable to resolve 105.0:
>> missing
>>>> requirement [105.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))))
>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>> org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing
>>>> requirement [105.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))
>>>>     at
>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>     at
>> org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1491)
>>>>     at
>>>>
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:334)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>
>>>> The work around is easy. Install camel-spring before you install
>> camel-cxf.
>>>> I will add this to the known issues section in the Camel 2.15 release
>> notes.
>>>>
>>>> The camel-swagger feature doesn't install the scala bundle, which is a
>>>> required dependency. This leads to errors like this one:
>>>>
>>>> ERROR: Bundle org.apache.servicemix.bundles.swagger-core [89] Error
>>>> starting
>>>>
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1
>>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>> org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0:
>>>> missing requirement [89.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0))))
>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>> org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0:
>>>> missing requirement [89.0] osgi.wiring.package;
>>>>
>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0)))
>>>>     at
>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>     at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
>>>>     at
>>>>
>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>
>>>> I'm wondering, because mvn:org.scala-lang/scala-library/2.10.4 doesn't
>>>> export 'scala.reflect.api'...
>>>>
>>>>
>>>>
>>>> The Camel documentation still mentions 'Copyright 2007-2014', but I have
>>>> updated it now. It should be ok in the following releases...
>>>>
>>>> Best,
>>>> Christian
>>>>
>>>>
>>>>
>>>> On Sat, Mar 28, 2015 at 3:22 PM, Willem Jiang <wi...@gmail.com>
>>>> wrote:
>>>>
>>>>> This is a vote to release Apache Camel 2.15.1, a patch release coming
>>>>>
>>>>> with about 55 issues fixed.
>>>>>
>>>>> Release notes:
>>>>> 2.15.1
>>>>>
>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12329441&styleName=Html&projectId=12311211
>>>>>
>>>>>
>>>>> Staging repo:
>>>>> 2.15.1
>>>>> https://repository.apache.org/content/repositories/orgapachecamel-1029
>>>>>
>>>>>
>>>>>
>>>>> Tarballs:
>>>>> 2.15.1
>>>>>
>> https://repository.apache.org/content/repositories/orgapachecamel-1029/org/apache/camel/apache-camel/2.14.2/
>>>>>
>>>>>
>>>>> Tag:
>>>>> 2.15.1
>>>>>
>> https://git-wip-us.apache.org/repos/asf?p=camel.git;a=commit;h=e18459e53cf77514bb0fdfeceb423c456bbc4d9d
>>>>> Please test this release candidate and cast your vote.
>>>>> [ ] +1 Release the binary as Apache Camel 2.15.1
>>>>> [ ] -1 Veto the release (provide specific comments)
>>>>> Vote is open for at least 72 hours.
>>>>>
>>>>>
>>>>> --
>>>>> Willem Jiang
>>>>>
>>>>> Red Hat, Inc.
>>>>> Web: http://www.redhat.com
>>>>> Blog: http://willemjiang.blogspot.com (English)
>>>>> http://jnn.iteye.com (Chinese)
>>>>> Twitter: willemjiang
>>>>> Weibo: 姜宁willem
>>>>>
>>>>>
>>>>>
>>>>>
>> --
>> Krzysztof Sobkowiak
>>
>> JEE & OSS Architect
>> Senior Solution Architect @ Capgemini SSC <
>> http://www.pl.capgemini-sdm.com/en>
>> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC
>>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en>
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC

Re: camel-swagger and Scala 2.11 (was: [VOTE] Apache Camel 2.15.1)

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah maybe we can have a scala-210 and scala-211 feature for each of
those Scala versions. As some libraries requires one or the other
version.



On Sun, Mar 29, 2015 at 11:54 PM, Krzysztof Sobkowiak
<kr...@gmail.com> wrote:
> Btw. I can see the camel-swagger bundle uses Scala 2.10. This is probably caused by missing swagger and json4s bundles
> for Scala 2.11. The next ServiceMix bundles will provide the bundles for Scala 2.11.
>
> I have another question. ServiceMix defines a feature swagger. It looks like the Camel's camel-swagger, but without
> camel-swagger and jsr311-api bundles. Would it be possible to define a separate swagger feature in Camel  and use it
> then  in camel-swagger feature? We could then use the Camel's swagger feature and remove it from ServiceMix features.
>
> Regards
> Krzysztof
>
>
> On 29.03.2015 23:34, Christian Müller wrote:
>> Ok, got it... scala-reflect AND scala-library...
>>
>> Best,
>>
>>
>> Christian
>> -----------------
>>
>> Software Integration Specialist
>>
>> Apache Member
>> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
>> Apache Incubator PMC Member
>>
>> https://www.linkedin.com/pub/christian-mueller/11/551/642
>>
>> On Sun, Mar 29, 2015 at 11:31 PM, Krzysztof Sobkowiak <
>> krzys.sobkowiak@gmail.com> wrote:
>>
>>> Following worked for me
>>>
>>> install -s mvn:org.scala-lang/scala-library/2.10.4
>>> install -s mvn:org.scala-lang/scala-reflect/2.10.4
>>> feature:install camel-swagger
>>>
>>> Regards
>>> Krzysztof
>>>
>>>
>>> On 29.03.2015 23:24, Krzysztof Sobkowiak wrote:
>>>> Hi
>>>>
>>>> You must install mvn:org.scala-lang/scala-reflect/2.10.4. But next I
>>> have new problem
>>>> Error executing command: Can't install feature camel-swagger/0.0.0:
>>>> Could not start bundle
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1
>>> in
>>>> feature(s) camel-swagger-2.15.1: Uses constraint violation. Unable to
>>> resolve bundle revision
>>>> org.apache.servicemix.bundles.swagger-core [167.0] because it is exposed
>>> to package 'scala.collection.immutable' from
>>>> bundle revisions org.scala-lang.scala-library [215.0] and
>>> org.scala-lang.scala-library [138.0] via two dependency chains.
>>>> Chain 1:
>>>>   org.apache.servicemix.bundles.swagger-core [167.0]
>>>>     import:
>>> (&(osgi.wiring.package=scala.collection.immutable)(version>=2.10.0)(!(version>=3.0.0)))
>>>>      |
>>>>     export: osgi.wiring.package=scala.collection.immutable
>>>>   org.scala-lang.scala-library [215.0]
>>>>
>>>> Chain 2:
>>>>   org.apache.servicemix.bundles.swagger-core [167.0]
>>>>     import:
>>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0)))
>>>>      |
>>>>     export: osgi.wiring.package=scala.reflect.api;
>>> uses:=scala.collection.immutable
>>>>   org.scala-lang.scala-reflect [199.0]
>>>>     import: (osgi.wiring.package=scala.collection.immutable)
>>>>      |
>>>>     export: osgi.wiring.package=scala.collection.immutable
>>>>   org.scala-lang.scala-library [138.0]
>>>>
>>>>
>>>>
>>>> Regards
>>>> Krzysztof
>>>>
>>>>
>>>>
>>>> On 29.03.2015 22:07, Christian Müller wrote:
>>>>> + 0
>>>>>
>>>>> The signature looks good.
>>>>> I could install almost all bundles in Karaf 2.4.1.
>>>>>
>>>>> Some findings:
>>>>> The camel-cxf feature doesn't install the camel-spring feature, which
>>> is a
>>>>> required dependency. This leads to errors like this one:
>>>>>
>>>>> ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting
>>>>> mvn:org.apache.camel/camel-cxf/2.15.1
>>> (org.osgi.framework.BundleException:
>>>>> Unresolved constraint in bundle org.apache.camel.camel-cxf [105]:
>>> Unable to
>>>>> resolve 105.0: missing requirement [105.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))))
>>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>>> org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing
>>>>> requirement [105.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))
>>>>>     at
>>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>>     at
>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
>>>>>     at
>>>>>
>>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> ERROR: Bundle org.apache.camel.camel-cxf [105] Error starting/stopping
>>>>> bundle. (org.osgi.framework.BundleException: Unresolved constraint in
>>>>> bundle org.apache.camel.camel-cxf [105]: Unable to resolve 105.0:
>>> missing
>>>>> requirement [105.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0))))
>>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>>> org.apache.camel.camel-cxf [105]: Unable to resolve 105.0: missing
>>>>> requirement [105.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=org.apache.camel.spring)(version>=2.15.0)(!(version>=2.16.0)))
>>>>>     at
>>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>>     at
>>> org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1491)
>>>>>     at
>>>>>
>>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:334)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>
>>>>> The work around is easy. Install camel-spring before you install
>>> camel-cxf.
>>>>> I will add this to the known issues section in the Camel 2.15 release
>>> notes.
>>>>>
>>>>> The camel-swagger feature doesn't install the scala bundle, which is a
>>>>> required dependency. This leads to errors like this one:
>>>>>
>>>>> ERROR: Bundle org.apache.servicemix.bundles.swagger-core [89] Error
>>>>> starting
>>>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.swagger-core/1.3.12_1
>>>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>>> org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0:
>>>>> missing requirement [89.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0))))
>>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>>>> org.apache.servicemix.bundles.swagger-core [89]: Unable to resolve 89.0:
>>>>> missing requirement [89.0] osgi.wiring.package;
>>>>>
>>> (&(osgi.wiring.package=scala.reflect.api)(version>=2.10.0)(!(version>=3.0.0)))
>>>>>     at
>>>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
>>>>>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
>>>>>     at
>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
>>>>>     at
>>>>>
>>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>
>>>>> I'm wondering, because mvn:org.scala-lang/scala-library/2.10.4 doesn't
>>>>> export 'scala.reflect.api'...
>>>>>
>>>>>
>>>>>
>>>>> The Camel documentation still mentions 'Copyright 2007-2014', but I have
>>>>> updated it now. It should be ok in the following releases...
>>>>>
>>>>> Best,
>>>>> Christian
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 28, 2015 at 3:22 PM, Willem Jiang <wi...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> This is a vote to release Apache Camel 2.15.1, a patch release coming
>>>>>>
>>>>>> with about 55 issues fixed.
>>>>>>
>>>>>> Release notes:
>>>>>> 2.15.1
>>>>>>
>>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12329441&styleName=Html&projectId=12311211
>>>>>>
>>>>>>
>>>>>> Staging repo:
>>>>>> 2.15.1
>>>>>> https://repository.apache.org/content/repositories/orgapachecamel-1029
>>>>>>
>>>>>>
>>>>>>
>>>>>> Tarballs:
>>>>>> 2.15.1
>>>>>>
>>> https://repository.apache.org/content/repositories/orgapachecamel-1029/org/apache/camel/apache-camel/2.14.2/
>>>>>>
>>>>>>
>>>>>> Tag:
>>>>>> 2.15.1
>>>>>>
>>> https://git-wip-us.apache.org/repos/asf?p=camel.git;a=commit;h=e18459e53cf77514bb0fdfeceb423c456bbc4d9d
>>>>>> Please test this release candidate and cast your vote.
>>>>>> [ ] +1 Release the binary as Apache Camel 2.15.1
>>>>>> [ ] -1 Veto the release (provide specific comments)
>>>>>> Vote is open for at least 72 hours.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Willem Jiang
>>>>>>
>>>>>> Red Hat, Inc.
>>>>>> Web: http://www.redhat.com
>>>>>> Blog: http://willemjiang.blogspot.com (English)
>>>>>> http://jnn.iteye.com (Chinese)
>>>>>> Twitter: willemjiang
>>>>>> Weibo: 姜宁willem
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>> --
>>> Krzysztof Sobkowiak
>>>
>>> JEE & OSS Architect
>>> Senior Solution Architect @ Capgemini SSC <
>>> http://www.pl.capgemini-sdm.com/en>
>>> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC
>>>
>
> --
> Krzysztof Sobkowiak
>
> JEE & OSS Architect
> Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en>
> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/