This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error during deployment

 
Rajeev R Tumkur
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Rajeev R Tumkur
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Peter. Can we redeploy the project ear file without restarting the JBoss 5.0.0.4 beta server?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rajeev R Tumkur
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks JaiKiran.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic