facebook

Deployment worked, Now it fails

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

    rogue_dev
    Member

    I am using Ecplise 3.01, MyEcplise 3.8.3, Windows 2K Pro

    I have successfully deployed many times (TomCat 5.0, local drive)

    As far as I know, I did NOT change anything in Ecplise or MyEclipse.

    However, the deployment now Fails. That is to say, the deployment dialog states that the deployment was successful, however:
    – there are no files in the target WEB-INF/lib directory. There should be several, including the one that is part of the project
    – NONE of the JSP files are copied over

    The log file contains nothing from MyEcplise. I renamed the old one, then created a blank one.

    I have tried deleting the app from the webapps directory, but the same partial deployment happens.

    #223746 Reply

    Riyad Kalla
    Member

    Try this:
    1) Fire up MyEclipse
    2) Make sure app server isn’t running
    3) Open deployment tool, remove your deployment
    4) Close your project
    5) Shut down MyEclipse, add -clean to the command line options and start MyEclipse again
    6) Open your project
    7) Project > Clean, your project so it rebuilds
    8) Open the deployment tool and setup a new deployment for it and deploy it

    Did it work?

    #224058 Reply

    rogue_dev
    Member

    No, it did not. Same symptoms.

    Ok, I found it.

    I have a log directory. At the beginnings of my project I was writing to the source location log directory. These log files were also being deployed. I manually deleted so they would not be deployed. Note that I did this outside of Eclipse.

    This morning I did a “Refresh” on the log directory within Ecplise. Now the deployment works correctly.

    It appears that the deployment was failing <b>silently</b> when it tried to deploy a file which was in the Eclipse project, yet was not on disk.

    #224063 Reply

    Riyad Kalla
    Member

    It appears that the deployment was failing silently when it tried to deploy a file which was in the Eclipse project, yet was not on disk.

    If you highlight the deployment in the deployment tool list, it should show you down in the messages something like “Deployment is out of sync” or something to that extent.

    #224073 Reply

    rogue_dev
    Member

    No, it said “Successfully Deployed”. No error messages, no indication that the deployment was not complete.

    This is reproducable:
    – create a folder within Eclipse, within the project. Give a name which is not alphabetically after any other folder (ie: do not call it zzzzz)
    – from the file system (outside of Eclipse), create a file in the folder
    – within Eclipse, refresh the folder. The file should now appear.
    – deploy the project – this works, all the files are copied
    – from the file system (outside of Eclipse), delete the file
    – deploy the project. The deployment tool reports success, BUT, any files/folders alphabetically after the a/n folder are not copied/deployed
    – within Eclipse, refresh the folder. The file disappears
    – deploy the project. Now it really does deploy successfully

    #224075 Reply

    Riyad Kalla
    Member

    Thank you for the steps to reproduce, I will look at this later today and file a bug for it.

    #224503 Reply

    I have a similar, probably related problem as described above. After I’ve made changes to my Web-project, I need to manually copy the changed files from:

    F:\tomcat\webapps (where they are copied by MyEclipse)

    to

    F:\tomcat\server\webapps (which is there the server keeps the running apps, AFAIK)

    Could you clarify this behavior and is there a solution? When I first installed MyEclipse, I did not have this problem.

    Thanks,
    – Mark

    I’m using Eclipse3.1M3, MyEclipse 3.8.4, Tomcat 5.5.4 and Java5

    #224507 Reply

    Riyad Kalla
    Member

    Mark,
    This can be confusing if you are new to Tomcat, but the client webapps DO belong in \webapps dir. Only the server webapps provided by Tomcat belong in the \server\webapps dir… thesare the Tomcat Manager and Tomcat Adminstrator programs.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Deployment worked, Now it fails

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