Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
7.0.0-M3
-
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.