You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2017/05/21 20:24:04 UTC

[jira] [Commented] (SM-3023) Can't install camel-websockets feature

    [ https://issues.apache.org/jira/browse/SM-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16018971#comment-16018971 ] 

Krzysztof Sobkowiak commented on SM-3023:
-----------------------------------------

This problem happens when {{jetty}} feature is installed before (exactly when {{javax.servlet-api}} 3.1.0 is installed). It can be also reproduced in Karaf 4.0.9 in this way

{noformat}
karaf@root()> feature:repo-add camel 2.16.5
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.16.5/xml/features
karaf@root()> feature:install  jetty
Adding features: jetty/[9.2.15.v20160210,9.2.15.v20160210]
karaf@root()> exports | grep javax.servlet
javax.servlet.annotation                               | 3.1.0            | 53 | javax.servlet-api
javax.servlet.descriptor                               | 3.1.0            | 53 | javax.servlet-api
javax.servlet.http                                     | 3.1.0            | 53 | javax.servlet-api
javax.servlet                                          | 3.1.0            | 53 | javax.servlet-api
karaf@root()> feature:install -v camel-websocket
Adding features: camel-websocket/[2.16.5,2.16.5]
{noformat}

While installing {{camel-websocket}} we have the same issue. Let's install parts of the feature manually

{noformat}
karaf@root()> feature:install camel-core
karaf@root()> install -s mvn:org.apache.geronimo.specs/geronimo-servlet_3.0_spec/1.0
Bundle ID: 90
karaf@root()> install -s mvn:org.apache.camel/camel-websocket/2.16.5
Bundle ID: 91
Error executing command: Error installing bundles:
	Unable to start bundle mvn:org.apache.camel/camel-websocket/2.16.5
karaf@root()> start 91
Error executing command: Error executing command on bundles:
	Error starting bundle 91: Unable to resolve org.apache.camel.camel-websocket [91](R 91.0): missing requirement [org.apache.camel.camel-websocket [91](R 91.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0))) Unresolved requirements: [[org.apache.camel.camel-websocket [91](R 91.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.6.0)(!(version>=3.0.0)))]
karaf@root()> exports | grep javax.servlet
.....
javax.servlet                                          | 2.6.0            | 90 | org.apache.geronimo.specs.geronimo-servlet_3.0_spec
javax.servlet                                          | 3.0.0            | 90 | org.apache.geronimo.specs.geronimo-servlet_3.0_spec
javax.servlet                                          | 3.1.0            | 53 | javax.servlet-api
{noformat}

Something wrong happens with wiring of the package {{javax.servlet}}





> Can't install camel-websockets feature
> --------------------------------------
>
>                 Key: SM-3023
>                 URL: https://issues.apache.org/jira/browse/SM-3023
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 7.0.0.M1
>            Reporter: Michal Hlavac
>             Fix For: 7.0.1
>
>
> Running {{feature:install camel-websocket}} never ends and CPU usage is high.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)