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 66238 - [50cat] JBoss minimal domain is not listed in Add Server Instance wizard
Summary: [50cat] JBoss minimal domain is not listed in Add Server Instance wizard
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-07 12:13 UTC by jlaskowski
Modified: 2005-11-21 16:30 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 jlaskowski 2005-10-07 12:13:22 UTC
[ BUILD # : 200510061800 ]
[ JDK VERSION : 1.5.0_05 ]

Installed JBoss 4.0.3 and the minimal configuration doesn't contain the deploy directory that seems to be relevant for the Add Server instance process.

1/ Runtime->Servers->Add Server...
2/ Choose JBoss Application Server 4.0
3/ Available domains don't contain 'minimal' entry
Comment 1 Sherold Dev 2005-10-07 12:41:37 UTC
-> jboss
Comment 2 Michal Mocnak 2005-10-10 09:45:09 UTC
I am not able to reproduce it. I can add minimal instance of JBoss and also i
can run it. I used same configuration like reporter. I just untar the Jboss
instead of using the installer.
Comment 3 Michal Mocnak 2005-10-12 10:43:31 UTC
Mark as invalid cause it is not a defect. If you install jboss4 via installer
only one domain will be installed (it can be named how you want) and due to the
netbeans shows to you only this domain. If you do not use the jboss4 installer
and download the tar archive there will be 3 domains (all, default and minimal)
and netbeans shows to you these 3.
Comment 4 jlaskowski 2005-10-18 09:06:16 UTC
Tried it again and it doesn't work. Probably lack of enough information on the
issue is THE issue.

Product Version  = NetBeans IDE Dev (Build 200510131600)
Java             = 1.5.0_05

Steps to reproduce:

1. Runtime->Servers->Add Server...
2. Select JBoss Application Server 4.0->Next
3. Enter installation location (it has to point to 4.0.3 binary installation)->Next
4. Under Domain: drop-down list, the 'minimal' domain is missing.

Comment 5 Libor Kotouc 2005-10-18 09:37:27 UTC
Please provide type of JBoss installation (.jar or archive only) and
installation steps, especially if you installed with installation wizard.

Also look at the installation directory whether the installed domain is not
missing. Thank you.
Comment 6 jlaskowski 2005-10-18 11:54:52 UTC
JBoss installation is from the archive (zip) file.
There're 4 domains in the server directory: three created by default and one is
mine. Only minimal that's part of the default distro is not listed in the
drop-down list of available domains.
Comment 7 Libor Kotouc 2005-10-18 12:20:29 UTC
Interesting.

I looked at the source code. NB is looking for the directories in the
<installation dir provided by user>/server. Each directory is checked with the
following rules:

1. must be readable by user running NB
2. must have following children:
 - directories: conf, deploy, lib
 - files: conf/jboss-service.xml, lib/jboss-management.jar

If you have all these requirements fulfilled then the domain is shown in the
wizard's combobox.

Could you please check it?
Comment 8 jlaskowski 2005-10-18 14:29:08 UTC
I should have told you this before we started the conversation: I'd noticed that
minimal came with *no* deploy directory. Probably it is the reason why it
doesn't show up in the available domains list.

I wonder whether it's a bug or not. It depends on the capabilities of
JBossDeployer and how NetBeans serverplugins works with it. The
jboss-service.xml includes MainDeployer service that requires deploy directory
to run, but...Does NetBeans deploy J2EE modules by copying it into the deploy
directory or hands over the deployment to it via JMX?
Comment 9 Libor Kotouc 2005-11-21 16:30:50 UTC
1. deploy directory is (although empty) included in the JBoss 4.0.3+ versions (I
downloaded archives for 4.0.3 and 4.0.3 SP1 versions) -> closing as invalid

2. you are right, if deploy directory is missing then minimal domain is not
available in the wizard

3. JB plugin in NetBeans uses deploy directory to copy the built archive into it
and waits until JBoss recognizes the archive and deploys it.

The problem (or rather feature) is that minimal configuration starts only the
management services (RMI/1098 and JNP/1099 ports), not deployment service or web
server.
You can verify it by running http://localhost:8080 in your browser.