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.
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.
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?
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.
This seems to be fixed in JBoss 5 CR1.