- This topic has 7 replies, 3 voices, and was last updated 20 years ago by Riyad Kalla.
-
AuthorPosts
-
rogue_devMemberI 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 overThe 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.
Riyad KallaMemberTry 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 itDid it work?
rogue_devMemberNo, 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.
Riyad KallaMemberIt 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.
rogue_devMemberNo, 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
Riyad KallaMemberThank you for the steps to reproduce, I will look at this later today and file a bug for it.
Mark Hissink MullerMemberI 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,
– MarkI’m using Eclipse3.1M3, MyEclipse 3.8.4, Tomcat 5.5.4 and Java5
Riyad KallaMemberMark,
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. -
AuthorPosts