facebook

Deploy of class in 4.1 doesnt seem to work [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #220458 Reply

    omidk
    Member

    hello,
    I have a very simple web project that is deployed as an exploded archive to a Tomcat 4.1.27. I am updating a class that is used in one a very simple jsp yet the changes do not seem to get picked up until I restart tomcat. The class file is being copied to WEB-INF\classes\blah in the tomcat webapps folder. I was under the impression that this would hot deploy.

    Omid

    #220460 Reply

    Riyad Kalla
    Member

    Omid,

    The class file is being copied to WEB-INF\classes\blah in the tomcat webapps folder. I was under the impression that this would hot deploy.

    Hot deploy is a two-step process… the first part of the process is to have MyEclipse get the file out to your application server (which it is correctly doing) the second part of the process is to make sure you have Tomcat (and/or your web application context) setup correctly to recognize and reload changed files. You can use the Tomcat administrator to check the settings of your web context, also please refer to the Tomcat docs for setting this.

    #220510 Reply

    omidk
    Member

    thanks for the help! i set my context as reloadble=true and then it worked.

    Just as a side not I ran into another problem with tomcat 4.1.27 when compiling jsp’s after they had a referenced class reloaded. There is a hotfix to address the issue or if you are luckier than I you can use a more recent version.

    hot fix 22096

    #220512 Reply

    Riyad Kalla
    Member

    omidk,
    Thank you for posting that quickfix for other users, I am sure they will find it quite useful.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Deploy of class in 4.1 doesnt seem to work [Closed]

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