You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2023/05/17 19:13:00 UTC
[jira] [Resolved] (TOMEE-2150) Tomee 7.0.4 issue with CDI interceptor and WebServiceContext resource injection
[ https://issues.apache.org/jira/browse/TOMEE-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Zowalla resolved TOMEE-2150.
------------------------------------
Resolution: Auto Closed
Hi there!
We wanted to reach out and let you know that we're currently working on cleaning up open issues in Jira that specifically impact unsupported versions, including 1.7.x, 7.0.x, and 7.1.x.
If you had previously reported this issue on one of these unsupported versions, we kindly ask you to check if the problem still persists and can be reproduced on a supported version such as 8.0.x or 9.0.x. If you find that it is indeed reproducible on a supported version, you're more than welcome to re-open this issue.
Thanks!
> 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, 8.0.0-M2
> 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
(v8.20.10#820010)