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

Richard Zowalla commented on TOMEE-3790:
----------------------------------------

[~euasier] can you try with 8.0.9 / 8.0.10-SNAPSHOT ?

> Same ear with one interceptor different erroneous behavior in tomEE 8.0.6 and 
> 9
> -------------------------------------------------------------------------------
>
>                 Key: TOMEE-3790
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3790
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 8.0.6
>            Reporter: Asier Naiz
>            Priority: Major
>
> I have an ear with a war, and ejb-jar and a jar inside. The war and ejb.jar 
> both hold a dependency to the last jar. The last jar holds an interceptor 
> implementation.
> In TomEE 8.0.6, the interceptor is not seen from the war, it is only seen 
> from the ejb-jar.  The class in ejb-jar file is intercepted. It seems to be 
> activated only when beans.xml is inside the ejb-jar META-INF folder (I also 
> tried including the xml in wars WEB-INF and the other jars META-INF folders 
> with no luck. In these cases the interceptor is not executed in any place).
> In TomEE 9.0.0, same ear, I get the following error during deployment:
> 13-Sep-2021 06:36:41.150 SEVERE [Catalina-utility-2] 
> org.apache.openejb.cdi.Open13-Sep-2021 06:36:41.150 SEVERE 
> [Catalina-utility-2] org.apache.openejb.cdi.OpenEJBLifecycle.startApplication 
> CDI Beans module deployment failed 
> org.apache.webbeans.exception.WebBeansDeploymentException: Given class : 
> class org.asier.common.interceptor.LoggingInterceptor is not a interceptor 
> class at 
> org.apache.webbeans.intercept.InterceptorsManager.validateInterceptorClasses(InterceptorsManager.java:345)
>  at 
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:1111)
>  at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:326)
>  
> Thanks
> PS: Both are webprofile TomEEs
> PS2: It could be related to 
> https://issues.apache.org/jira/browse/OWB-472?jql=text%20~%20%22interceptor%20war
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to