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.
[Build 20050403] There is test scenario: 1) create new J2EE application with EJB module and web module 2) create in EJB module connection pool and JDBC datasource 3) deploy J2EE application 4) undeploy J2EE application 5) remove connection pool and datasource in runtime tab 6) change in project tab: datasource's JNDI name, JDBC connection pool name, 7) deploy J2EE application 8) resources are registered with old names Sun resource are created correctlly when you register it manually from project tab.
The only way I can reproduce this issue is by not using Enter Key or clicking on aanother location in the editor after modifying some value in the property sheet. Similar to Issue 55168. If the cursor continues to be in the edited field when user closes the property sheet or in this case call a deploy on the project, the updated info has not been propagated to the file on disk. The manual Register action will not resolve this issue. I think the focus got moved out by some user action resulting in the updated value being saved before the manual Register action was invoked, so it appeared as though that worked.
I am able to reproduce issue in the latest daily build, see attachement.
Created attachment 21421 [details] snapshot
I can reproduce it too. Running build 200504060831 on MacOSX and Oracle 9lite.
This is a duplicate of a core netbeans P2 bug: http://www.netbeans.org/issues/show_bug.cgi?id=57560 *** This issue has been marked as a duplicate of 57560 ***
I am able to reproduce the issue in last builds.
It seems that the issue is same as 58158.
But can you on the RCE 4.1 build? If not, then it is a 4.2 bug...The trunk has changed a lot recently...
Yes, the issue is reproducible in netbeans41 RC build 200504171930
Are you on Windows or Linux/Unix?
I'm using Linux Fedora2.
Upgrading to P1. Edit of server resources is broken for Unix/Linux environments. Currently works only on windows. The user does not get any specific information that the edited information did not get saved. They will not identify the issue, until after deploy.
Created attachment 21811 [details] diff for the fix
The issue was caused because the path to the resource file used for the save operation was not complete. The save operation then fails resulting in inconsistency between the file on disk and the userview.
*** Issue 58158 has been marked as a duplicate of this issue. ***
Fix verified on linux, solaris and windows. Checking in external/org-netbeans-modules-j2ee-sun-ide-nbms.zip.scrambled; /cvs/j2ee/external/org-netbeans-modules-j2ee-sun-ide-nbms.zip.scrambled,v <-- org-netbeans-modules-j2ee-sun-ide-nbms.zip.scrambled new revision: 1.22; previous revision: 1.21 done Success, CVS operation completed
Fix verified in trunk build 20050422-0644
merged from trunk to 41 branch.
[Build 20050424 netebans41]