File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Error during deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error during deployment" Watch "Error during deployment" New topic
Author

Error during deployment

Rajeev R Tumkur
Greenhorn

Joined: Sep 13, 2007
Posts: 17
Hi,
When I am trying to deploy new version of the existing file 'StudentEAR.ear' in JBoss 5.0.0.4 beta server, I am getting the below error. But, this works fine in JBoss 4.2.2 GA server.

BUILD FAILED
C:\JBoss\eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5.105.v200709061325\buildfiles\jboss323.xml:33: Unable to remove existing file C:\JBoss\jboss-5.0.0.Beta4\server\default\deploy\StudentEAR.ear

Can anybody help me to solve the above problem?
__________________
Thanks
Rajeev R


_ _____________ _ <br />Regards,<br />Rajeev
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

Hi Rajeev,

possibly you deployed the existing version with another user. If that's the case then you probably don't have the privileges to remove this existing file before redeploying the new one.

Marco
Rajeev R Tumkur
Greenhorn

Joined: Sep 13, 2007
Posts: 17
Hi Marc,
Thanks for your reply. But, I have logged-on as the same user on both times. I am not sure about the problem. But the same works fine with JBoss 4.2.2 GA. Is it required to change anything in .xml configuration files?
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

Sorry, Rajeev, unfortunately I'm only using Linux as operating system so I'm probably not a great help for you. Perhaps someone else has more experience with JBoss and Windows.

The only other thing I could imagine is that JBoss is running as a Windows service with a different user and for some reason the eclipse plugin which runs with your user privileges doesn't have sufficient rights to remove this file.

Of course it could simply be a bug of JBoss or the plugin doesn't work well with the beta version.

Marco
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

Rajeev, this is a known issue with 5.0.0.beta4 - it tends to lock the files in Windows. This is an issue with the new virtual file system (VFS).


JBoss In Action
Rajeev R Tumkur
Greenhorn

Joined: Sep 13, 2007
Posts: 17
Thanks a lot Peter. Can we redeploy the project ear file without restarting the JBoss 5.0.0.4 beta server?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Can we redeploy the project ear file without restarting the JBoss 5.0.0.4 beta server?


Try this:

1) Go to http://localhost:8080/jmx-console
2) Search for service=MainDeployer and click on that link
3) On the page that comes up, look for the "redeploy" method which accepts a java.lang.String. In the textbox, pass this string file:///C:/JBoss/jboss-5.0.0.Beta4/server/default/deploy/StudentEAR.ear and click on the "Invoke" button.

That should redeploy your application.


[My Blog] [JavaRanch Journal]
Rajeev R Tumkur
Greenhorn

Joined: Sep 13, 2007
Posts: 17
Thanks JaiKiran.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error during deployment
 
Similar Threads
BEA file io problem
Error while deploying
Trying to deploy a war file with datasources to JBoss
How to deploy GWT web application in JBoss?
ERROR [URLDeploymentScanner] Incomplete Deployment listing