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 54559 - cannot register database resources
Summary: cannot register database resources
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 15:18 UTC by Pavel Buzek
Modified: 2006-03-24 12:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (1.83 KB, patch)
2005-02-04 15:18 UTC, Pavel Buzek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2005-02-04 15:18:37 UTC
Also, the Server Resources node is not visible.

This is a regression caused by removal of Default
Server from the UI of j2eeserver (done by sherold,
approved by me - sorry). App server uses the
default server for registration of resources.

I have a patch for that I will attach, need review
from Ludo.

As far as I can tell this was the only usage of
this method (in tomcat and app server plugins).
The problem is we also need to remove the
InstanceProperties.getDefaultServer(). I will file
a separate issue for that.
Comment 1 Pavel Buzek 2005-02-04 15:18:59 UTC
Created attachment 20204 [details]
patch
Comment 2 _ ludo 2005-02-04 17:08:51 UTC
the patch is not enough. What we need to get is the project, then the
registered server for this server and use this one...

Do you have a quick way from a file object to get its project then the
server fro this project?
Comment 3 _ ludo 2005-02-05 00:48:09 UTC
Pavel, can you take this one?
Comment 4 Pavel Buzek 2005-02-15 10:25:03 UTC
FileOwnerQuery to find the project, 
project.lookup (J2eeModuleProvider).getServerInstanceID() to get
server instance
Comment 5 Nitya Doraisamy 2005-02-22 23:45:20 UTC
Modified resource registration so that the server associated with the
project will be the one that the resource is registered to. 
Comment 6 Lukas Jungmann 2005-04-04 10:09:45 UTC
v. 200504031800