Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kzettel
Post subject: Deployment Failure  PostPosted: Apr 13, 2007 - 05:48 PM
Veteran Member
Veteran Member


Joined: Aug 18, 2004
Posts: 9

I recently started getting an error when deploying to Tomcat 5.5 or when using a custom location. I get the error message:

Deployment failure on <Custom Location>. Could not copy all resources to C:\servers\Tomcat55\webapps\my-web-app. 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:\servers\Tomcat55\webapps\my-web-app

This happens while Tomcat is not running and no other application is touching the directory. This also happens when I deploy to any other location (such as C:\temp\my-web-app) which leads me to believe that it is not because a file is locked by another application but possibly locked by Eclipse. This appears to cause my application to not be deployed completely.

I am having this problem with 5.5.0M2 but I also had the problem with 5.1.

I recently installed a new version of the Maven2 plugin and this may be related.

My Questions:
1. How can I find out what file is being locked or get this error to log?
2. Has anyone else seen this? Is this a known issue?
3. How can I work around it?

Thanks,
Kurt

My configuration:

*** Date:
Friday, April 13, 2007 11:43:31 AM CDT

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


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5.0 Milestone 2
Build id: 20070409-5.5.0-Milestone2


*** Eclipse details:
Eclipse SDK

Version: 3.2.2
Build id: M20070212-1330




Eclipse Graphical Editing Framework

Version: 3.2.2.v20070208
Build id: 20070208-1315


Eclipse Platform

Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330


Eclipse Java Development Tools

Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20060921-0945


Eclipse Graphical Editing Framework

Version: 3.2.2.v20070208
Build id: 20070208-1315


Eclipse Project SDK

Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330


Eclipse RCP

Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20060629-1905


Eclipse Plug-in Development Environment

Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20060921-0945




Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\tools\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
9b4_a0
-clean
-vm
C:\tools\jdk1.5.0_07\bin\javaw.exe
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 16, 2007 - 11:44 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Kurt,
First remove all your deployments and right-click Refresh all your projects. Then go to Project and clean-all your projects.

Then restart using the -clean command line argument and recreate your individual deployment. Is it working now?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
oakman
Post subject:   PostPosted: May 25, 2007 - 01:01 PM
Veteran Member
Veteran Member


Joined: Jun 24, 2003
Posts: 4

I also have this problem, and my environment is similar to Kurts. I have Maven 2 plugin 0.0.10 installed, and I didn't have the problem with 0.0.9. I've tried to above procedure but no change, tha deploy still fails. When I look what has been deployed, all except the libs are there. It's probably a Maven 2 plugin issue, but maybe it isn't.

thanks,

Niklas
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jeff87
Post subject:   PostPosted: May 25, 2007 - 04:08 PM
Registered Member
Registered Member


Joined: Oct 09, 2005
Posts: 2

I too have this problem in MyEclipse 5.5.1 (all-in-one install). I can run from the command line fine. Here is what I get in the console if it helps:

Code:

