Re: Problems with 3rd party commands in 4.1.0 (was: Towards Karaf (Container) 4.1.0)

2017-01-31 Thread Guillaume Nodet
I'll try to have a look at those issues tomorrow.

2017-01-31 21:42 GMT+01:00 Krzysztof Sobkowiak :

> Hi
>
> While testing 4.1.0 I have observed following issue.
>
> karaf@root()> feature:repo-add camel 2.18.2
>
> 21:35:06
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.18.2/xml/
> features
> karaf@root()> feature:install camel
>
> 21:35:19
> karaf@root()> camel
>
> 21:35:26
> camel   camel:context-list  camel:eip-explain
>  camel:rest-api-doc  camel:route-profile
>  camel:route-start
> camel   camel:context-resumecamel:eip-explain
>  camel:rest-registry-listcamel:route-profile
>  camel:route-stop
> camel:component-listcamel:context-resume
> camel:endpoint-explain  camel:rest-registry-list
> camel:route-reset-stats camel:route-stop
> camel:component-listcamel:context-start
>  camel:endpoint-explain  camel:rest-show
>  camel:route-reset-stats camel:route-suspend
> camel:context-inflight  camel:context-start
>  camel:endpoint-list camel:rest-show
>  camel:route-resume  camel:route-suspend
> camel:context-inflight  camel:context-stop
> camel:endpoint-list camel:route-infocamel:route-resume
> camel:context-info  camel:context-stop
> camel:endpoint-statscamel:route-infocamel:route-show
> camel:context-info  camel:context-suspend
>  camel:endpoint-statscamel:route-listcamel:route-show
> camel:context-list  camel:context-suspend
>  camel:rest-api-doc  camel:route-listcamel:route-start
>
> The commands are available and work. But after Karaf restart they are no
> more available and the log contains following error:
>
> 2017-01-31 21:37:25,415 | ERROR | FelixStartLevel  | Felix
> |  -  -  | Bundle org.apache.camel.karaf.camel-karaf-commands
> [57] Error starting mvn:org.apache.camel.karaf/camel-karaf-commands/2.18.2
> (org.osgi.framework.BundleException: Unable to resolve
> org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing
> requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)]
> osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused
> by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing
> requirement [org.apache.karaf.shell.console [42](R 42.0)]
> osgi.wiring.host; 
> (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))]
> Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands
> [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))])
> org.osgi.framework.BundleException: Unable to resolve
> org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing
> requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)]
> osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused
> by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing
> requirement [org.apache.karaf.shell.console [42](R 42.0)]
> osgi.wiring.host; 
> (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))]
> Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands
> [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))]
> at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
> [?:?]
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2117) [?:?]
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
> [?:?]
> at org.apache.felix.framework.FrameworkStartLevelImpl.run(
> FrameworkStartLevelImpl.java:308) [?:?]
> at java.lang.Thread.run(Thread.java:745) [?:?]
> 2017-01-31 21:37:25,417 | ERROR | lixDispatchQueue | camel-karaf-commands
>| 57 - org.apache.camel.karaf.camel-karaf-commands - 2.18.2 |
> FrameworkEvent ERROR - org.apache.camel.karaf.camel-karaf-commands
> org.osgi.framework.BundleException: Unable to resolve
> org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing
> requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)]
> osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused
> by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing
> requirement [org.apache.karaf.shell.console [42](R 42.0)]
> osgi.wiring.host; 
> (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))]
> Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands
> [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.
> apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))]
> at org

Problems with 3rd party commands in 4.1.0 (was: Towards Karaf (Container) 4.1.0)

2017-01-31 Thread Krzysztof Sobkowiak
Hi

While testing 4.1.0 I have observed following issue.

karaf@root()> feature:repo-add camel 2.18.2 

 21:35:06
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.18.2/xml/features
karaf@root()> feature:install camel 

 21:35:19
karaf@root()> camel 

 21:35:26
camel   camel:context-list  camel:eip-explain   
camel:rest-api-doc  camel:route-profile camel:route-start
camel   camel:context-resumecamel:eip-explain   
camel:rest-registry-listcamel:route-profile camel:route-stop
camel:component-listcamel:context-resumecamel:endpoint-explain  
camel:rest-registry-listcamel:route-reset-stats camel:route-stop
camel:component-listcamel:context-start camel:endpoint-explain  
camel:rest-show camel:route-reset-stats camel:route-suspend
camel:context-inflight  camel:context-start camel:endpoint-list 
camel:rest-show camel:route-resume  camel:route-suspend
camel:context-inflight  camel:context-stop  camel:endpoint-list 
camel:route-infocamel:route-resume
camel:context-info  camel:context-stop  camel:endpoint-stats
camel:route-infocamel:route-show
camel:context-info  camel:context-suspend   camel:endpoint-stats
camel:route-listcamel:route-show
camel:context-list  camel:context-suspend   camel:rest-api-doc  
camel:route-listcamel:route-start

The commands are available and work. But after Karaf restart they are no more 
available and the log contains following error:

2017-01-31 21:37:25,415 | ERROR | FelixStartLevel  | Felix  
  |  -  -  | Bundle org.apache.camel.karaf.camel-karaf-commands [57] Error 
starting mvn:org.apache.camel.karaf/camel-karaf-commands/2.18.2 
(org.osgi.framework.BundleException: Unable to resolve 
org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement 
[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))
 [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): 
missing requirement [org.apache.karaf.shell.console [42](R 42.0)] 
osgi.wiring.host; 
(&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))] 
Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands [57](R 
57.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))])
org.osgi.framework.BundleException: Unable to resolve 
org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement 
[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))
 [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): 
missing requirement [org.apache.karaf.shell.console [42](R 42.0)] 
osgi.wiring.host; 
(&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))] 
Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands [57](R 
57.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111) 
[?:?]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2117) [?:?]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) 
[?:?]
at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
 [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
2017-01-31 21:37:25,417 | ERROR | lixDispatchQueue | camel-karaf-commands   
  | 57 - org.apache.camel.karaf.camel-karaf-commands - 2.18.2 | 
FrameworkEvent ERROR - org.apache.camel.karaf.camel-karaf-commands
org.osgi.framework.BundleException: Unable to resolve 
org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement 
[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; 
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))
 [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): 
missing requirement [org.apache.karaf.shell.console [42](R 42.0)] 
osgi.wiring.host; 
(&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0)