This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121760 - Deployment failing to JBoss5.0.0.Beta2
Summary: Deployment failing to JBoss5.0.0.Beta2
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks: 101622
  Show dependency tree
 
Reported: 2007-11-12 17:55 UTC by pedalshoe
Modified: 2008-08-18 16:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pedalshoe 2007-11-12 17:55:42 UTC
env:
Netbeans 6.0 Beta2
JBoss AS 5.0.0.Beta2
JDK v1.5.0_10
Visual web project

Issue:
After updating the web application, i would like to deploy it, but when i select "Run" from the menu
if the registered server isn't running, Netbeans will start it.  It will then try to deploy to the server/default/deploy
directory, the server will fail to copy the war file because it already exists.

Log file:

INFO [org.netbeans.modules.j2ee.jboss4.JBDeployer]

msg
Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot create file web_app.war in folder
C:/jboss-5.0.0.Beta2/server/default/deploy. This file already exists.
	at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:131)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:246)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:215)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.createDataExt(MasterFileObject.java:1150)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.run(MasterFileObject.java:1092)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.createData(MasterFileObject.java:1042)
	at org.netbeans.modules.masterfs.MasterFileObject.createData(MasterFileObject.java:454)
	at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:254)
	at org.openide.filesystems.FileObject.copy(FileObject.java:121)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.copy(MasterFileObject.java:1156)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.run(MasterFileObject.java:1095)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
	at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.copy(MasterFileObject.java:1050)
	at org.netbeans.modules.masterfs.MasterFileObject.copy(MasterFileObject.java:467)
	at org.openide.filesystems.FileUtil.copyFile(FileUtil.java:315)
	at org.openide.filesystems.FileUtil.copyFile(FileUtil.java:330)
[catch] at org.netbeans.modules.j2ee.jboss4.JBDeployer.run(JBDeployer.java:172)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
ALL [null]: Cannot create file web_app.war in folder C:/jboss-5.0.0.Beta2/server/default/deploy. This file already exists.
Comment 1 Petr Hejl 2007-11-13 08:59:57 UTC
Well it seems like file locking issue? Can you delete the file by hand after this exception occurs?

Does this occurs for simple (not visual) web project?
Comment 2 Petr Hejl 2007-11-13 10:55:13 UTC
I verified this occurs even for simple war - reason is the locked war (jar, ear) after hot deployment. Actually it is a
reported jboss issue http://jira.jboss.com/jira/browse/JBAS-4310.

Lowering priority and leaving this as reminder.
Comment 3 Petr Hejl 2008-08-18 16:33:33 UTC
This seems to be fixed in JBoss 5 CR1.