Re: Error installing a feature

2021-03-09 Thread Oleg Cohen
Hi JB,

Thank you for the info. It seems to be the order of doing installs. Let me try 
to come up with a small generic example and send you the info.

Best,
Oleg

> On Mar 9, 2021, at 4:55 AM, Jean-Baptiste Onofre  wrote:
> 
> Hi Oleg,
> 
> It seems you have the same as 
> https://issues.apache.org/jira/browse/KARAF-6916 
> 
> 
> So, I guess you also have a refresh, right ?
> 
> I never saw such issue, but if you can produce a test case to reproduce it, I 
> will investigate.
> 
> Thanks,
> Regards
> JB
> 
>> Le 9 mars 2021 à 10:49, Oleg Cohen > > a écrit :
>> 
>> Greetings,
>> 
>> When installing a feature I am getting the following exception, which seems 
>> pretty fundamental:
>> 
>> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
>> missing requirement [root] osgi.identity; osgi.identity=bundle; 
>> type=karaf.feature; version="[4.3.0,4.3.0]"; 
>> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
>>  [caused by: Unable to resolve bundle/4.3.0: missing requirement 
>> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
>> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: 
>> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
>> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
>> filter:="(osgi.wiring.package=javax.management)"]]
>>  at 
>> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>>  at 
>> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434)
>>  at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421)
>>  at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
>>  at 
>> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
>>  at 
>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:392)
>>  at 
>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
>>  at 
>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
>>  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>  at 
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>>  at 
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
>>  at java.base/java.lang.Thread.run(Thread.java:832)
>> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
>> resolve bundle/4.3.0: missing requirement [bundle/4.3.0] osgi.identity; 
>> osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
>> version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve 
>> org.apache.karaf.bundle.core/4.3.0: missing requirement 
>> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
>> filter:="(osgi.wiring.package=javax.management)"]
>>  at 
>> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>>  ... 12 more
>> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
>> resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
>> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
>> filter:="(osgi.wiring.package=javax.management)"
>>  at 
>> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>>  ... 13 more
>> Error executing command: Unable to resolve root: missing requirement [root] 
>> osgi.identity; osgi.identity=bundle; type=karaf.feature; 
>> version="[4.3.0,4.3.0]"; 
>> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
>>  [caused by: Unable to resolve bundle/4.3.0: missing requirement 
>> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
>> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: 
>> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
>> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
>> filter:="(osgi.wiring.package=javax.management)”]]
>> 
>> 
>> I did check that the javax.management package is available:
>> 
>> karaf@root()> package:exports | grep javax.management
>> javax.management.loading 
>>   | 0.0.0  | 0   | org.apache.felix.framework
>> javax.management.modelmbean  
>>   | 0.0.0  | 0   | org.apache.felix.framework
>> javax.management.monitor 
>>   | 0.0.0  | 0   | org.apache.felix.framework
>> javax.management.openmbean  

Re: Error installing a feature

2021-03-09 Thread Jean-Baptiste Onofre
Hi Oleg,

It seems you have the same as https://issues.apache.org/jira/browse/KARAF-6916

So, I guess you also have a refresh, right ?

I never saw such issue, but if you can produce a test case to reproduce it, I 
will investigate.

Thanks,
Regards
JB

> Le 9 mars 2021 à 10:49, Oleg Cohen  a écrit :
> 
> Greetings,
> 
> When installing a feature I am getting the following exception, which seems 
> pretty fundamental:
> 
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
> missing requirement [root] osgi.identity; osgi.identity=bundle; 
> type=karaf.feature; version="[4.3.0,4.3.0]"; 
> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
>  [caused by: Unable to resolve bundle/4.3.0: missing requirement 
> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: 
> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.management)"]]
>   at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>   at 
> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434)
>   at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421)
>   at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
>   at 
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
>   at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:392)
>   at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
>   at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
>   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>   at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>   at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
>   at java.base/java.lang.Thread.run(Thread.java:832)
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> resolve bundle/4.3.0: missing requirement [bundle/4.3.0] osgi.identity; 
> osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
> version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve 
> org.apache.karaf.bundle.core/4.3.0: missing requirement 
> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.management)"]
>   at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>   ... 12 more
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to 
> resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.management)"
>   at 
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
>   ... 13 more
> Error executing command: Unable to resolve root: missing requirement [root] 
> osgi.identity; osgi.identity=bundle; type=karaf.feature; 
> version="[4.3.0,4.3.0]"; 
> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
>  [caused by: Unable to resolve bundle/4.3.0: missing requirement 
> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; 
> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: 
> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement 
> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.management)”]]
> 
> 
> I did check that the javax.management package is available:
> 
> karaf@root()> package:exports | grep javax.management
> javax.management.loading  
>  | 0.0.0  | 0   | org.apache.felix.framework
> javax.management.modelmbean   
>  | 0.0.0  | 0   | org.apache.felix.framework
> javax.management.monitor  
>  | 0.0.0  | 0   | org.apache.felix.framework
> javax.management.openmbean
>  | 0.0.0  | 0   | org.apache.felix.framework
> javax.management.relation 
>  | 0.0.0  | 0   | org.apache.felix.framework
> javax.management.remote.rmi   
>  | 0.0.0  | 0   | 