[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building batch-capture
[INFO]    task-segment: [test]
[INFO] ----------------------------------------------------------------------------
[ERROR] project-execute : crown:batch-capture:jar:0.3.0 (  task-segment: [test] )
Diagnosis: Error configuring: org.apache.maven.plugins:maven-clean-plugin. Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : C:\Java\work\trunk\batch-capture
Diagnosis: Error configuring: org.apache.maven.plugins:maven-clean-plugin. Reason: Unable to parse the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-clean-plugin:2.1.1



Cause: Error loading class 'org.apache.maven.plugin.clean.Fileset'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri May 25 10:59:09 EDT 2007
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: batch-capture (during test)
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-clean-plugin:2.1.1



Cause: Error loading class 'org.apache.maven.plugin.clean.Fileset'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[ERROR] reactor-execute : C:\Java\work\trunk\batch-capture
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri May 25 10:59:09 EDT 2007
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: May 25, 2007 - 04:45 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Guys there seems to be some bug with the new Maven2 plugin that is pissing off the MyEclipse deployment tool. I had a user email us and another post in the forums about it (deployments totally barf with all sorts of directory errors and what not when Maven2 is enabled).

For the time being can you guys step back to Maven .9 plugin to get it atleast working? Also did anyone file it with the Maven team or see if it's already filed?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
oakman
Post subject:   PostPosted: May 25, 2007 - 07:30 PM
Veteran Member
Veteran Member


Joined: Jun 24, 2003
Posts: 4

It's filed under http://jira.codehaus.org/browse/MNGECLIPSE-323 with no comments from the Maven team yet.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: May 25, 2007 - 07:36 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Thank you for the link (for tracking)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
archerzz
Post subject:   PostPosted: May 31, 2007 - 02:52 AM



Joined: May 14, 2007
Posts: 7

I have the same question. But I did not have a Maven plug-in installed. I'm using MyEclipse 5.1.1 GA.
 
 View user's profile Send private message  
Reply with quote Back to top
archerzz
Post subject:   PostPosted: May 31, 2007 - 03:28 AM



Joined: May 14, 2007
Posts: 7

archerzz wrote:
I have the same question. But I did not have a Maven plug-in installed. I'm using MyEclipse 5.1.1 GA.

The error has been resolved. It's caused by the errors in the project. MyEclipse will prevent some resources with errors to be deployed. That's why some files are locked.
I think the error message is not user-friendly.
 
 View user's profile Send private message  
Reply with quote Back to top
jitu_ragse
Post subject:   PostPosted: Jun 18, 2007 - 10:19 AM



Joined: Jun 16, 2007
Posts: 1

Hi Friend I am new with MyEcllipse 5.5.1 GA , Iam trying to developing a web application using tomcat 5 , but when i am trying to confuigure tomcat 5 with myProject
it shows message that the , application sever noty confuigure properlly ,
can anybody , give me step by step solution
thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Jun 18, 2007 - 11:41 AM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Make sure you have your Tomcat connector configured correctly. This is what it should look like.
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-13941-sid-24d2a7a4572edb755ac9b62ac1e97523.html

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jun 18, 2007 - 04:45 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

jitu_ragse,
If the error is pertaining to "JDK", you need to go to the JDK sub-preference-panel under the Tomcat 5 connector, and click "add" and configure it to run with a JDK, not the default JRE that it picks up. Sorry about the trouble.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
arjan.tijms
Post subject:   PostPosted: Jul 03, 2007 - 01:31 PM
Registered Member
Registered Member


Joined: Mar 15, 2004
Posts: 187

We're having the exact same error as in the opening post here.

Quote:

Deployment failure on Tomcat 5. Could not copy all resources to /home/arjan/apache-tomcat-5.5.20/webapps/Root. 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 /home/arjan/apache-tomcat-5.5.20/webapps/Root.


We're not having any maven plugin installed (just bare Eclipse 3.2.2/MyEclipse 5.1.1) and Tomcat is surely not running. I tried deleting manually, checked all file permissions, created a new workspace, new svn checkout and a whole new Tomcat installation, but the problem persists.

I did notice the problem is related to a single specific project. Other projects in my workspace deploy just fine. Appearently, in that project there is some faulty file that MyEclipse can't or won't deploy.

The problem is that MyEclipse only tells me it could not copy "all" resources. It gives no clue about which resource is problematic, so I have no idea where to start looking right now.

I'm working on Debian Etch btw, using a SUN 6.0U1 JDK. I also tried on a Debian Lenny machine, but the results were the same.
 
 View user's profile Send private message  
Reply with quote Back to top
arjan.tijms
Post subject:   PostPosted: Jul 03, 2007 - 02:45 PM
Registered Member
Registered Member


Joined: Mar 15, 2004
Posts: 187

To follow up on this. By tracking back in our SVN to revisions of the mentioned project that did work, I was able to find the file that caused all these problems: .classpath. Apparently someone had added a non-existing .jar file entry to it.

Still I think it would be a lot more helpfull if MyEclipse had told me why it could not deploy. Would have saved me quite some time...
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 03, 2007 - 04:42 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

Arjan that's really frustrating. We agree that it should report where it got hung up, I've filed an enhancement request to the deployment module. Sorry for the headache.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits