- This topic has 6 replies, 3 voices, and was last updated 19 years, 8 months ago by krobinson.
-
AuthorPosts
-
rtseMemberI’m sorry for asking, but I can’t find a solid answer on this.
I’ve deployed my web app to the Sun App Server 8.1. If I make modifications to my JSP’s in MyEclipse, is the JSP (or JSP compiled code) on the server supposed to code hot swap? I find it very inconvenient to have to redeploy everytime I make a small change to my JSP file.
Thanks,
Rob
Riyad KallaMemberIf I make modifications to my JSP’s in MyEclipse, is the JSP (or JSP compiled code) on the server supposed to code hot swap?
If you are using an exploded deployment, then yes. As soon as you save that JSP page, it gets copied out to the server, so next time you hit Refresh in your browser, the server will recompile the new page and show it to you. It is a very handy feature.
I usually code for about a week without a redeployment, jsut relying on hotswap (I use Tomcat 5).
rtseMemberOkay… I’ve figured out the whole exploded deployment thing and got it working with SunAppServer …. BUT … the change only seems to take effect if I log out of my application (thus invalidating the session) or closing and opening a new browser window. Clicking the refresh button just seems to make the browser spin endlessly – or clicking on any other link in my application for that matter.
Any ideas? Maybe a configuration problem? I’m running Sun App Server PE 8.1 on Win2000 pro, with MyEclipse 3.8.4
thanks,
Rob
Riyad KallaMemberNo idea Rob, if you don’t need EJBs, I’d suggest using Tomcat, atleast to test your app and see what is going on.
rtseMemberThe problem I’m having has to do with Tiles … a file not using Tiles updates as expected – only the ones using Tiles is giving me this difficulty. I guess I’ll do more battle with it and see if I can get it to update properly. Thanks.
krobinsonMemberI was looking for hot swap of my class files for my web application. These are the files located in web-inf/classes/*, so reloads of the jsp pages though helpful, didn’t quite get the trick done. But I remembered that this was a config parameter in your server.xml file in the context element. For your particular application, add the param/value reloadable=”true”.
Then when you redeply, tomcat will watch the class folder and tomcat will take care of the swap vs. eclipse.
Just thought I’d share 😀
krobinsonMemberCheckout the tomcat configuration section for more details on the above.
-
AuthorPosts