You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Daniel McGreal <d....@gmail.com> on 2016/09/28 15:50:02 UTC

Re: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)

Hi, I’m getting this now, but I already had 1.3.0.
Did you change anything else?
Anyone else know what’s going on?

Ta, Dan.


> On 1 Jul 2016, at 04:52, Allan C. <al...@gmail.com> wrote:
> 
> Please ignore this.
> 
> It's working after I've updated the xml namespace from 1.0.0 to 1.3.0.
> 
> Regards,
> Allan C.
> 
> 
> On Fri, Jul 1, 2016 at 8:15 AM, Allan C. <al...@gmail.com> wrote:
>> Hi,
>> 
>> I am trying to get my feature installed but encountered this exception:
>> 
>> 08:10:49,424 | ERROR | ShellUtil:149 | 44 | Exception caught while executing
>> command
>> org.osgi.service.resolver.ResolutionException: Unable to resolve
>> org.apache.karaf.features.core/4.0.5: missing requirement
>> [org.apache.karaf.features.core/4.0.5] osgi.wiring.package;
>> filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)"
>>        at
>> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[org.apache.felix.framework-5.4.0.jar:]
>>        at
>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:404)[org.apache.felix.framework-5.4.0.jar:]
>>        at
>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:179)[org.apache.felix.framework-5.4.0.jar:]
>>        at
>> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.karaf.features.core:4.0.5]
>>        at
>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:4.0.5]
>>        at
>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org.apache.karaf.features.core:4.0.5]
>>        at
>> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apache.karaf.features.core:4.0.5]
>>        at
>> java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_101]
>>        at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_101]
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_101]
>>        at java.lang.Thread.run(Thread.java:745)[:1.7.0_101]
>> 
>> This is my features.xml.
>> 
>> <features name="custom-features-1.0.0"
>> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>> <repository>mvn:org.apache.karaf.features/framework/4.0.5/xml/features</repository>
>> <repository>mvn:org.apache.karaf.features/standard/4.0.5/xml/features</repository>
>> <repository>mvn:org.apache.karaf.features/enterprise/4.0.5/xml/features</repository>
>> <repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0/xml/features</repository>
>> <repository>mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features</repository>
>> <repository>mvn:org.apache.cxf.karaf/apache-cxf/3.0.4/xml/features</repository>
>> 
>> <feature name="feature-rest" version="1.0.0">
>> <feature version="1.3.0">transaction</feature>
>> <feature version="1.0.4">jpa</feature>
>> <feature version="4.0.5">jndi</feature>
>> <feature version="4.3.6.Final">hibernate</feature>
>> 
>> <feature version="2.15.1">camel-core</feature>
>> <feature version="2.15.1">camel-blueprint</feature>
>> <feature version="2.15.1">camel-bindy</feature>
>> <feature version="2.15.1">camel-jpa</feature>
>> <feature version="2.15.1">camel-cxf</feature>
>> <feature version="2.15.1">camel-spring</feature>
>> <feature version="2.15.1">camel-jetty</feature>
>> 
>> <feature version="0.8.0">pax-jdbc-mysql</feature>
>> <feature version="0.8.0">pax-jdbc-pool-dbcp2</feature>
>> <feature version="0.8.0">pax-jdbc-config</feature>
>> 
>> <bundle>mvn:net.sf.ehcache/ehcache/2.9.1</bundle>
>> <bundle>mvn:org.apache.shiro/shiro-core/1.2.3</bundle>
>> <bundle>mvn:org.apache.shiro/shiro-ehcache/1.2.3</bundle>
>> <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.4.3</bundle>
>> <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.4.3</bundle>
>> <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.4.3</bundle>
>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.4.3</bundle>
>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.4.3</bundle>
>> <bundle>mvn:javax.ws.rs/javax.ws.rs-api/2.0.1</bundle>
>> <bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
>> <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.1.Final</bundle>
>> </feature>
>> </features>
>> 
>> Does anyone know which bundle or feature I am missing?
>> 
>> Regards,
>> Allan C.


