facebook

Hot deployment not working with Tomcat

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

    Loyal Water
    Member

    You will have to check the “Accept Licence agreement” check box and click “Download the latest Version of MyEclipse”. Under the very first point on the next page, you will see a pulse optimised mirror for windows. You will have to click that.
    http://www.myeclipseide.com/module-htmlpages-display-pid-4.html

    #280524 Reply

    changg41
    Member

    still not workig right.

    in Project Deploymnet, I select my project and click remove, I can see my project is deleted from tomcat webapp folder (look like Hot Deploymnet working right for removing the proejct ). And then I add my project back again. I can see Hot Deploymnet creates my project in tomcat webapp, but none of any sources (such as classes files) from my project is copied over except lib files, which are included in java build path property, are copied into /WEB-INF/lib/
    However, I can see MyEclipse compile all the source files into myproject/src/main/webapp/WEB-INF/classes/. I assume Hot Delopyment should copy all the source files from myproject/src/main/webapp/WEB-INF/classes/ into tomcat myproject/WEB-INF/classes/

    Don’t understand why Hot Deploymnet won’t copy rest of source files .

    Hot Deployment creates the following folder in tomcat webapp/myproject folder
    /META-INF
    /WEB-INF/classes/ ——–> 0 files
    /WEB-INF/lib/ ——-> lib files are copied correctly into this folder.

    Grace

    #280527 Reply

    Riyad Kalla
    Member

    Grace,
    We cannot send the link directly. You click the Try/Download link, then agree to the license, then click the giant “Download MyEclipse 6.0” button, on the next page, you see the list of all the downloads for each paltform.

    #280531 Reply

    changg41
    Member

    Nipun sent me the link and I downloaded it.
    See the previous email I sent on Jan 10, 2008 – 08:38 AM

    #280592 Reply

    Loyal Water
    Member

    The link I sent would take you to the same page the Try/Download link would take you to. You will have to agree to the license and proceed.

    #280594 Reply

    changg41
    Member

    yes, I downloaded the pulser successfully, but hot deployment is still not working ( did you see my reply on Jan 10, 2008 – 08:38 AM ?)

    here is my reply on Jan 10, 2008 – 08:38 AM

    —————————————————–
    still not workig right.

    in Project Deploymnet, I select my project and click remove, I can see my project is deleted from tomcat webapp folder (look like Hot Deploymnet working right for removing the proejct ). And then I add my project back again. I can see Hot Deploymnet creates my project in tomcat webapp, but none of any sources (such as classes files) from my project is copied over except lib files, which are included in java build path property, are copied into /WEB-INF/lib/
    However, I can see MyEclipse compile all the source files into myproject/src/main/webapp/WEB-INF/classes/. I assume Hot Delopyment should copy all the source files from myproject/src/main/webapp/WEB-INF/classes/ into tomcat myproject/WEB-INF/classes/

    Don’t understand why Hot Deploymnet won’t copy rest of source files .

    Hot Deployment creates the following folder in tomcat webapp/myproject folder
    /META-INF
    /WEB-INF/classes/ ——–> 0 files
    /WEB-INF/lib/ ——-> lib files are copied correctly into this folder.

    Grace

    #280672 Reply

    Riyad Kalla
    Member

    Grace,
    Something strange is going on… if you don’t mind I’d like to back all the way up to super-basics and make sure that the deployment functionality (regardless of app server) is working.

    Could you launch Pulse, then launch the MyEclipse Profile. When you are asked for a workspace, can you enter in a directory that doesn’t exist… something like C:\tempworkspace or something like that, then hit OK. After MyEclipse has started up (you can close the Welcome screen) can you go to File > New > Web Project, and name it something like “TestProject”.

    After that, can you go up to the deployment button in the toolbar, it’s usually the 8th button over from the left next to the “server” looking icon. From there can you select your project from the drop down, then click Add, then for the server select “Custom Location”, leave it as an exploded deployment, and down in the “Deploy Location” field, make sure it’s a directory that *does not currently exist*… for example in my screenshot I chose: C:\DELETEME\TestProject, then hit Finish.

    Now select the deployment and hit Browse, do all the files look OK? If you go back to MyEclipse, can you create a new class file under the /src directory and after it’s created, go back to your file explorer and drill down to WEB-INF/classes and hit F5 to refresh and see if you can see that class?

    What I’m doing here is really making sure that in the simplest case, deployment is working and trying to rule out any other problems.

    #280848 Reply

    changg41
    Member

    Yes, I try a simpliest project without any lib file incluedes and it works. The classes can be also deploy to tomcat folder,

    But in my real project, I include tomahawk.taglib.xml in my project \webapp\WEB-INF,

    <?xml version=”1.0″?>
    <!DOCTYPE facelet-taglib PUBLIC
    “-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN”
    http://java.sun.com/dtd/facelet-taglib_1_0.dtd”&gt;

    in Problem window, it shows the error that
    File not found: “http://java.sun.com/dtd/facelet-taglib_1_0.dtd&#8221;.

    I don’t understand why MyEclipse gets this error. This is the only error it displays
    I am wondering the error make the class files in the project fail to deploy the tomcat.

    #280880 Reply

    Riyad Kalla
    Member

    in Problem window, it shows the error that
    File not found: “http://java.sun.com/dtd/facelet-taglib_1_0.dtd&#8221;.

    I don’t understand why MyEclipse gets this error.

    Because that file doesn’t exist. The URI for your doc has to resolve to real file for the TLD contents to be validated against. That particular path doesn’t exist. Try this path:
    https://facelets.dev.java.net/source/browse/*checkout*/facelets/src/etc/facelet-taglib_1_0.dtd

    that is a direct link to the file from the Facelets repository.

    I am wondering the error make the class files in the project fail to deploy the tomcat.

    No, it shouldn’t. Is this project something you could share with me privately so I could look at it and see what is going on?

    If so, can you go to File > Export > Archive, and select that project and export it to a ZIP file, then email it to support@genuitec.com ATTN Riyad. Please be sure to include a link to this thread so I have a reference for the attached file.

    #281520 Reply

    gaspegeary
    Member

    @RSO_ROMAN wrote:

    Nipun,
    this seems to be an issue of tomcat configuration. I got it to work now.

    Could someone please let us in on how you can get it to work? I’ve been trying to figure this out all day with no success.

    Thanks.

    #281521 Reply

    gaspegeary
    Member

    @gaspegeary wrote:

    @RSO_ROMAN wrote:

    Nipun,
    this seems to be an issue of tomcat configuration. I got it to work now.

    Could someone please let us in on how you can get it to work? I’ve been trying to figure this out all day with no success.

    Thanks.

    Another question: Why can’t I run the manager application when I start Tomcat in Eclipse? I get a 404 when I try to access it. I found an outdated post on this forum, but evidently it’s for an older version of Myeclipse.

    Getting Tomcat to hot deploy using Myeclipse should not be this difficult. I’ve been all over this forum and all over Google all day trying to figure it out. Someone please tell me the special incantation I must perform so that Tomcat will hot deploy with Myeclipse, when started from Myeclipse, when I change Java files.

    I’m using Myeclipse 6.0.1 and Tomcat 6.0.14.

    Thanks.

    #281530 Reply

    gaspegeary
    Member

    Okay, I figured out how to hot deploy in Tomcat 6.X: change <Context>…</Context> to <Context reloadable=”true”>…</Context> in conf/context.xml. I’m still not sure why I can’t run the manager application when starting Tomcat from Myeclipse, but it’s much less urgent for me now that I got hot deploy working.

    I found this out at http://www.coreservlets.com/Apache-Tomcat-Tutorial/, Marty Hall’s excellent online tutorial for configuring Tomcat 6.X, based on his book Core Servlets.

    @gaspegeary wrote:

    @gaspegeary wrote:

    @RSO_ROMAN wrote:

    Nipun,
    this seems to be an issue of tomcat configuration. I got it to work now.

    Could someone please let us in on how you can get it to work? I’ve been trying to figure this out all day with no success.

    Thanks.

    Another question: Why can’t I run the manager application when I start Tomcat in Eclipse? I get a 404 when I try to access it. I found an outdated post on this forum, but evidently it’s for an older version of Myeclipse.

    Getting Tomcat to hot deploy using Myeclipse should not be this difficult. I’ve been all over this forum and all over Google all day trying to figure it out. Someone please tell me the special incantation I must perform so that Tomcat will hot deploy with Myeclipse, when started from Myeclipse, when I change Java files.

    I’m using Myeclipse 6.0.1 and Tomcat 6.0.14.

    Thanks.

    #281553 Reply

    Riyad Kalla
    Member

    Another question: Why can’t I run the manager application when I start Tomcat in Eclipse? I get a 404 when I try to access it. I found an outdated post on this forum, but evidently it’s for an older version of Myeclipse.

    Do you mean when you start the embedded MyEclipse Tomcat server, or just in general launching an external install of Tomcat using MyEclipse? Or do you literally mean launching Tomcat with *Eclipse* (WTP) and not MyEclipse? Don’t mean to mince words here, but as you can tell there are potentially 3 different scenarios here you could mean depending on the wording.

    Getting Tomcat to hot deploy using Myeclipse should not be this difficult. I’ve been all over this forum and all over Google all day trying to figure it out. Someone please tell me the special incantation I must perform so that Tomcat will hot deploy with Myeclipse, when started from Myeclipse, when I change Java files.

    Just make sure that:
    1. You are using an “Exploded” deployment
    2. That you are starting the server in Debug mode. If you are using the Servers view to launch Tomcat and are selecting “Run”, you need to stop it and select “Debug”… the server has to be running in Debug mode.

    Okay, I figured out how to hot deploy in Tomcat 6.X: change <Context>…</Context> to <Context reloadable=”true”>…</Context> in conf/context.xml.

    That is a good fall-back. With reloadable=true, Tomcat is set to reload the particular web context any time anything under /classes or /lib changes. Tomcat has that set to true by default.

    I’m still not sure why I can’t run the manager application when starting Tomcat from Myeclipse, but it’s much less urgent for me now that I got hot deploy working.

    1. You need to make sure it’s installed, I think the Tomcat group started to ship it separately didn’t they?
    2. You need to enable a manager/admin role in your Tomcat user file. If you haven’t done that yet, double check the Tomcat docs and make sure you do.

    or am I misunderstanding you, and when you launch Tomcat externally Manager is fine, but internally it dies?

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

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