You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Dirk Niedenführ (JIRA)" <ji...@apache.org> on 2016/03/17 13:45:33 UTC
[jira] [Created] (TOMEE-1741) Incorrect log message
Dirk Niedenführ created TOMEE-1741:
--------------------------------------
Summary: 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
Priority: Trivial
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.cdiCdiScanner 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)