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

Jean-Sébastien BEVILACQUA commented on TOMEE-2150:
--------------------------------------------------

Hello,

I'm Jean-Sébastien from LINAGORA company and I'm working on this issue.
Here is some useful information.

How to reproduce the issue:

1 - Install docker
2 - Download the attached archive "reproduction_problem.zip"
3 - cd in the uncompressed folder "reproduction_problem"
4 - Create docker image with 'docker build -t tomee:7.0.4-linagora'
5 - Run the container with 'docker run -it --rm --name issue_2150 
tomee:7.0.4-linagora'
6 - Retrieve IP with 'docker inspect $(docker ps -aqf "name=issue_2150") | grep 
"IPAddress"'
7 - Connect to 'http://IP:8080'
8 - Click on "Manager APP" to the right (user=linagora pass=linagora)
9 - Upload the ws.war file located in "reproduction_problem" folder
10- Install SoapUI
11- Start SoapUi and go to "File > new Soap Project"
12- In "Initial WSDL", put: http://IP:8080/ws/MyManagerService?wsdl
13- After validation: right click on Hello World > New request > Top left: 
Submit request
14- Stacktrace will show up in the docker container

 

Sincerely,
Jean-Sébastien BEVILACQUA

LINAGORA

> 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
>         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 = "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