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 62650

Summary: JBoss always run on port 8080,no matter of what set in wizard
Product: serverplugins Reporter: Jaroslav Pospisil <jpospisil>
Component: JBossAssignee: issues@serverplugins <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: geertjan
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 62657    
Bug Blocks:    

Description Jaroslav Pospisil 2005-08-19 10:47:38 UTC
Open Add server wizard,select JBoss,enter location and move to the last
page.There you can change port,so change it for example to 8089.Start the server
from Netbeans.Now open browser and enter URL http:\\localhost:8089.You'll get
message the connection was refused and JBoss console could be accessed only on
URL localhost:8080,where you could also check,that server is running on the
original port.
Comment 1 zikmund 2005-08-19 10:50:18 UTC
It blocks our automated tests. Please fix it ASAP. Thanks.
Comment 2 Ivan Sidorkin 2005-08-19 11:06:39 UTC
In fact, it's not a bug.
You have possibility to change port number just in case if it was determine
wrong value you have chance to change it.
At the beginning we decided that we cant change JBoss config files, so we cant
change port number.
Comment 3 zikmund 2005-08-19 12:33:07 UTC
What are the reasons for "if it is wrongly determined"? We can determine it in
Tomcat, AppServer. Why is it in JBoss harder?
Comment 4 Ivan Sidorkin 2005-08-19 12:39:24 UTC
because it third party product
Comment 5 Jaroslav Pospisil 2005-08-19 12:55:06 UTC
But then why is there possibility to change port in the wizard,if it do nothing?
I just manually changed http port by editing
"jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\server.xml" file and
jboss normally started on my port 8089.
Do we really couldn't do the same in Netbeans?
Comment 6 zikmund 2005-08-19 12:57:52 UTC
1) Tomcat is third party too
2) See $JBOSS_INSTALLDIR\server\default\deploy\jbossweb-tomcat55.sar\server.xml
      <!-- A HTTP/1.1 Connector on port 8080 -->
      <Connector port="8080" address="${jboss.bind.address}"
         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
         emptySessionPath="true"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"/>
Comment 7 Ivan Sidorkin 2005-08-19 13:03:27 UTC
we cant change it in config files, because of our decision
but we can read it from config each time we run application
Comment 8 zikmund 2005-08-19 13:05:41 UTC
For tests it is sufficient to fix at least issue 62657. We can workaround this
issue then.

I'd recommend only *detect* the port from server.xml and change port number in
Add JBoss panel to readonly field.
Comment 9 zikmund 2005-08-19 13:11:11 UTC
BTW - see how Tomcat works:
  1) read port number from server.xml
  2) get server.xml timestamp
  3) every getPort() checks server.xml and if it has been changed, reparses
server.xml
Comment 10 Pavel Buzek 2005-08-22 14:59:20 UTC
Detecting correct server port and using the server port entered by the user (or
detected) is described sufficiently in issue 62657.

Server wizard is not the right place to change the server port. Support for
changing server port in jboss config files is a new feature request (I am
changing the issue to FEATURE).
Comment 11 zikmund 2005-08-22 15:29:44 UTC
OK, then please fix issue 62657 for test purposes, thanks.
Removing TEST keyword.
Comment 12 Geertjan Wielenga 2005-09-01 10:26:40 UTC
"Server wizard is not the right place to change the server port."

This is news to me. I think any user would assume that that's why the "Port"
field is there -- so that you can SET the port. If you aren't meant to set the
port there, then that field shouldn't be there or it should be readonly.
Comment 13 Geertjan Wielenga 2005-09-01 10:27:13 UTC
"Server wizard is not the right place to change the server port."

This is news to me. I think any user would assume that that's why the "Port"
field is there -- so that you can SET the port. If you aren't meant to set the
port there, then that field shouldn't be there or it should be readonly.
Comment 14 ddevore 2005-09-21 14:19:47 UTC
I am having this same problem except the port is readonly for me. I have even
changed the port manually for the server and the wizard will not even pick up
the change correctly. Please see <a
href="http://www.netbeans.org/issues/show_bug.cgi?id=64837">Issue 64837</a>.
This is a really annoying problem because of <a
href="http://www.netbeans.org/issues/show_bug.cgi?id=64833">Issue 64833</a>.
Please fix this..It worked in the plugin for 4.1 why can't it work in 5.0.
Comment 15 zikmund 2005-09-21 14:36:17 UTC
It would be better to file a new issue ... next time ;-)
Please, provide NetBeans build, OS and JDK information. Thanks.
Comment 16 Michal Mocnak 2006-05-24 09:56:37 UTC
Fixed in 5.5 by new UI.
Comment 17 Michal Mocnak 2006-05-24 12:02:02 UTC
Verified