Re: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)

Posted by Daniel McGreal <d....@gmail.com>.
Hi all Karafians,

It turns out that this exception is something that can be thrown in response to some other problem. In my case, a uses constraint violation:

{root=Uses constraint violation. Unable to resolve resource utils.common [utils.common/3.1.0.BUILD-201609281517] because it is exposed to package 'rx' from resources io.reactivex.rxjava [io.reactivex.rxjava/1.1.0] and io.reactivex.rxjava-reactive-streams [io.reactivex.rxjava-reactive-streams/1.0.1] via two dependency chains.

I found this by breaking in the ResolverImpl and inspecting faultyResources, which contained the real error. I do not know why the true cause is hidden.

I’ve created a JIRA at KARAF-4750 - Installing a feature can result in an ResolutionException which incorrectly reports the underlying issue <https://issues.apache.org/jira/browse/KARAF-4750>.

Best, Dan.


> On 30 Sep 2016, at 08:51, Daniel McGreal <d....@gmail.com> wrote:
> 
> Can I get any assistance with this?
> 
> How can I get logs from the wiring process?
> Any clue why org.eclipse.equinox.region.management might not be resolved?
> 
> Thanks, Dan.
> 
>> On 29 Sep 2016, at 10:20, Daniel McGreal <d.j.mcgreal@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Any ideas how I can proceed to debug this? Can I get any logs from the feature resolution process to find out why the Eclipse bundle comes into the frame?
> 


Re: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)

Posted by Daniel McGreal <d....@gmail.com>.
Can I get any assistance with this?

How can I get logs from the wiring process?
Any clue why org.eclipse.equinox.region.management might not be resolved?

Thanks, Dan.

> On 29 Sep 2016, at 10:20, Daniel McGreal <d....@gmail.com> wrote:
> 
> Any ideas how I can proceed to debug this? Can I get any logs from the feature resolution process to find out why the Eclipse bundle comes into the frame?


Re: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)

Posted by Daniel McGreal <d....@gmail.com>.
If I install the feature, exactly as Allan C has it in the first message on this topic, I get no such error, even with the 1.0.0 namespace.

Any ideas how I can proceed to debug this? Can I get any logs from the feature resolution process to find out why the Eclipse bundle comes into the frame?

Any help on this greatly appreciated.
Best, Dan.