Error installing a feature

2021-03-09 Thread Oleg Cohen
Greetings,

When installing a feature I am getting the following exception, which seems 
pretty fundamental:

org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=bundle; 
type=karaf.feature; version="[4.3.0,4.3.0]"; 
filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
 [caused by: Unable to resolve bundle/4.3.0: missing requirement [bundle/4.3.0] 
osgi.identity; osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.karaf.bundle.core/4.3.0: missing requirement 
[org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"]]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
at 
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:392)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
bundle/4.3.0: missing requirement [bundle/4.3.0] osgi.identity; 
osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.karaf.bundle.core/4.3.0: missing requirement 
[org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"]
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
org.apache.karaf.bundle.core/4.3.0: missing requirement 
[org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)"
at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 13 more
Error executing command: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=bundle; type=karaf.feature; 
version="[4.3.0,4.3.0]"; 
filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))"
 [caused by: Unable to resolve bundle/4.3.0: missing requirement [bundle/4.3.0] 
osgi.identity; osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; 
version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve 
org.apache.karaf.bundle.core/4.3.0: missing requirement 
[org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.management)”]]


I did check that the javax.management package is available:

karaf@root()> package:exports | grep javax.management
javax.management.loading
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.modelmbean 
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.monitor
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.openmbean  
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.relation   
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.remote.rmi 
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.remote 
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management.timer  
   | 0.0.0  | 0   | org.apache.felix.framework
javax.management

Re: 4.0.0.M3 error installing cxf feature - User Error?

2015-06-20 Thread Erwin Hogeweg
FYI - I see this in the log file… 

2015-06-20 13:57:33,420 | ERROR | nsole user karaf | ShellUtil  
  | 42 - org.apache.karaf.shell.core - 4.0.0.M3 | Exception caught while 
executing command
org.apache.karaf.features.internal.util.MultiException: Error
at 
org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.init(MavenDownloadManager.java:84)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:350)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:347)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:178)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:261)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1061)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:960)[6:org.apache.karaf.features.core:4.0.0.M3]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]
Caused by: java.lang.IllegalArgumentException: Duplicate 
'osgi.service.blueprint.namespace' in: 
org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=http://cxf.apache.org/blueprint/core,org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=http://cxf.apache.org/configuration/beans,org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=http://cxf.apache.org/configuration/parameterized-types,org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=http://cxf.apache.org/configuration/securityorg.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=http://schemas.xmlsoap.org/wsdl/;,
at 
org.apache.karaf.features.internal.resolver.ResourceBuilder.parseStandardHeader(ResourceBuilder.java:991)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:205)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:65)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.region.Subsystem.createResource(Subsystem.java:552)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.region.Subsystem$1.downloaded(Subsystem.java:368)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:133)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:127)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:344)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:329)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.DefaultFuture.setValue(DefaultFuture.java:255)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:61)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:59)[6:org.apache.karaf.features.core:4.0.0.M3]
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_60]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_60]
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_60]
... 3 more

 On Jun 20, 2015, at 14:02, Erwin Hogeweg 

