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

Romain Manni-Bucau commented on OWB-1400:
-----------------------------------------

Hi

 

We can't change to `/tomcat/lib` since the intent is more to exclude 
`tomcat-xxxx.jar`. We have a way to get the jar/folder name so we can exclude 
from there (we do it in last version - 
[https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java#L239)]
 so we can maybe more match the jar name (or parent when class, web-inf, 
meta-inf) rather than anything else. Wdyt?

> "/tomcat" entry in "org.apache.webbeans.scanExclusionPaths" disables scanning 
> on official tomcat docker image
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: OWB-1400
>                 URL: https://issues.apache.org/jira/browse/OWB-1400
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.23
>         Environment: docker image tomcat:8.5-jdk17-corretto
>            Reporter: Jose Luis Freire
>            Priority: Major
>
> When deploying an application in a tomcat docker image, the application is 
> typically installed in "/usr/local/tomcat/webapps".
>  
> The application libs will typically be located in 
> "/usr/local/tomcat/webapps/ROOT/WEB-INF/lib".
> The "/tomcat" entry in the exclusion path results in all the application 
> beans getting ignored if the jar files don't have the "META-INF/beans.xml" 
> (which isn't required in the default setup).
>  
> I propose changing "/tomcat" to "/tomcat/lib" to avoid this overreaching 
> optimization.



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

Reply via email to