facebook

Seeing Code Changes made in MyEclipse on my Web App

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

    Jeff
    Member

    Java Web Project – MyEclipse 7.5
    App runs on the web (IE8) – no problem.
    I change the content of a servlet. Now I want to see the change via IE8.
    As a minimum, what do I need to do in MyEclipse to see my changes in IE8?
    Do I need to “REDEPLOY”?
    Do I need to stop/start Tomcat 6.0

    Thanks.

    #314479 Reply

    trancid
    Member

    I don’t think it possible for JAVA-classes. I’m using JBOSS 5.1.0 as an AS and I have a Java Web Project. If I change a JSP then that is immediately visible (in the browser). But if I change a servlet class then I need to redeploy! I think that a JAVA-class is cached in some JBOSS class-cache (can anyone confirm this?). However, the changed (and compiled, yes hot deploy) (servlet) class is present in the folder “jboss-5.1.0.GA \ server \ default \ deploy \ <archive>. war \ WEB-INF \ classes”. The only thing is that JBOSS doesn’t pick up that last version of my servlet class. I think you will have the same problem.

    If anyone can confirm this? I think it’s a JBOSS issue.

    #314593 Reply

    trancid
    Member

    Does anyone have an idea?

    #314600 Reply

    support-joy
    Member

    vausa2020,

    Yes, you need to redeploy. There is no need to start/stop the server.

    Best.

    #314601 Reply

    trancid
    Member

    @support-joy wrote:

    vausa2020,

    Yes, you need to redeploy. There is no need to start/stop the server.

    Best.

    And why do you need to redeploy? The class (last version) is available (yes, because of the hot “deploy”) in de exploded archive (read my first answer). Is there no way that the change of the servlet class is picked up “automatically”, without having to deploy?

    #314605 Reply

    support-joy
    Member

    In MyEclipse, any jsp changes would be automatically picked up, you need not redeploy. Whereas if you modify any class files, you need to redeploy for the app server to pick up the changes.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Seeing Code Changes made in MyEclipse on my Web App

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