4.0.0.M3 error installing cxf feature - User Error?

2015-06-20 Thread Erwin Hogeweg
Hi -

Trying to install cxf feature in 4.0.0.M3, following the steps in the Cookbook, 
I am getting the errors below. I assume this is a user error, but apart from 
the Jira issue KARAF- cannot find any documentation on which version I 
should use.


karaf@root() feature:repo-add cxf 3.0.2
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.0.2/xml/features
karaf@root() feature:install -v cxf/3.0.2
Adding features: cxf/[3.0.2,3.0.2]
Error executing command: Error
karaf@root() 

Please advise.

Thanks,

Erwin



Re: 4.0.0.M3 error installing cxf feature - User Error?

2015-06-20 Thread Jean-Baptiste Onofré

I guess the same happens with a simple feature:install cxf ?

Regards
JB

On 06/20/2015 08:02 PM, Erwin Hogeweg wrote:

Hi -

Trying to install cxf feature in 4.0.0.M3, following the steps in the
Cookbook, I am getting the errors below. I assume this is a user error,
but apart from the Jira issue KARAF- cannot find any documentation
on which version I should use.


*karaf*@root() feature:repo-add cxf 3.0.2
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.0.2/xml/features
*karaf*@root() feature:install -v cxf/3.0.2
Adding features: cxf/[3.0.2,3.0.2]
Error executing command: Error
*karaf*@root()

Please advise.

Thanks,

Erwin



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


Re: Dependecy error installing HTTP feature

2015-03-10 Thread sykomaniac
Thanks very much for the help!

I uninstalled the servlet bundles and the jolokia agent then installed the
HTTP feature followed by the agent and it all installed and worked
perfectly!

Thanks again for the help!



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Dependecy-error-installing-HTTP-feature-tp4038890p4038916.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Dependecy error installing HTTP feature

2015-03-09 Thread sykomaniac
Hi,

I'm trying to get the jolokia agent set up on one of my karaf installs.

I've installed the osgi only bundle like so:

install -s mvn:org.jolokia/jolokia-osgi/1.2.3

I've also installed the following bundles to satisfy its dependencies:
install -s mvn:javax.servlet/servlet-api/2.3
install -s mvn:javax.servlet/javax.servlet-api/3.1.0

The state of the agent is now Resolved:
409 | Resolved |  80 | 1.2.3| Jolokia Agent
449 | Active   |  80 | 3.1.0| Java Servlet API
608 | Active   |  80 |  | mvn:javax.servlet/servlet-api/2.3

When I try and start it I get the following error:

Caused by: java.lang.Exception: Unable to execute command on bundle 409:
Activator start error in bundle org.jolokia.osgi [409].
at
org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:55)
... 20 more
Caused by: org.osgi.framework.BundleException: Activator start error in
bundle org.jolokia.osgi [409].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
at org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:27)
at
org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:53)
... 20 more
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/http/HttpContext
at java.lang.Class.getDeclaredConstructors0(Native Method)[:1.7.0_72]
at java.lang.Class.privateGetDeclaredConstructors(Unknown
Source)[:1.7.0_72]
at java.lang.Class.getConstructor0(Unknown Source)[:1.7.0_72]
at java.lang.Class.newInstance(Unknown Source)[:1.7.0_72]
at 
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
... 25 more
Caused by: java.lang.ClassNotFoundException:
org.osgi.service.http.HttpContext not found by org.jolokia.osgi [409]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(Unknown Source)[:1.7.0_72]
... 31 more

Which I think means I need the HTTP feature installing.

However, when I enter: feature:install http or feature:install
http-whiteboard, I get the following error:

Error executing command: Could not start bundle
mvn:org.ops4j.pax.web/pax-web-api/3.1.2 in feature(s) pax-http-3.1.2:
Unresolved constraint in bundle org.ops4j.pax.web.pax-web-api [622]: Unable
to resolve 622.0: missing requirement [622.0]osgi.wiring.package;
((osgi.wiring.package=javax.servlet)(version=2.3.0)(!(version=3.1.0)))

Does anyone know what I'm doing wrong/missing.

Karaf version is 3.0.2

Thanks




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Dependecy-error-installing-HTTP-feature-tp4038890.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Dependecy error installing HTTP feature

2015-03-09 Thread Achim Nierbeck
Hi,

let me suggest, to uninstall your own bundles prior of installing the http
feature.
The HttpFeature does install all required bundles. Especially since you
seem to have installed two versions of the servlet api.
After the http feature, the jolokia bundle can be installed.

regards, Achim


2015-03-09 19:44 GMT+01:00 Milen Dyankov milendyan...@gmail.com:

 You have installed  version 3.1.0 of Java Servlet API
 However pax-web expects: (version=2.3.0)(!(version=3.1.0)

 So from pax-web's perspective servlet api (that it needs) is not there ;)
 You either need older version of servlet api (you can have both) or newer
 version of pax-web (assuming there is one) that works with servlet api 3.1.x

 Best,
 Milen




 On Mon, Mar 9, 2015 at 6:46 PM, sykomaniac ashleysyke...@gmail.com
 wrote:

 Hi,

 I'm trying to get the jolokia agent set up on one of my karaf installs.

 I've installed the osgi only bundle like so:

 install -s mvn:org.jolokia/jolokia-osgi/1.2.3

 I've also installed the following bundles to satisfy its dependencies:
 install -s mvn:javax.servlet/servlet-api/2.3
 install -s mvn:javax.servlet/javax.servlet-api/3.1.0

 The state of the agent is now Resolved:
 409 | Resolved |  80 | 1.2.3| Jolokia Agent
 449 | Active   |  80 | 3.1.0| Java Servlet API
 608 | Active   |  80 |  | mvn:javax.servlet/servlet-api/2.3

 When I try and start it I get the following error:

 Caused by: java.lang.Exception: Unable to execute command on bundle 409:
 Activator start error in bundle org.jolokia.osgi [409].
 at

 org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:55)
 ... 20 more
 Caused by: org.osgi.framework.BundleException: Activator start error in
 bundle org.jolokia.osgi [409].
 at
 org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)
 at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
 at
 org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
 at
 org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
 at
 org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:27)
 at

 org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:53)
 ... 20 more
 Caused by: java.lang.NoClassDefFoundError:
 org/osgi/service/http/HttpContext
 at java.lang.Class.getDeclaredConstructors0(Native
 Method)[:1.7.0_72]
 at java.lang.Class.privateGetDeclaredConstructors(Unknown
 Source)[:1.7.0_72]
 at java.lang.Class.getConstructor0(Unknown Source)[:1.7.0_72]
 at java.lang.Class.newInstance(Unknown Source)[:1.7.0_72]
 at
 org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
 at
 org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
 ... 25 more
 Caused by: java.lang.ClassNotFoundException:
 org.osgi.service.http.HttpContext not found by org.jolokia.osgi [409]
 at

 org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
 at

 org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
 at

 org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
 at java.lang.ClassLoader.loadClass(Unknown Source)[:1.7.0_72]
 ... 31 more

 Which I think means I need the HTTP feature installing.

 However, when I enter: feature:install http or feature:install
 http-whiteboard, I get the following error:

 Error executing command: Could not start bundle
 mvn:org.ops4j.pax.web/pax-web-api/3.1.2 in feature(s) pax-http-3.1.2:
 Unresolved constraint in bundle org.ops4j.pax.web.pax-web-api [622]:
 Unable
 to resolve 622.0: missing requirement [622.0]osgi.wiring.package;
 ((osgi.wiring.package=javax.servlet)(version=2.3.0)(!(version=3.1.0)))

 Does anyone know what I'm doing wrong/missing.

 Karaf version is 3.0.2

 Thanks




 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/Dependecy-error-installing-HTTP-feature-tp4038890.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




 --
 http://about.me/milen




-- 

Apache Member
Apache Karaf http://karaf.apache.org/ Committer  PMC
OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer 
Project Lead
blog http://notizblog.nierbeck.de/
Co-Author of Apache Karaf Cookbook http://bit.ly/1ps9rkS

Software Architect / Project Manager / Scrum Master