> On 28 Sep 2016, at 17:18, Daniel McGreal <d....@gmail.com> wrote:
> 
> I see that org.apache.karaf.features.core is exporting and importing org.eclipse.equinox.region.management.
> I don’t really know where to go from here.
> 
>> On 28 Sep 2016, at 16:50, Daniel McGreal <d....@gmail.com> wrote:
>> 
>> Hi, I’m getting this now, but I already had 1.3.0.
>> Did you change anything else?
>> Anyone else know what’s going on?
>> 
>> Ta, Dan.
>> 
>> 
>>> On 1 Jul 2016, at 04:52, Allan C. <al...@gmail.com> wrote:
>>> 
>>> Please ignore this.
>>> 
>>> It's working after I've updated the xml namespace from 1.0.0 to 1.3.0.
>>> 
>>> Regards,
>>> Allan C.
>>> 
>>> 
>>> On Fri, Jul 1, 2016 at 8:15 AM, Allan C. <al...@gmail.com> wrote:
>>>> Hi,
>>>> 
>>>> I am trying to get my feature installed but encountered this exception:
>>>> 
>>>> 08:10:49,424 | ERROR | ShellUtil:149 | 44 | Exception caught while executing
>>>> command
>>>> org.osgi.service.resolver.ResolutionException: Unable to resolve
>>>> org.apache.karaf.features.core/4.0.5: missing requirement
>>>> [org.apache.karaf.features.core/4.0.5] osgi.wiring.package;
>>>> filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)"
>>>>      at
>>>> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[org.apache.felix.framework-5.4.0.jar:]
>>>>      at
>>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:404)[org.apache.felix.framework-5.4.0.jar:]
>>>>      at
>>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:179)[org.apache.felix.framework-5.4.0.jar:]
>>>>      at
>>>> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.karaf.features.core:4.0.5]
>>>>      at
>>>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:4.0.5]
>>>>      at
>>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org.apache.karaf.features.core:4.0.5]
>>>>      at
>>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apache.karaf.features.core:4.0.5]
>>>>      at
>>>> java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_101]
>>>>      at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_101]
>>>>      at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_101]
>>>>      at java.lang.Thread.run(Thread.java:745)[:1.7.0_101]
>>>> 
>>>> This is my features.xml.
>>>> 
>>>> <features name="custom-features-1.0.0"
>>>> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>>> <repository>mvn:org.apache.karaf.features/framework/4.0.5/xml/features</repository>
>>>> <repository>mvn:org.apache.karaf.features/standard/4.0.5/xml/features</repository>
>>>> <repository>mvn:org.apache.karaf.features/enterprise/4.0.5/xml/features</repository>
>>>> <repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0/xml/features</repository>
>>>> <repository>mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features</repository>
>>>> <repository>mvn:org.apache.cxf.karaf/apache-cxf/3.0.4/xml/features</repository>
>>>> 
>>>> <feature name="feature-rest" version="1.0.0">
>>>> <feature version="1.3.0">transaction</feature>
>>>> <feature version="1.0.4">jpa</feature>
>>>> <feature version="4.0.5">jndi</feature>
>>>> <feature version="4.3.6.Final">hibernate</feature>
>>>> 
>>>> <feature version="2.15.1">camel-core</feature>
>>>> <feature version="2.15.1">camel-blueprint</feature>
>>>> <feature version="2.15.1">camel-bindy</feature>
>>>> <feature version="2.15.1">camel-jpa</feature>
>>>> <feature version="2.15.1">camel-cxf</feature>
>>>> <feature version="2.15.1">camel-spring</feature>
>>>> <feature version="2.15.1">camel-jetty</feature>
>>>> 
>>>> <feature version="0.8.0">pax-jdbc-mysql</feature>
>>>> <feature version="0.8.0">pax-jdbc-pool-dbcp2</feature>
>>>> <feature version="0.8.0">pax-jdbc-config</feature>
>>>> 
>>>> <bundle>mvn:net.sf.ehcache/ehcache/2.9.1</bundle>
>>>> <bundle>mvn:org.apache.shiro/shiro-core/1.2.3</bundle>
>>>> <bundle>mvn:org.apache.shiro/shiro-ehcache/1.2.3</bundle>
>>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.4.3</bundle>
>>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.4.3</bundle>
>>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.4.3</bundle>
>>>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.4.3</bundle>
>>>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.4.3</bundle>
>>>> <bundle>mvn:javax.ws.rs/javax.ws.rs-api/2.0.1</bundle>
>>>> <bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
>>>> <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.1.Final</bundle>
>>>> </feature>
>>>> </features>
>>>> 
>>>> Does anyone know which bundle or feature I am missing?
>>>> 
>>>> Regards,
>>>> Allan C.
>> 
> 


Re: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)

Posted by Daniel McGreal <d....@gmail.com>.
I see that org.apache.karaf.features.core is exporting and importing org.eclipse.equinox.region.management.
I don’t really know where to go from here.

