From commits-return-41835-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Fri Feb 9 18:35:09 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 5C0AC180654 for ; Fri, 9 Feb 2018 18:35:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4BABF160C61; Fri, 9 Feb 2018 17:35:09 +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 9176C160C3C for ; Fri, 9 Feb 2018 18:35:08 +0100 (CET) Received: (qmail 21108 invoked by uid 500); 9 Feb 2018 17:35:07 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 21097 invoked by uid 500); 9 Feb 2018 17:35:07 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 21093 invoked by uid 99); 9 Feb 2018 17:35:07 -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; Fri, 09 Feb 2018 17:35:07 +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 36ADFC0042 for ; Fri, 9 Feb 2018 17:35:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ND97Rlt29pEt for ; Fri, 9 Feb 2018 17:35:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 24FD75F341 for ; Fri, 9 Feb 2018 17:35: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 5E8C8E019D for ; Fri, 9 Feb 2018 17:35:04 +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 D24C3240F6 for ; Fri, 9 Feb 2018 17:35:01 +0000 (UTC) Date: Fri, 9 Feb 2018 17:35:01 +0000 (UTC) From: =?utf-8?Q?Fran=C3=A7ois_Courtault_=28JIRA=29?= To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-2150) Tomee 7.0.4 issue with CDI interceptor and WebServiceContext resource injection 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/TOMEE-2150?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1635= 8745#comment-16358745 ]=20 Fran=C3=A7ois Courtault commented on TOMEE-2150: ------------------------------------------- Hello, Yes this is the workaround we have today but the big issue of this one is t= hat it is not portable at all. It doesn't work on Glassfish 4.1.2/5.0, Weblogic Server 12.2.1.3 , Wildfly = 10.0.1/11.0.0 and Liberty 17.0.0.3 !!! Best Regards > Tomee 7.0.4 issue with CDI interceptor and WebServiceContext resource inj= ection=20 > -------------------------------------------------------------------------= ------- > > Key: TOMEE-2150 > URL: https://issues.apache.org/jira/browse/TOMEE-2150 > Project: TomEE > Issue Type: Bug > Affects Versions: 7.0.4 > Reporter: Fran=C3=A7ois Courtault > Priority: Critical > Attachments: reproduction_problem.zip > > > I have defined an annotation like below: > @Inherited > @InterceptorBinding > @Target({ElementType.METHOD, ElementType.TYPE}) > @Retention(RetentionPolicy.RUNTIME) > public @interface MyInterceptor { > @NonBinding > String level() default "INFO"; > } > Then, I have written a class like this: > @MyInterceptor > @Interceptor > public class MyInterceptor { > private Class intercepted; > @AroundInvoke > public Object myMethod(final InvocationContext ctx) throws Exception { > ..... > } > } > In my POJO, webservice endpoint, I have: > @WebService(name =3D "MyManager", targetNamespace =3D"http://com.test/wsd= l", > serviceName =3D "MyManagerService") > @MyInterceptor > public class MyManager implements IMyManager { > @resource > private WebServiceContext wsc; //=3D>=3D> ALWAYS null on TomEE 7.0.4!!! > .... > } > } > That's the test case I built which doesn't work on TomEE 7.0.4 but works = on Glassfish 4.1.2/5.0, Weblogic Server 12.2.1.3 and Wildfly 10.0.1/11.0.0. -- This message was sent by Atlassian JIRA (v7.6.3#76005)