Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91989115C6 for ; Wed, 13 Aug 2014 07:45:13 +0000 (UTC) Received: (qmail 9913 invoked by uid 500); 13 Aug 2014 07:45:13 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 9881 invoked by uid 500); 13 Aug 2014 07:45:13 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 9870 invoked by uid 99); 13 Aug 2014 07:45:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 07:45:13 +0000 Date: Wed, 13 Aug 2014 07:45:13 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-5863) JettyHTTPServerEngineFactoryHolder does not support Handlers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CXF-5863. ------------------------------- Resolution: Fixed Fix Version/s: 2.6.15 2.7.12 3.0.1 > JettyHTTPServerEngineFactoryHolder does not support Handlers > ------------------------------------------------------------ > > Key: CXF-5863 > URL: https://issues.apache.org/jira/browse/CXF-5863 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 2.7.10, 3.0.0 > Environment: Apache SMX 5.0.0 > Apache Camel 2.12.3 > Java 1.7.0_25 > Reporter: Andrew > Assignee: Willem Jiang > Priority: Minor > Labels: blueprint, jetty > Fix For: 3.0.1, 2.7.12, 2.6.15 > > > I've been trying to add basic authentication to my CXF Web Service (using Apache Camel 2.12.3 and SMX 5.0.0), and I had hoped that I would be able to use the {{http://cxf.apache.org/transports/http-jetty/configuration}} namespace to configure it, with the following in my blueprint file: > {code:xml} > > > > > > > > > > . > . > . > > {code} > But as it turns out, that's not possible - I was unable to get it to recognise the handler - nothing I could do would make SMX recognise that element (I had tried with an invalid bean id, in the hope that it would raise an error, but it never did). In addition to {{}}, I also tried {{}}, but to no avail. > After hunting around for some time, I eventually found the following in {{org.apache.cxf.transport.http_jetty.blueprint.JettyHTTPServerEngineFactoryHolder}}: > {code:java} > if (engine.isContinuationsEnabled() != null) { > eng.setContinuationsEnabled(engine.isContinuationsEnabled()); > } > // eng.setHandlers(engine.getHandlers()); > if (engine.getHost() != null && !StringUtils.isEmpty(engine.getHost())) { > eng.setHost(engine.getHost()); > } > {code} > Note, particularly, the line {{// eng.setHandlers(engine.getHandlers());}} (line 119) - it never actually adds the handlers. > Now, I don't imagine the solution is as simple as just uncommenting that line, but it would be really nice if we could have one of the following: > # Handler support implemented > # An exception to be thrown if handlers are detected, saying they're not supported > # A warning / error message logged if handlers are detected, saying they're not supported. > It's a bit frustrating, as _everything else_ seemed to work, so I was a bit perplexed as to why this one thing didn't. Unfortunately, I don't have the time (or the knowledge, frankly) to fix this myself. -- This message was sent by Atlassian JIRA (v6.2#6252)