<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    MC - Better error reporting?
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/jaikiran">jaikiran pai</a> in <i>JBoss Microcontainer</i> - <a href="http://community.jboss.org/message/537391#537391">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p> I haven't (yet) looked at the code responsible for logging this, so I can't propose any changes on that front. But I can make some general suggestions about the messages (with the previously posted logs as an example):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1)</p><pre class="jive-pre"><code class="jive-code">
DEPLOYMENTS MISSING DEPENDENCIES:
&#160; Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")
</code></pre><p>So this is saying that a service is missing a dependency which was expected to be in Installed state but is actually in "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What does "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **" mean in the context of that message? Maybe it should be:</p><pre class="jive-pre"><code class="jive-code">
Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually missing)
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2) This one is more of formatting the error messages - In its current form multiple deployments which are missing dependencies are logged together like:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
 
DEPLOYMENTS MISSING DEPENDENCIES:
&#160; Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")
&#160; Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSLSB,service=EjbEncFactory" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **")
&#160; Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" (should be in state "Installed", but is actually in state "Described")
&#160; Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3_endpoint" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" (should be in state "Installed", but is actually in state "Instantiated")
...
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When this gets logged, it's very difficult to distinguish the different deployments. It just "appears" like some random text dumped out on the console. Maybe each deployment should be separated by an empty line, so that each one stands out:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
DEPLOYMENTS MISSING DEPENDENCIES:
&#160; Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSFSB,service=EjbEncFactory" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **")
&#160; 
&#160; 
&#160; Deployment "jboss.ejb3:module=myapp,component=MyNoInterfaceSLSB,service=EjbEncFactory" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **")
&#160; 
&#160; 
&#160; Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" (should be in state "Installed", but is actually in state "Described")
&#160; Deployment "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3_endpoint" is missing the following dependencies:
&#160;&#160;&#160; Dependency "jboss.j2ee:jar=myapp.war,name=MyNoInterfaceSFSB,service=EJB3" (should be in state "Installed", but is actually in state "Instantiated")
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>3) The other section "Deployments in ERROR":</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
DEPLOYMENTS IN ERROR:
&#160; Deployment "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **
&#160; Deployment "jboss.naming:component=MyNoInterfaceSFSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSFSB,module=myapp' **
&#160; Deployment "jboss.ejb3:component=MyNoInterfaceSLSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described
&#160; Deployment "jboss.ejb3:component=MyNoInterfaceSFSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This section (atleast in this specific deployment) is confusing and redundant. The message:</p><pre class="jive-pre"><code class="jive-code">
&#160; Deployment "jboss.naming:component=MyNoInterfaceSLSB,module=myapp" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:component=MyNoInterfaceSLSB,module=myapp' **

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>is trying to say that jboss.naming:component=MyNoInterfaceSLSB,module=myapp has not been deployed (i.e. is missing). This was already conveyed in the earlier "Deployments missing dependencies" section. Why repeat it again? Also the ** NOT FOUND Depends...", as in the earlier case, is confusing.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The other message:</p><pre class="jive-pre"><code class="jive-code">
Deployment "jboss.ejb3:component=MyNoInterfaceSLSB,module=myapp,service=EjbEncFactory" is in error due to the following reason(s): Described
</code></pre><p>This too has already been conveyed (in a slightly different form) in the earlier "Deployments missing dependencies" section. So why repeat again? <span> :) </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> &#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/537391#537391">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Microcontainer at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>