You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/03/17 14:39:33 UTC

[jira] [Resolved] (TOMEE-1741) Incorrect log message

     [ https://issues.apache.org/jira/browse/TOMEE-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-1741.
---------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 7.0.0-M4

> Incorrect log message
> ---------------------
>
>                 Key: TOMEE-1741
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1741
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.0-M3
>            Reporter: Dirk Niedenführ
>            Assignee: Romain Manni-Bucau
>            Priority: Trivial
>             Fix For: 7.0.0-M4
>
>
> When starting TomEE 7 (M3), I get the following log message:
> {code: title=message}
> No beans.xml in jar:file:/D:/.../webapps/samplewebapp/WEB-INF/lib/sample-1.0.0!/META-INF/beans.xml looking all classes to find CDI beans, maybe think to add a beans.xml or add it to exclusions.list
> {code}
> But that jar contains the following beans.xml at the correct position with the following content:
> {code: title=beans.xml}
> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
> 	bean-discovery-mode="annotated">
> </beans>
> {code}
> That message comes from class org.apache.openejb.cdi.CdiScanner from the following code:
> {code: title=org.apache.openejb.cdi.CdiScanner}
> if (!noScan) {
>       if (scanModeAnnotated) {
>           try {
>               Logger.getInstance(LogCategory.OPENEJB, CdiScanner.class.getName())
>                       .info("No beans.xml in " + bda.uri.toASCIIString()
>                               + " looking all classes to find CDI beans, maybe think to add a beans.xml or "
>                               + "add it to exclusions.list");
>           } catch (final Exception ex) {
>                // no-op: not a big deal
>           }
>       }
>      ...
> {code}
> This message seems to be not correct.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)