Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3FE50200C5B for ; Thu, 27 Apr 2017 16:21:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3E642160BA7; Thu, 27 Apr 2017 14:21:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8445E160B98 for ; Thu, 27 Apr 2017 16:21:09 +0200 (CEST) Received: (qmail 68974 invoked by uid 500); 27 Apr 2017 14:21:08 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 68963 invoked by uid 99); 27 Apr 2017 14:21:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2017 14:21:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 16E1AC074C for ; Thu, 27 Apr 2017 14:21:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ojmCMjoMm07E for ; Thu, 27 Apr 2017 14:21:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 195895FC4D for ; Thu, 27 Apr 2017 14:21:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5A82BE0BD5 for ; Thu, 27 Apr 2017 14:21:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6C9CB21DED for ; Thu, 27 Apr 2017 14:21:04 +0000 (UTC) Date: Thu, 27 Apr 2017 14:21:04 +0000 (UTC) From: "Stephen Winnall (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KARAF-5110) Karaf 4.1.x / httplite incompatibility MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Apr 2017 14:21:10 -0000 [ https://issues.apache.org/jira/browse/KARAF-5110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986704#comment-15986704 ] Stephen Winnall edited comment on KARAF-5110 at 4/27/17 2:20 PM: ----------------------------------------------------------------- The attachment contains a minimal subset of my project which illustrates the issue: 1) unpack 2) build 3) run 4) log:display You'll see the error message 2017-04-27 16:19:04,335 | ERROR | FelixStartLevel | Felix | - - | Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118] Error starting mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/6.0.3 (org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118].) org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118]. at org.apache.felix.framework.Felix.activateBundle(Felix.java:2288) [?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [?:?] 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) [?:?] Caused by: java.lang.ClassCastException: org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to org.osgi.service.http.HttpService ... was (Author: winnall): This contains a minimal subset of my project which illustrates the issue: 1) unpack 2) build 3) run 4) log:display You'll see the error message 2017-04-27 16:19:04,335 | ERROR | FelixStartLevel | Felix | - - | Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118] Error starting mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/6.0.3 (org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118].) org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard [118]. at org.apache.felix.framework.Felix.activateBundle(Felix.java:2288) [?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [?:?] 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) [?:?] Caused by: java.lang.ClassCastException: org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to org.osgi.service.http.HttpService ... > Karaf 4.1.x / httplite incompatibility > -------------------------------------- > > Key: KARAF-5110 > URL: https://issues.apache.org/jira/browse/KARAF-5110 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.1.1 > Environment: Maven 3.3.9 / MacOS 10.12.4 > Reporter: Stephen Winnall > Attachments: karaf-4.1.x-httplite.tbz > > > I am trying to build a Karaf assembly using Karaf 4.1.1, Java 1.8.0_76-ea-b04, Maven 3.3.9, Netbeans 8.2 and macOS 10.12.4. I am getting an error message, even if I omit all my own features from the build (i.e. I build an empty Karaf): > java.lang.ClassCastException: org.apache.felix.httplite.osgi.HttpServiceImpl cannot be cast to org.osgi.service.http.HttpService > The problem seems to be that the latest version of org.apache.felix.httplite.complete, which provides org.apache.felix.httplite.osgi.HttpServiceImpl, i.e. 0.1.5, requires a version of java.servlet that is incompatible with the rest of Karaf 4.1.1, which - I think - expects 3.1.0. The following comes from the MANIFEST.MF of org.apache.felix.httplite.complete-0.1.5.jar: > Import-Package: javax.servlet;version="[2.4,3)" -- This message was sent by Atlassian JIRA (v6.3.15#6346)