facebook

fail to create new build in tomcat when redeploying

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

    I’ve encountered having deployed a web app to tomcat 5.5 and failed to update the build found in the catalina folder?

    Is there’s any way to fix it?

    #224764 Reply

    Riyad Kalla
    Member

    failed to update the build found in the catalina folder?

    Can you please clarify what you mean, I don’t understand what the problem is.

    #224838 Reply

    For example, I’ve removed a simple javascript alert message in a jsp page i’m making. When I save it while having tomcat running in the background, it should be able to do a hot swap. However, it failed to do that. So, I terminate my tomcat server and redeployed my app to make sure my changes are already there. However, when I started it back on then browsed into the jsp, the alert message is still there.

    I’m speculating that tomcat fails to rebuild the jsp classes found in its tomcat5.5/work/catalina/localhost folder (where jsp converted to classes are there). I had to delete my web app folder there to force tomcat to make a new build everytime I made changes in my jsp pages.

    Is there any way to fix this?

    #224849 Reply

    Riyad Kalla
    Member

    RAD,
    In order for hotswap to work, you NEED to be using an exploded deployment, if you are using an exploded deployment then as soon as you save a JSP page, it is immediately copied out to the app server ontop of the existing JSP page under the /webapps/<yourapp> directory somewhere. Tomcat should pick up the timestamp difference and rebuild it to the /work/Catalina/localhost/<yourapp> directory, first to a translated Java file, then a compiled class file.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: fail to create new build in tomcat when redeploying

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