For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 2 voices, and was last updated 19 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
Will WebberMemberHello
I am deploying my web project on Tomcat 5.0 server in the expanded format. This is a standard, Struts – Spring-Hibernate app with 1 dependent project. For the dependent project, I am using the MyEclipse Smart Deployment, which is the default.I make change to the JSP or Java files in the main project but the changes are not copied to the Tomcat deployment folder.
What am I missing?I am using Eclipse 3.2 & MyEclipse 5.0.1
Please post your reply here, so others can benefit as well. I asked a few other MyEclipse users and they did not know of how to make use of Sync-on-Demand feature and how to use it.
Thanks
VijayNovember 28, 2006 at 10:48 pm #262733
Riyad KallaMemberVijay,
Just to clarify, your dependencies look like this:+ Web Project (Struts) + Plain Java Project (Dependency)and when you make changes to the Web Project, the classes are not deployed?
Also, are you basing this “not working” on the timestamps on the files not changing, or because the behavior of your application isn’t changing? There are a few things that can cause hot-syncing to fail, and if you have the warning turned off under Window > Prefs > Java > Debug, you won’t see the error popup telling you the class couldn’t be hot synced.
November 29, 2006 at 10:38 am #262779
Will WebberMemberRiyad
Yes my project is as you described, a Struts web project that is dependent on one plain Java project.By not working I mean I don’t see the timestamp of the class file change in the Tomcat/webapps/myProject folder.
This is true, for class files, JSP, HTML or anything else.Also, Window > Prefs > Java > Debug, All the warning/error reporing is turned on.
Thanks for your help.
Vijay
November 29, 2006 at 10:46 am #262781
Riyad KallaMemberVijay,
Very strange. Can you remove the deployment and re-create it as exploded (that is the only way sync works is with a exploded deployment) and see if that fixes the issue?December 5, 2006 at 11:20 am #263051
Will WebberMemberI did some more investigation and found the following:
1. The updated files from the subproject ARE copied to the deployment folder and are loaded by Tomcat.
2. The updated JSP or class files from the main web project are not copied to the Tomcat deployment folder.
Any help is highly appreciated. I am having to do manual redeploy of the whole project which takes upto 2 minutes to copy every thing to the deployment folder.
Thanks
VijayDecember 5, 2006 at 11:51 am #263054
Riyad KallaMemberVijay,
Are you checking the actual timestamps on the JSPs waiting atleast a minute apart? For example, I know some JSF applications using DataTables will keep the cached datatable and *keep* showing the old JSP page, no matter what you do with the new JSP page, even if you erase it. It actually requires a restart of the web context to show the change.For example, if you create a brand new JSP using the default JSP template and deploy it, then view it, then change a few chars in it and save it, then reload it, do you see the changes?
-
AuthorPosts
