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.
If i have 2 projects with the same name, each time i try to run one of the projects I get a warning dialog that says "File XXX already exists in PATH_TO_USERDIR/myuserdir/config." I can click OK to dismiss the dialog, but what is the reason for the dialog and what is the problem? How do I prevent the warning from appearing again? What is the file in my userdir that already exists? If there is a problem, dialog should provide more information about how to resolve it. Excerpt of IDE output: msg Caused: java.io.SyncFailedException: File CustomerBook already exists in /Applications/Netbeans_builds/userdirs/userdir6.5_2808/config. at org.openide.filesystems.LocalFileSystem.createData(LocalFileSystem.java:275) at org.openide.filesystems.LocalFileSystem$Impl.createData(LocalFileSystem.java:551) at org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:466) at org.openide.filesystems.FileUtil.createData(FileUtil.java:582) at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1073) at org.openide.filesystems.FileUtil.createData(FileUtil.java:582) at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1073) at org.openide.filesystems.FileUtil.createData(FileUtil.java:582) [catch] at org.netbeans.modules.j2ee.deployment.impl.TargetModuleConverter.writeTargetModule(TargetModuleConverter.java:163) at org.netbeans.modules.j2ee.deployment.impl.TargetModule.save(TargetModule.java:268) at org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl.setTargetModules(DeploymentTargetImpl.java:253) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:184) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:485) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) ALL [null]: File CustomerBook already exists in /Applications/Netbeans_builds/userdirs/userdir6.5_2808/config. FINE [org.netbeans.modules.javahelp]: modal (or viewer) dialog event: java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on dialog14 [Warning] FINE [org.netbeans.modules.javahelp]: new modal dialog stack: [Warning] FINE [org.netbeans.modules.javahelp]: 1. No viewer open. Dialog opened. Push it on stack. rTFL = false.
I added full path of affected file to the error message. Stack trace points to some problem in j2ee area but you could help with evaluation providing mode detailed steps to reproduce. Thanks. http://hg.netbeans.org/core-main/rev/b2dbd49481bc
Netbeans writes data about deployed apps in order to (re)deploy them when needed. This mechanism does not support two apps with same name. It is too risky to change it for 6.5.
Not planned for 7.0
*** This issue has been marked as a duplicate of 96587 ***