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.
Filed as Sun Bug 6481710 NB 5.5RC1+ VWP 1. Create project. 2. Add Table component. 3. Bind it with Oracle DB. 4. Deploy it to GlassFish. Datasource jdbc/dataSource is created. 5. Remove datasource created for project by Creator from GlassFish->Resources->JDBC->JDBS Resources. 6. Open Admin console. Create new JDBC Resource for something else than Derby with name jdbc/dataSource. 7. Redeploy project. Result: Application works well, but pool is changed for jdbc/dataSource. The information in the 'setup/*' files is unconditionally configured in the server, possibly overwriting other information.
This is by design. The IDE+Plugin ensures that when resources are created during development within IDE, no duplicate server resources are created. So if a resource with the same name exists on the server, user is prompted that it is a duplicate. But if a duplicate resource is created outside of the IDE on the server and the project is deployed, the resources within the project update the resources on the server.