> On 28 Sep 2016, at 16:50, Daniel McGreal <d....@gmail.com> wrote:
> 
> Hi, I’m getting this now, but I already had 1.3.0.
> Did you change anything else?
> Anyone else know what’s going on?
> 
> Ta, Dan.
> 
> 
>> On 1 Jul 2016, at 04:52, Allan C. <al...@gmail.com> wrote:
>> 
>> Please ignore this.
>> 
>> It's working after I've updated the xml namespace from 1.0.0 to 1.3.0.
>> 
>> Regards,
>> Allan C.
>> 
>> 
>> On Fri, Jul 1, 2016 at 8:15 AM, Allan C. <al...@gmail.com> wrote:
>>> Hi,
>>> 
>>> I am trying to get my feature installed but encountered this exception:
>>> 
>>> 08:10:49,424 | ERROR | ShellUtil:149 | 44 | Exception caught while executing
>>> command
>>> org.osgi.service.resolver.ResolutionException: Unable to resolve
>>> org.apache.karaf.features.core/4.0.5: missing requirement
>>> [org.apache.karaf.features.core/4.0.5] osgi.wiring.package;
>>> filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)"
>>>       at
>>> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[org.apache.felix.framework-5.4.0.jar:]
>>>       at
>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:404)[org.apache.felix.framework-5.4.0.jar:]
>>>       at
>>> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:179)[org.apache.felix.framework-5.4.0.jar:]
>>>       at
>>> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.karaf.features.core:4.0.5]
>>>       at
>>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:4.0.5]
>>>       at
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org.apache.karaf.features.core:4.0.5]
>>>       at
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apache.karaf.features.core:4.0.5]
>>>       at
>>> java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_101]
>>>       at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_101]
>>>       at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_101]
>>>       at java.lang.Thread.run(Thread.java:745)[:1.7.0_101]
>>> 
>>> This is my features.xml.
>>> 
>>> <features name="custom-features-1.0.0"
>>> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
>>> <repository>mvn:org.apache.karaf.features/framework/4.0.5/xml/features</repository>
>>> <repository>mvn:org.apache.karaf.features/standard/4.0.5/xml/features</repository>
>>> <repository>mvn:org.apache.karaf.features/enterprise/4.0.5/xml/features</repository>
>>> <repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.8.0/xml/features</repository>
>>> <repository>mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features</repository>
>>> <repository>mvn:org.apache.cxf.karaf/apache-cxf/3.0.4/xml/features</repository>
>>> 
>>> <feature name="feature-rest" version="1.0.0">
>>> <feature version="1.3.0">transaction</feature>
>>> <feature version="1.0.4">jpa</feature>
>>> <feature version="4.0.5">jndi</feature>
>>> <feature version="4.3.6.Final">hibernate</feature>
>>> 
>>> <feature version="2.15.1">camel-core</feature>
>>> <feature version="2.15.1">camel-blueprint</feature>
>>> <feature version="2.15.1">camel-bindy</feature>
>>> <feature version="2.15.1">camel-jpa</feature>
>>> <feature version="2.15.1">camel-cxf</feature>
>>> <feature version="2.15.1">camel-spring</feature>
>>> <feature version="2.15.1">camel-jetty</feature>
>>> 
>>> <feature version="0.8.0">pax-jdbc-mysql</feature>
>>> <feature version="0.8.0">pax-jdbc-pool-dbcp2</feature>
>>> <feature version="0.8.0">pax-jdbc-config</feature>
>>> 
>>> <bundle>mvn:net.sf.ehcache/ehcache/2.9.1</bundle>
>>> <bundle>mvn:org.apache.shiro/shiro-core/1.2.3</bundle>
>>> <bundle>mvn:org.apache.shiro/shiro-ehcache/1.2.3</bundle>
>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.4.3</bundle>
>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.4.3</bundle>
>>> <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.4.3</bundle>
>>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.4.3</bundle>
>>> <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.4.3</bundle>
>>> <bundle>mvn:javax.ws.rs/javax.ws.rs-api/2.0.1</bundle>
>>> <bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
>>> <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.1.Final</bundle>
>>> </feature>
>>> </features>
>>> 
>>> Does anyone know which bundle or feature I am missing?
>>> 
>>> Regards,
>>> Allan C.
>