<!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: maven and jboss hot deployment does not work correctly
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/nimo22">nimo stephan</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/587010#587010">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>sorry, here more facts:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I use mvn, it is a wtp-jsf-project, war-archive and m2eclipse with maven-jboss tools support and jboss 3.2 cr1 is included. I use jee6 with jboss 6, weld, jsf.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="text-decoration: underline;">Here are the steps:</span></p><p>1. I use "mvn -package", which compiles and packages my little war (~3MB) in the target-folder of my maven-archetype-structure (archetype is called "jboss-weld-jsf-jee6").(I cannot use mvn -deploy, cos then jboss tools hot deployement does not work.)</p><p>2. Then I go to the "server-view of jboss tools", "add" this war file press the "publish"-button.</p><p>3. I start jboos as and wait (about 2 Minutes !)</p><p>4. I go to the webpage of my war on the browser and get the failure "no source NPE".</p><p>5. I found out, that "jboss publish" did not publish any class-files. It published all other files and even all directories, but no class-files. However, these class files does exist in my target-folder.</p><p>6. So I deleted the war-file from the deploy-directory via jboss-undeploy-button and redeployed again via "deploy"+"publish"-button.</p><p>7. All files and directories are copied  - but no class-files.</p><p>8. I clicked also the "full publish"-button - no class files are copied.</p><p>9. I stopped the jboss-server and tried again with full publish - and now class files are copied.</p><p>10. I started the jboss-server, wait ~2 minutes and made a change of a java-file and use mvn-package and "full publish"-button - my class file was not updated (!), but jboss tools forces the jboss instance to start again (with the old files) - so I have to wait and loose 2 minutes again.</p><p>11. Static sources (xhtml) are republished successfully in hot-deployement without problems. However, I do not know, when and why, sporadically the hot-deployment of java-class-files works.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="text-decoration: underline;">The other thing is:</span></p><p>When stopping the server instance, then I have to wait very very often more than <strong>5 Minutes</strong> - jboss tools brings a pop up with the info - <strong>"problems by stopping the server"</strong> - however, the log of the server told me that it was already stopped, but it hangs and my eclipse ide hangs while jboss tools tries to stop the already stopped server.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="text-decoration: underline;">My big problem is:</span></p><p>I spend time more to wait than to develop - I wait 2-3 minutes to start the server - I wait 3-5 minutes to stop the server. If I make in one hour only 5 little changes in my source-code (java-files) which I want to view in my browser, then I have to wait ~5*3+5*3 minutes in one hour - ~30 minutes in one hour is lost and not productive!! It is really not exaggerated!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>While waiting and trying, I can not be productive and I loose the focus of my business logic. It is really frustrating to wait and wait and (re)try again only to view the result of a little change of my source code.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Sorry, I am really not sure, if jboss tools or eclipse or jboss AS is the problem. My PC is a dual core 2.66 ghz with 300 mb ram. I found out that glassfish with netbeans only need about <strong>8-12 seconds</strong> for hot-deployement of exactly the same war-file (which is about 3 MB) on my machine.</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/587010#587010">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>