I am also having the issue with JBoss 4.x. It shows :
Deployment failure on JBoss 4.x. Could not copy all resources to C:\Program Files\jboss-4.0.3SP1\server\default\deploy\LMS.war. 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:\Program Files\jboss-4.0.3SP1\server\default\deploy\LMS.war
Please help me out with a solution...
Where are you seeing this error message? What are you using to deploy the WAR file?
Hi pooja and Sunaina,
Its due to your jboss is going to crash.Now it snot able added your jar in to lib folder.
also give exception in console like unable to load javaee jar ...
Solution :- Just change the your jboss and place an new location into pc...
In case of linux u need to kill all jboss running into terminal...