Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 162B710CC3 for ; Mon, 2 Sep 2013 22:12:46 +0000 (UTC) Received: (qmail 9212 invoked by uid 500); 2 Sep 2013 22:12:45 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 9163 invoked by uid 500); 2 Sep 2013 22:12:45 -0000 Mailing-List: contact dev-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 dev@cxf.apache.org Received: (qmail 9155 invoked by uid 99); 2 Sep 2013 22:12:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 22:12:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jasonmpell@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 22:12:39 +0000 Received: by mail-la0-f49.google.com with SMTP id ev20so3954731lab.36 for ; Mon, 02 Sep 2013 15:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=tZKxODd1RMTscsYsrhblxKlu897aCZj3hii8KsHliio=; b=Tii7B2nlQc+uS8oZyAnH+y36mBtjHkEtEh/GX2o8aQ4i3HgQRJGGqInxCwYjPU8ut3 A/dZ0VO26Uxmza3bJrcqClpfjjc+kR174ZqX+KGF4NGOHngkedArAvJdeNvpyGMzHMMI rfdmogf3dQP/RK22UpY3GE+jyzapRx2vAAun9usno6/bqzGutwpOpXfkuIa2tPyYACPm Ob3OkmUZceA4m7EZYLNKWHGRXvXyA7BDKi3GZrnY8oeLJFV0XqCIc19s9gZthv/438X2 8fnI5vPVDRoEucUsMWj6bCEghpTNQZgXzqNfon3LxjGwu/Lc2PULcrNLmuRk+6sQ0Tx2 dMDw== MIME-Version: 1.0 X-Received: by 10.112.141.98 with SMTP id rn2mr16377lbb.49.1378159938512; Mon, 02 Sep 2013 15:12:18 -0700 (PDT) Sender: jasonmpell@gmail.com Received: by 10.152.36.65 with HTTP; Mon, 2 Sep 2013 15:12:18 -0700 (PDT) Received: by 10.152.36.65 with HTTP; Mon, 2 Sep 2013 15:12:18 -0700 (PDT) In-Reply-To: <951ecfb4df608c8f91c577968f88799f.squirrel@webmail.htw-berlin.de> References: <6e5cbab21a8d0d1097260a49f315da61.squirrel@webmail.htw-berlin.de> <52237420.5060300@gmail.com> <951ecfb4df608c8f91c577968f88799f.squirrel@webmail.htw-berlin.de> Date: Tue, 3 Sep 2013 08:12:18 +1000 X-Google-Sender-Auth: 7UuDbWbIKvQ3yFSm5gQ4v0IlbDs Message-ID: Subject: Re: Inject attribute into Apache CXF servlet From: Jason Pell To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=001a11c34460942f8504e56dddfa X-Virus-Checked: Checked by ClamAV on apache.org --001a11c34460942f8504e56dddfa Content-Type: text/plain; charset=UTF-8 Please be sure to post back saying how you solved it... On 02/09/2013 6:45 PM, "Jana Weschenfelder" < jana.weschenfelder@student.htw-berlin.de> wrote: > Hello, > > many thanks for the reply. I got a hint from an expert an hour ago. > I would like to try this first. I agree that my undertaking is not easy. > But I have a solution now and I would try this first. > > Many thanks for your help!!! > Jana > > > Am So, 1.09.2013, 19:06 schrieb Sergey Beryozkin: > > Hi > > On 31/08/13 21:35, Jana Weschenfelder wrote: > >> Dear Ladies and Gentlemen, > >> > >> I have a problem and maybe someone can help me here: > >> The problem is described in the forum of Spring. It cost me 3 days of my > >> time already and I am really stuck now... > >> > >> > http://forum.springsource.org/showthread.php?141358-Inject-attribute-into-Apache-CXF-servlet > >> > >> I am working with a JAR file and not with a WAR file. > >> > >> I would like to use the ServletContextAware interface to get a > >> ServletContext, but it would only work with the ContextLoaderListener as > >> far as I have found out. But ContextLoaderListener is from Spring (like > >> ServletContextAware), as the classpath > >> "org.springframework.web.context.ContextLoaderListener" says and the > >> ServletContextHandler is from Eclipse as the classpath > >> "org.eclipse.jetty.servlet.ServletContextHandler" tells, while the > >> CXFServlet uses Apache CXF classes > >> ("org.apache.cxf.transport.servlet.CXFServlet"). I think that might be > >> the > >> problem, because 3 institutions are involved here. I do not know know > >> how > >> much compatible all three are, since I have not found a documentation > >> for > >> such a case. Every institutions only describes its part in the main, but > >> not a combination of all three together. > >> > >> Have you an idea how I can pass an attribute (Spring bean) from Spring > >> over Jetty to Apache CXF? Any help is highly appreciated. I tried > >> already > >> many, many ways, but the ServletContext is null then. > >> > > > > I'm sorry but at the moment I'm not sure what exactly needs to be done. > > > > Can you try and come up with the similar but a simpler test project so > > that we can see what are you trying to achieve ? > > > > Cheers, Sergey > > > >> Many thanks, > >> Jana Weschenfelder > >> > > > > > > > --001a11c34460942f8504e56dddfa--