facebook

Hot deployment not working with Tomcat

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

    myeclipse_gs
    Member

    Hi,
    I am using MyEclipse to deploy my project on Tomcat but I am facing a problem with hot deployment. I have a java project to which I added Web Project Capabilities using MyEclipse plugin. Then I deployed the project using MyEclipse plugin and the files were copied from my project directory to Tomcat’s webapp folder. The only problem is now when I change Java files the corresponding class files under Tomcat are not getting updated though the class files under the project directory are getting updated. So, in order for the changes to take affect I have to either redeploy or build the entire project and place the war file under tomcat. I am using Eclipse 3.2 and Tomcat/5.0.30. Any suggestions on what could be the issue would be greately appreciated.

    Regards,
    Gaurav

    #278578 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me,

    #278592 Reply

    myeclipse_gs
    Member

    Here are the installation details:
    *** Date:
    Thursday, November 15, 2007 10:21:20 AM IST
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Java Development Tools
    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment
    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK
    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework
    Version: 3.2.2.v20070208
    Build id: 20070208-1315

    Eclipse RCP
    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\dev\tools\eclipseide\3.2\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    dc0_79c
    -clean
    -plugincustomization
    C:\dev\tools\eclipseide\3.2\eclipse\configuration\de-eclipse32-prefs.ini
    -data
    C:\Documents and Settings\sgau\de\eclipseide\3.2\workspace\default
    -vm
    C:\dev\tools\sunjdk\1.5.0_11\jre\bin\javaw.exe

    Regards,
    Gaurav

    #278593 Reply

    myeclipse_gs
    Member

    Ah, the last line didn’t come up completely in my previous post. Its

    -vm
    C:\dev\tools\sunjdk \ 1.5.0_11\jre\bin\javaw.exe

    Regards,
    Gaurav

    #278594 Reply

    myeclipse_gs
    Member

    Ah, the last line didn’t come up completely in my previous post. Its actually

    -vm
    C:\dev\tools\sunjdk \ 1.5.0_11\jre\bin\javaw.exe

    Regards,
    Gaurav

    #278599 Reply

    Loyal Water
    Member

    Gaurav,
    I hope you are using Exploded deployment. Can you switch to a new workspace, create a new project with some sample java files and test the hot deployment again. This could be a workspace/cache issue.

    #278650 Reply

    myeclipse_gs
    Member

    Hi Nipun,
    Thanks, its working now. Now when I make changes to java files the class files under tomcat are getting updated. Though now I have run into a strange problem. I am registering certain databases in my InitServlet. This works fine when I create a war file from build.xml and deploy the war in tomcat. But when I deploy directly(exploded package itself) from MyEclipse, the databases are not registered properly. I believe MyEclipse also deploys the project based on build.xml, so I could not really figure out a reason for this.

    Regards,
    Gaurav

    #278862 Reply

    Riyad Kalla
    Member

    Gaurav,
    MyEclipse uses it’s own deployment routine and doesn’t utilize the build.xml file at all. So if you are doing custom steps in that build.xml file related to registering these databases, that would explain why they don’t popup when you deploy from MyEclipse.

    #280113 Reply

    RSO_ROMAN
    Member

    Hi,

    I am encountering a similar problem: I have got a “MyEclipse Web Project”, and have this deployed to the integrated “MyEclipse Tomcat” Server.
    Hot deployment works fine for the jsp-Page of my Web Project. It does not at all work for my java-classes in this project. The project is deployed in exploded mode and I already tried to switch the workspace.

    I would appreciate any help.
    Regards

    Roman

    My installation details are the following:

    *** Date:
    Monday, December 31, 2007 11:18:12 AM CET

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Platform

    Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
    Build id: M20070921-1145

    Eclipse RCP

    Version: 3.3.1.R33x_r20070802-8y8eE8sEV3Fz0z0GlHJrXvTAUS
    Build id: M20070921-1145

    Eclipse Java Development Tools

    Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
    Build id: M20070921-1145

    Eclipse Plug-in Development Environment

    Version: 3.3.1.R33x_r20070802-7N7M3D1VIA_52JsDFsEC
    Build id: M20070921-1145

    Eclipse Project SDK

    Version: 3.3.1.R33x_r20070802-7M7J78_mu1mnlRa7A4Ns52XeZ6D0
    Build id: M20070921-1145

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
    -exitdata
    908_7c
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe

    #280138 Reply

    Loyal Water
    Member

    This message has not been recovered.

    #280139 Reply

    RSO_ROMAN
    Member

    This message has not been recovered.

    #280170 Reply

    Loyal Water
    Member

    This message has not been recovered.

    #280242 Reply

    RSO_ROMAN
    Member

    This message has not been recovered.

    #280254 Reply

    RSO_ROMAN
    Member

    This message has not been recovered.

    #280260 Reply

    Loyal Water
    Member

    This message has not been recovered.

Viewing 15 posts - 1 through 15 (of 43 total)
Reply To: Hot deployment not working with Tomcat

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