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 81516 - JBI needs internet connection to show subnodes in runtime tab
Summary: JBI needs internet connection to show subnodes in runtime tab
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Manager (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 17:00 UTC by Alexander Pepin
Modified: 2006-08-14 14:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2006-07-31 17:00:59 UTC
Steps to reproduce:
- install the IDE
- run IDE
- switch to runtime tab
- unplug the computer from the net
- expand Servers/SunJavaSystemApplicationServer/JBI
- expand any of JBI subnodes
Result: All subnodes are empty whereas some of them sould contain subnodes. e.g.
Service Engines should contain JavaEEServiceEngine and bpelse
Comment 1 Jun Qian 2006-08-02 00:51:02 UTC
Previously, JBI Manager used the MBeanServerConnection from the app server code
but it had some problem in providing detailed error message when a remote
invokation fails. (See IZ 79392, 80251)

To address those issues, JBI Manager now creates its own Connector to talk to
the MBeanServer. To create the connector, it needs to parse some config file
(${nbuserdir}/config/J2EE/InstalledServers/.nbattrs). Apparently, there is some
offline XML catalog issue here.

The app server uses a special class loader to load the JBI Manager module. One
option to fix this issue is to update that class loader to load NetBeans XML
catalog. The particular public ID that I am interested in is "-//NetBeans//DTD
DefaultAttributes 1.0//EN" and it's available in DTD and XML Schema
Catalog/NetBeans Catalog.

I will ask for Ludo's opinion.
Comment 2 _ ludo 2006-08-02 01:33:57 UTC
I am not sure ${nbuserdir}/config/J2EE/InstalledServers/.nbattrs is a public,
available interface to use. Instead, one must use the J2EEServer module and only
its publics APIs. Or maybe some friend apis from the App server plugin. What do
you need from this .nbattr file?
The 2 issues mentioned do not help to understand how they've been fixed.
Comment 3 _ hong_lin 2006-08-02 19:39:49 UTC
My experience in coke milestone build 17 is:

- unplug the computer from the net
- expand the Servers/SunJavaSystemApplicationServer/JBI node and its subnodes.
==> Those subnodes are still listed.

- Stop App Server and re-start App Server.
- expand the Servers/SunJavaSystemApplicationServer/JBI node and its subnodes.
==> Those subnodes are disappeared.
Comment 4 Jun Qian 2006-08-03 18:29:56 UTC
This problem is fixed now by using the NetBeans catalog to resolve entity.

Ludo, we need the httpportnumber, among other things from the .nbattrs file, to
create a HttpServerConnector
(org.netbeans.modules.sun.manager.jbi.management.connectors.HttpServerConnector).
The MBeanServerConnection we get from this connector is user friendly.

We will investigate friend apis from the app server plugin later.
Comment 5 Alexander Pepin 2006-08-08 14:34:40 UTC
The bug is still reproducible in build 060806_1
Comment 6 Jun Qian 2006-08-08 17:47:40 UTC
The bug is only fixed in release55 branch. I will need to get permission before
checking in into the beta branch.
Comment 7 Jun Qian 2006-08-08 21:34:08 UTC
Fixed in cokebeta too.
Comment 8 Alexander Pepin 2006-08-14 14:04:26 UTC
verified in RC1 build