From issues-return-44315-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sat May 11 16:19:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 69BEE180651 for ; Sat, 11 May 2019 18:19:02 +0200 (CEST) Received: (qmail 54300 invoked by uid 500); 11 May 2019 16:19:01 -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 54288 invoked by uid 99); 11 May 2019 16:19:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2019 16:19:01 +0000 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 B0695E2B88 for ; Sat, 11 May 2019 16:19:00 +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 2AB3B25813 for ; Sat, 11 May 2019 16:19:00 +0000 (UTC) Date: Sat, 11 May 2019 16:19:00 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-6271) Issue with Pax web server and Jetty bundled in Karaf 4.2.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-6271?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1683= 7890#comment-16837890 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-6271: --------------------------------------------- I'm not able to reproduce the issue, either with JDK 8 or JDK 11. I created a {{test-features.xml}} containing: {code} http war webconsole {code} Then I did: {code} karaf@root()> feature:repo-add file:/path/to/test-features.xml karaf@root()> feature:install -v spot-webconsole-attempt {code} I don't have any exception in the log and the webconsole is correctly deplo= yed. NB: I'm on Linux. I'm closing this Jira, please re-open with some details in order to me to r= eproduce it. > Issue with Pax web server and Jetty bundled in Karaf 4.2.5 > ---------------------------------------------------------- > > Key: KARAF-6271 > URL: https://issues.apache.org/jira/browse/KARAF-6271 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.2.5 > Reporter: Sebastiaan Hendriks > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Major > Attachments: karaf.log > > > First some context: > I'm upgrading our application from Java 8 to Java 10+, moving from Karaf = 3.0.8 to Karaf 4.2.x. > The issue: > In this application we got a War running for some maintenance screens for= the end-user and I'm encountering an issue with the Pax web server unable = to start since it is running up to a mismatch with the installed Jetty vers= ion, yielding the following error when our application feature is installed= ; > 2019-05-02T14:25:39,732 | ERROR | paxweb-config-1-thread-1 | Activator=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 135 - org.op= s4j.pax.web.pax-web-runtime - 7.2.8 | Unable to start pax web server: org.e= clipse.jetty.server.handler.HandlerCollection.(Z)V > java.lang.NoSuchMethodError: org.eclipse.jetty.server.handler.HandlerColl= ection.(Z)V > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.JettyServe= rHandlerCollection.(JettyServerHandlerCollection.java:52) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.JettyServe= rWrapper.(JettyServerWrapper.java:146) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.JettyServe= rImpl.(JettyServerImpl.java:90) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.JettyFacto= ryImpl.createServer(JettyFactoryImpl.java:99) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.ServerCont= rollerImpl$Stopped.start(ServerControllerImpl.java:380) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.ServerCont= rollerImpl.start(ServerControllerImpl.java:71) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.ServerCont= rollerImpl$Unconfigured.configure(ServerControllerImpl.java:700) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.jetty.internal.ServerCont= rollerImpl.configure(ServerControllerImpl.java:87) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.internal.Activator.update= Controller(Activator.java:418) ~[?:?] > =C2=A0=C2=A0 =C2=A0at org.ops4j.pax.web.service.internal.Activator.lambda= $scheduleUpdateFactory$1(Activator.java:344) ~[?:?] > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.Executors$RunnableAdapter.call= (Executors.java:514) [?:?] > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.FutureTask.run(FutureTask.java= :264) [?:?] > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.ThreadPoolExecutor.runWorker(T= hreadPoolExecutor.java:1135) [?:?] > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.ThreadPoolExecutor$Worker.run(= ThreadPoolExecutor.java:635) [?:?] > =C2=A0=C2=A0 =C2=A0at java.lang.Thread.run(Thread.java:844) [?:?] > =C2=A0 > In an effort to narrow the source of the issue down, I've setup a simple = feature where I am combining the karaf features Http, War and Webconsole to= check if Karaf at its core can atleast run a webapplication. This yields t= he same error upon loading/starting the feature. > Reproduction scenario: > * Unpack a fresh install of Karaf 4.2.5 > * Setup a feature.xml in a repository somewhere containing the following= ; > {color:#e8bf6a} > {color}{color:#e8bf6a} {color}http{color:#e8bf6a} > {color}{color:#e8bf6a} {color}war{color:#e8bf6a} > {color}{color:#e8bf6a} {color}webconsole{color:#e8bf6a} > {color}{color:#e8bf6a}{color} > * Install on the shell with=20 > > feature:install -v {color:#6a8759}spot-webconsole-attempt{color} > * Note error in karaf.log and console not reachable at [http://localhost= :8181/system/console/bundles#|http://localhost:8181/system/console/bundles] > org.apache.karaf.features.cfg relevant content; > featuresRepositories =3D \ > =C2=A0=C2=A0=C2=A0 mvn:org.apache.karaf.features/framework/4.2.5/xml/feat= ures, \ > =C2=A0=C2=A0=C2=A0 mvn:org.apache.karaf.features/enterprise/4.2.5/xml/fea= tures, \ > =C2=A0=C2=A0=C2=A0 mvn:org.apache.karaf.features/standard/4.2.5/xml/featu= res, \ > =C2=A0=C2=A0=C2=A0 mvn:org.apache.karaf.features/spring/4.2.5/xml/feature= s, \ > =C2=A0=C2=A0 =C2=A0mvn:org.apache.karaf.features/spring/4.0.1/xml/feature= s, \ > =C2=A0=C2=A0 =C2=A0mvn:nl.gvb.spot/spot-features/3.13-SNAPSHOT/xml/featur= es, \ > =C2=A0=C2=A0 =C2=A0mvn:nl.gvb.siri/siri-features/3.13-SNAPSHOT/xml/featur= es, \ > =C2=A0=C2=A0 =C2=A0mvn:nl.intraffic/spot-common-features/1.0.4-SNAPSHOT/x= ml/features > featuresBoot =3D \ > =C2=A0=C2=A0=C2=A0 instance/4.2.5, \ > =C2=A0=C2=A0=C2=A0 package/4.2.5, \ > =C2=A0=C2=A0=C2=A0 log/4.2.5, \ > =C2=A0=C2=A0=C2=A0 ssh/4.2.5, \ > =C2=A0=C2=A0=C2=A0 framework/4.2.5, \ > =C2=A0=C2=A0=C2=A0 system/4.2.5, \ > =C2=A0=C2=A0=C2=A0 eventadmin/4.2.5, \ > =C2=A0=C2=A0=C2=A0 feature/4.2.5, \ > =C2=A0=C2=A0=C2=A0 shell/4.2.5, \ > =C2=A0=C2=A0=C2=A0 management/4.2.5, \ > =C2=A0=C2=A0=C2=A0 service/4.2.5, \ > =C2=A0=C2=A0=C2=A0 jaas/4.2.5, \ > =C2=A0=C2=A0=C2=A0 deployer/4.2.5, \ > =C2=A0=C2=A0=C2=A0 diagnostic/4.2.5, \ > =C2=A0=C2=A0=C2=A0 wrap/2.6.1, \ > =C2=A0=C2=A0=C2=A0 bundle/4.2.5, \ > =C2=A0=C2=A0=C2=A0 config/4.2.5, \ > =C2=A0=C2=A0=C2=A0 kar/4.2.5, \ > =C2=A0=C2=A0 =C2=A0spring/3.2.0=C2=A0=C2=A0=C2=A0=20 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)