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 129383 - JBoss 4.2 invalid port
Summary: JBoss 4.2 invalid port
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 12:28 UTC by gborkowski
Modified: 2008-04-08 16:35 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 gborkowski 2008-03-06 12:28:22 UTC
I have JBoss 4.2.2 installed locally with standard three domains (default, minimal, all). Default domain has changed
port number from 8080 to 8089 (in all places under /server/default - there is no "8080" string in any file in this domain).
Now i want to add JBoss to servers section in NetBeans. Go to "add server", select JBoss, go to installation directory.
On next wizard page, NetBeans list the possible domains, but there are only two listed: default and all. So first bug -
"minimal" is not listed.
But I select default domain, and the port is set to 8080 - is it hardcoded in NetBeans or so? very stupid. But the worst
thing that the filed is not editable. I don't have free 8080 port on my machine, this is why i have JBoss configured to
8081! But I cannot change it in NetBeans - I try to start server from NetBeans, but it says "port already in use". 
What is worse, I cannot find any place where netbeans stored this config. Searching for server name, or port 8080 on
either global or per-user NetBeans directory returns no results.
In other words, NetBeans inegration with JBoss is completely nonusable when you run JBoss on port other than 8080.
I use NB 6.0.1.
Comment 1 Petr Hejl 2008-03-06 14:00:35 UTC
Fixed in changeset 45df1578a680.

Minimal domain can't be used as it does not contain no deployers. JBoss port is stored in netbeans userdir.
Comment 2 gborkowski 2008-03-06 14:17:14 UTC
Regarding minimal domain - ok.
But what do you mean by "JBoss port is stored in netbeans userdir" - you mean you fixed it now, or that it is stored
now? If it is now, let me know where.
Comment 3 Petr Hejl 2008-03-06 14:26:10 UTC
The port detection is fixed.

The port of the registered server is (and it always has been) stored in netbeans userdir
($HOME/.netbeans/version/config/J2EE/InstalledServers/.nbattrs).
Comment 4 gborkowski 2008-03-06 14:32:29 UTC
Sorry this was my mistake. 
I had NB 6 beta installed too. By mistake I started this version and added server there - but i searched through the
configuration folder for 6 final (because I thought I'm runnin this version) - and there was no configuration for JBoss
server there, obviously.
Anyway, port detection was really broken.
Comment 5 Radim Roska 2008-04-08 16:35:28 UTC
VERIFIED