[ 
https://issues.apache.org/jira/browse/TOMEE-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758552#comment-16758552
 ] 

François Courtault edited comment on TOMEE-2150 at 2/1/19 6:21 PM:
-------------------------------------------------------------------

Redo the test using TomEE Plus 8.0.0-M2 (cxf 3.2.7 embedded): still have the 
same issue !

So the issue is still there :(

 When this issue will be fixed?


was (Author: fcourtau):
Redo the test using TomEE Plus 8.0.0-M2 (cxf 3.2.7 embedded): still have the 
same issue !

So the issue is still there :(

 

> Tomee 7.0.4 issue with CDI interceptor and WebServiceContext resource 
> injection 
> --------------------------------------------------------------------------------
>
>                 Key: TOMEE-2150
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2150
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.4, 7.0.5, 7.1.0, 8.0.0-M1
>            Reporter: François Courtault
>            Priority: Critical
>         Attachments: WebServiceWithAnCdiInterceptorTest.java, 
> reproduction_problem.zip, webservicecontext.war
>
>
> 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 = "MyManager", targetNamespace ="http://com.test/wsdl";,
> serviceName = "MyManagerService")
> @MyInterceptor
> public class MyManager implements IMyManager {
> @resource
> private WebServiceContext wsc; //=>=> 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)

Reply via email to