facebook

Sync-on-Demand does not work, help!

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #262626 Reply

    Will Webber
    Member

    Hello
    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
    Vijay

    #262733

    Riyad Kalla
    Member

    Vijay,
    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.

    #262779

    Will Webber
    Member

    Riyad
    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

    #262781

    Riyad Kalla
    Member

    Vijay,
    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?

    #263051

    Will Webber
    Member

    I 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
    Vijay

    #263054

    Riyad Kalla
    Member

    Vijay,
    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?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Sync-on-Demand does not work, help!

You must be logged in to post in the forum log in