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 57473 - Changes in Sun Resources aren't propagated in App server
Summary: Changes in Sun Resources aren't propagated in App server
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
: 58158 (view as bug list)
Depends on: 57560
Blocks:
  Show dependency tree
 
Reported: 2005-04-05 11:32 UTC by Petr Blaha
Modified: 2006-03-24 12:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (99.06 KB, image/png)
2005-04-06 11:56 UTC, Petr Blaha
Details
diff for the fix (4.46 KB, text/plain)
2005-04-22 01:46 UTC, _ ludo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-04-05 11:32:17 UTC
[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.
Comment 1 Nitya Doraisamy 2005-04-06 01:49:44 UTC
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.
Comment 2 Petr Blaha 2005-04-06 11:56:12 UTC
I am able to reproduce issue in the latest daily build, see attachement.
Comment 3 Petr Blaha 2005-04-06 11:56:59 UTC
Created attachment 21421 [details]
snapshot
Comment 4 Jan Horvath 2005-04-06 13:30:33 UTC
I can reproduce it too. Running build 200504060831 on MacOSX and Oracle 9lite.
Comment 5 _ ludo 2005-04-07 13:49:02 UTC
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 ***
Comment 6 Petr Blaha 2005-04-21 12:48:59 UTC
I am able to reproduce the issue in last builds. 
Comment 7 Petr Blaha 2005-04-21 12:51:52 UTC
It seems that the issue is same as 58158. 
Comment 8 _ ludo 2005-04-21 14:44:07 UTC
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...
Comment 9 Petr Blaha 2005-04-21 14:46:13 UTC
Yes, the issue is reproducible in netbeans41 RC build 200504171930
Comment 10 Nitya Doraisamy 2005-04-21 17:37:37 UTC
Are you on Windows or Linux/Unix?
Comment 11 Petr Blaha 2005-04-21 17:42:30 UTC
I'm using Linux Fedora2.
Comment 12 Nitya Doraisamy 2005-04-22 01:37:13 UTC
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. 
Comment 13 _ ludo 2005-04-22 01:46:11 UTC
Created attachment 21811 [details]
diff for the fix
Comment 14 Nitya Doraisamy 2005-04-22 01:49:31 UTC
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. 
Comment 15 Nitya Doraisamy 2005-04-22 01:50:35 UTC
*** Issue 58158 has been marked as a duplicate of this issue. ***
Comment 16 _ ludo 2005-04-22 01:58:23 UTC
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
Comment 17 Petr Blaha 2005-04-22 09:43:26 UTC
Fix verified in trunk build 20050422-0644
Comment 18 _ ludo 2005-04-22 17:43:04 UTC
merged from trunk to 41 branch.
Comment 19 Petr Blaha 2005-04-26 08:10:07 UTC
[Build 20050424 netebans41]