[
https://issues.apache.org/jira/browse/TOMEE-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
François Courtault updated TOMEE-2150:
--------------------------------------
I get the following in the logs:
08-Dec-2017 11:03:15.482 WARNING [localhost-startStop-3]
org.apache.openejb.cdi.CdiResourceInjectionService.fillInjectionProperties
Injection data not found in JNDI context:
jndiName='comp/env/com.mycompany.jaxws.MyManager/wsc',
target=com.mycompany.jaxws.MyManager/wsc
BTW, I have performed a test against IBM Liberty 17.0.0.3 using a simple POJO
web service endpoint with WebServiceContext injection in it: this way worked as
it is the case for the other app servers.
> 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
> Affects Versions: 7.0.4
> Reporter: François Courtault
> Priority: Critical
>
> 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
(v6.4.14#64029)