Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1741

Incorrect log message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 7.0.0-M3
    • 7.0.0
    • TomEE Core Server
    • None

    Description

      When starting TomEE 7 (M3), I get the following log message:

      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
      

      But that jar contains the following beans.xml at the correct position with the following content:

      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>
      

      That message comes from class org.apache.openejb.cdi.CdiScanner from the following code:

      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
                }
            }
           ...
      

      This message seems to be not correct.

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            niededir Dirk Niedenführ
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: