For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 6 replies, 2 voices, and was last updated 21 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
nat101MemberHi;
[Eclipse, 3.01, ME 3.82 (w/ both fixes), Sun Appserver 8.0 update 1.]
On a simple test project with a servlet, a jsp, and a simple html;
Although redeploy works nicely for changes in either the servlet or jsp, it does not redploy changes in the html file. Although it does warn to redeploy after changing the html, and it acts as-if all is ok, in fact the old version of the html remains in the war file. (This was driving me bonkers trying to debug stuff.)
The only way I get the latest html redeployed as well, is by first going into the admin console (port 4848) and UNdeploying the web app from there, and then deploying it from ME.Thanks;
-natNovember 3, 2004 at 5:58 pm #218808
Riyad KallaMembernat,
Hotsync is not supported with packaged deployment, you must use exploded deployment for it to work.Some projects can get as large as 20meg WAR files, it would make no sense for us to recreate/deploy a 20meg WAR file every single time you saved a change in a file; that is why it is only supported with exploded deployments, then we can just copy out the individual file.
November 3, 2004 at 8:48 pm #218815
nat101MemberHotsync is not supported with packaged deployment
I know. I never said it did. Note that I said the following:
Although it does warn to redeploy after changing the html
That only happens when hotsync is off, where the task (under the problems tab) reminds you to do it manually, which I do, but it acts as described above.
Now, I do have an update on this. It does not fail to redeploy if there is an index.html, but it does do this (fail to redeploy a changed html, when I redploy the war manually) if a servlet or jsp is the welcome page, and it links to the html.
I hope I have explained myself, becuase I am still knocked out from election day/night sleeplessness and feel a bit fatigued…
-nat 🙂November 3, 2004 at 9:05 pm #218816
Riyad KallaMembernat,
Thank you for the additional info. Based on what you said I created a new Web project, and added a HTML page to it (MyHtml.html). I deployed this as a packaged WAR file to Tomcat 5, and fired up Tomcat. I hit the page and saw “This is my HTML page”, then I went back to Eclipse and edited the file to add “HAMSANDWICH” at the end of the line, fired up the deployment tool and hit deploy. Waiting until I saw Tomcat’s message in the console that it has redeployed the WAR, went back to browser and hit Refresh and the new page was there (with HAMSANDWICH)… do these steps sound like what you are describing? If not, where did I go wrong?November 4, 2004 at 12:42 pm #218876
nat101MemberIt’s exactly as you describe (except I prefer pizza 🙂 ).
Problem is, that I can’t reproduce it so simply. I shall try, and will let you know when I hit on it again.
(The project must have jsp’s and/or servlets as well, and the html should not the ‘main’ welcome url. )Thanks
-natNovember 7, 2004 at 12:57 pm #219026
nat101MemberOk. Here is the scoop (I think.) There is no bug, BUT there is a problem. And its simple.
When deploying, ME does not check if there are any unsaved files, so it will deploy the previous version of the file. So, its not a ‘bug’ per se, but ME should really prompt something if we attempt to deploy and have edited unsaved files open.
Especially for Netbeans users who switched to Eclipse, since the save button on the (same spot) toolbar (in Netbeans) means SAVE-ALL, whereas in Eclipse it means SAVE.
Other than this, you can close out this thread, as far as I am concerned.
Thank you.
-natNovember 7, 2004 at 2:14 pm #219027
Riyad KallaMembernat I appreciate you refining what was going on here. We do have an enhancement request for a “Save before deploy” that I will add your vote to. Thank you.
-
AuthorPosts
