- This topic has 40 replies, 16 voices, and was last updated 16 years, 12 months ago by
Riyad Kalla.
-
AuthorPosts
-
July 20, 2007 at 9:51 am #272962
gcstangMemberI did the Refresh and can now see the errors and have fixed them which solved the problem however this error is still unhelpful.
Windows XP SP 2
MyEclipse 5.5.1
Tomcat 6.0.13
JDK 6u2September 3, 2007 at 1:48 pm #274978
Michael LaccettiParticipantMyEclipse Configuration:
Before I describe my problem, I’ll provide some information as to the workspace. There are two projects, the first project is a simple Java project that contains some common code. The second is a webapp, which relies on the common code. Both projects use the standard Maven layout. The web-app output directory is set to webapp/src/main/webapp/WEB-INF/classes, the web-root folder is set to /src/main/webapp. This way, it’ll deploy properly, as all the files are in the right place. We are using the Maven Eclipse plugin to manage our dependencies – If both projects are open, the plugin sets the web-app to use the common project, otherwise it’ll look in the repository for a deployed jar.The problem:
We’ve run into the same issue a few times, with 5.5.x and 6.0. If only the webapp is open, (re)deployment is no problem. However, if both projects are open, and we try to deploy the app, it’ll fail due to problems with dependencies. No amount of cleaning will fix this. The only way to fix this is to close the common project, redeploy the web-app, and re-open the other project. Tiresome and frustrating, as you can imagine. There is no real information as to what is going wrong. We aren’t using Maven to build/package, just for dependency management, so it should not be failing due to generated artifacts. So, to sum up, it would appear that the problem is due to dependency management. Any help in resolving this would be appreciated, as I have no desire to have to choose between Maven and MyEclipse.Edit:
This problem has happened in a few different projects where there are two (or more) projects open, and there are Maven dependencies between them. It isn’t an isolated incident.September 4, 2007 at 11:44 am #275021
Riyad KallaMembernihilist,
Since MyEclipse doesn’t support Maven at this time, I’m not sure what is going on… but I’ll see if there is some way we can work around this annoyance and get you sailing atleast relatively smoothly.Out of curiosity when the deployment fails, if you right-click and manually refresh each project, then try and redeploy, does it work then? It might not be an artifact that is screwing up the deployer, but something smaller… maybe an invalid state-check? So refresh might fix that.
October 1, 2007 at 11:02 am #276323
Michael LaccettiParticipantThis message has not been recovered.
October 1, 2007 at 12:07 pm #276341
Riyad KallaMemberThis message has not been recovered.
October 1, 2007 at 12:16 pm #276345
Michael LaccettiParticipantThis message has not been recovered.
October 1, 2007 at 1:00 pm #276360
Riyad KallaMemberThis message has not been recovered.
November 4, 2007 at 8:01 am #277965
mulpuriParticipantThis message has not been recovered.
November 5, 2007 at 12:54 pm #278021
Michael LaccettiParticipantThis message has not been recovered.
November 6, 2007 at 9:40 am #278065
Riyad KallaMemberThis message has not been recovered.
November 13, 2007 at 12:00 pm #278489
Michael LaccettiParticipantIt has been a week. Any information on this?
November 13, 2007 at 1:04 pm #278500
Riyad KallaMembernihilist,
No. Dev team has been heads down with about 100 other TODO items. Maven is on there and researching existing issues (this is on that list) is part of that process.November 14, 2007 at 3:44 am #278534
jubaMemberI have exactly the same issue. I got several Projects in my workspace. Yesterday, Eclipse crashed and afterwards, I’m not able to deploy one project I was working on the last, as the crash occured. Other projects in my workspace can be deployed without any problem. Also, there is no error pending in the undeployable project. I removed the project and checked it out again from the mvn repo, but this didn’t help. So i’m stuck here. Rebuilding my workspace is horrible, as I have 25 Projects in it.
The message I get is: Deployment failure on Tomcat 5.x. Could not copy all resources to C:\eclipse-common\tomcat\Tomcat_5.5.23\webapps\project1. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\eclipse-common\tomcat\Tomcat_5.5.23\webapps\project1A reboot of my machine also didn’t help.
I’m on Eclipse Europa, MyEclipse 6.0.1GA
Additional Plugins: maven2 (0.0.10), Oxygen (9.0.0), WickedShell (2.0.2), NSIS (0.9.6.1), quickRex (3.1.0) , soapui (1.7.6)Please help!
November 14, 2007 at 9:11 am #278550
Riyad KallaMemberJuba,
Try and restart using the -clean command line argument, it’s possible there is stale plugin state in your workspace pertaining to that project’s deployments.If not, then it’s the existring problem between MyEclipse and the maven plugin.
November 14, 2007 at 9:40 am #278555
jubaMember@support-rkalla wrote:
Juba,
Try and restart using the -clean command line argument …We already tried with -clean, but this didn’t help.
But we found a workaround:1. Update to the latest maven plugin version
Note: The update site for the plugin is not in the plugins xml config file, therefore you need to add the http://m2eclipse.codehaus.org/update/ site by hand.
We updated to 0.0.12 today.2. disable maven2 in the project you got deployment problems with
3. re-enable maven2 in the project
4. deploy project to tomcat.
This helped. Deployment is working now.
-
AuthorPosts