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 57814 - Server resource node isn't refresed
Summary: Server resource node isn't refresed
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 08:28 UTC by Petr Blaha
Modified: 2006-06-03 17:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message log (23.03 KB, text/plain)
2005-04-22 13:02 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-04-13 08:28:22 UTC
[Build 20050412 netbeans41 branch]
Steps:
1) create J2EE application
2) generate CMP beans from database
ERROR: expand Server Resources node. Sun resources are missing. After re-open
project resources are visible.
Comment 1 Andrei Badea 2005-04-13 13:21:35 UTC
I can't reproduce on Linux using the 050413 dev build of release41. Maybe the
bug only manifests on Solaris. Could you please try on Linux or another OS?

Anyway, if it's a bug, it's probably somewhere in the masterfs.
Comment 2 Petr Blaha 2005-04-15 12:02:23 UTC
I tested on Linux and Win XP and here it's working (build 20050415-0036). It
seems that ist's related to  Solaris.
Comment 3 Andrei Badea 2005-04-21 17:53:06 UTC
I added some logging code to ServerResourcesNode. It is activated by defining the 
"org.netbeans.modules.j2ee.common.ui.ServerResourceNode" property when running
NetBeans, such as:

    netbeans -J-Dorg.netbeans.modules.j2ee.common.ui.ServerResourceNode=-5

Please try to test again and look in the messages for something like:

    [org.netbeans.modules.j2ee.common.ui.ServerResourceNode] Adding file 
    listener to MasterFileObject@3c8308[file:/home/abadea/test/EJBModule4/]

when the project is created and

    [org.netbeans.modules.j2ee.common.ui.ServerResourceNode] Refreshing
    [org.netbeans.modules.j2ee.common.ui.ServerResourceNode] The DataFolder is:
   
org.openide.loaders.DataFolder@5bd18b[MasterFileObject@137937[file:/home/abadea/test/EJBModule4/setup/]]
    [org.netbeans.modules.j2ee.common.ui.ServerResourceNode] Children count: 2

after creating the CMP beans.
Comment 4 Petr Blaha 2005-04-22 13:02:22 UTC
Created attachment 21823 [details]
message log
Comment 5 Petr Blaha 2005-04-22 13:04:25 UTC
Can't reproduce in daily build 200504211800, message.log is attached. Marking as
WORKSFORME.