<!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">JBoss 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;">
    Re: JBoss tools 3.2B1 sometimes doesn't deploy classes in web module
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/atijms">arjan tijms</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/587735#587735">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><blockquote class="jive-quote"><p>Jan Beernink wrote:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've also noticed the issue of seemingly random libraries being listed as deployable modules in the servers view. After I did some investigating, I noticed that all of the libraries listed as deployable module contained a Main-Class entry in their manifest file.</p><br/></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Great find! This seems indeed to be the case. Almost all of the libraries I mentioned earlier indeed have this main class listed! </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>More precisely, the ones I mentioned that have "J2EE Application Client Module" when I hover with the mouse over them are the ones who have this Main-Class entry.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The one that said "J2EE EJB Module" doesn't have this Main-Class, but it does have classes with EJB annotations. However, since this particular jar is in the EAR/lib directory, it doesn't seem JBoss tools has to do anything special with it regarding deployment.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After I upgraded to JBoss tools 3.2 CR1 I now get the following in my log after I do a clean/full deploy:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:39.610
!MESSAGE Module my_main published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:39.614
!MESSAGE Module jbosscache-core.jar published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:39.618
!MESSAGE Module jgroups.jar published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:39.627
!MESSAGE Module my_ejb_client.jar published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:39.670
!MESSAGE Module some_main_ejb published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:40.238
!MESSAGE Module my_main_web published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:40.249
!MESSAGE Module jxl.jar published without error.

!ENTRY org.jboss.ide.eclipse.as.core 0 33685505 2011-02-16 13:15:40.265
!MESSAGE Module saxon9.jar published without error.
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In this case, the actual deployment that is copied to JBoss AS is simply:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">my_main
&#160;&#160;&#160; my_main_ejb
&#160;&#160;&#160; my_main_web
&#160;&#160;&#160; lib
&#160;&#160;&#160;&#160;&#160;&#160; jbosscache-core.jar
&#160;&#160;&#160;&#160;&#160;&#160; jgroups.jar
&#160;&#160;&#160;&#160;&#160;&#160; some_ejb_client.jar
&#160;&#160;&#160;&#160;&#160;&#160; commons-codec.jar
&#160;&#160;&#160;&#160;&#160;&#160; ... [bunch of other jars]
&#160;&#160;&#160;&#160;&#160;&#160; joda-time.jar

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As can be seen, the jars that are somehow treated "differently' by the deployer all simply end up in my_main/lib. It's highly confusing that the deployer as well as the GUI treats them differently.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Since CR1 is does say "published without error" now. Unfortunately, it still hapens that when I save a single file, the deployer suddenly pulishes 1000+ other files, and eventually this gives me a deployment with lots of deleted (missing) files as I have been seeing since the first beta versions of JBoss tools 3.2.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've also now confirmed seeing the problem on a completely different machine, but same project (different OS too: Unbuntu vs OS X), so this would rule out a local installation problem.</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/587735#587735">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>