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 215340 - NetBeans doesn't recognize ports used by JBoss server
Summary: NetBeans doesn't recognize ports used by JBoss server
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 213443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-10 09:02 UTC by _ rkubacki
Modified: 2013-01-11 10:24 UTC (History)
1 user (show)

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 _ rkubacki 2012-07-10 09:02:15 UTC
NB7.2rc1, Linux, JDK6

When adding JBoss server I choose server installation path and the domain. The IDE computes port used by the server but the result is wrong:

in my case server/GIS/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml contains:

<deployment xmlns="urn:jboss:bean-deployer:2.0">
   <bean name="ServiceBindingManagementObject" 
         class="org.jboss.services.binding.managed.ServiceBindingManagementObject">
         
      <constructor>
         <!-- The name of the set of bindings to use for this server -->
         <parameter>${jboss.service.binding.set:ports-04}</parameter>
...
   <bean name="Ports04Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
      <constructor>
         <parameter>ports-04</parameter>
         <parameter>${jboss.bind.address}</parameter>
         <!-- The port offset -->
         <parameter>800</parameter>
         <parameter><null/></parameter>
      </constructor>
   </bean>

NB wants to use port 8887 (specified somewhere else in this file) but the correct value would be 9787 using the port offset.

That makes the server unusable.
Comment 1 Petr Hejl 2012-09-14 10:39:18 UTC
Problem with this bean like xml files is they are so rich with so many different options. NetBeans would have to run all the related JBoss machinery to get the port. In this way JBoss is less IDE friendly with every release.

I guess we could make port configurable in the wizard and properties.
Comment 2 _ rkubacki 2012-09-15 20:10:45 UTC
I'd be OK with that: if auto-guessing does not work give the user chance to customize these values manually.
Comment 3 Petr Hejl 2012-10-08 12:15:19 UTC
Port configuration enabled in wizard: web-main bcd4221595e7.
Comment 4 Quality Engineering 2012-10-09 02:04:20 UTC
Integrated into 'main-golden', will be available in build *201210090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bcd4221595e7
User: Petr Hejl <phejl@netbeans.org>
Log: #215340 - NetBeans doesn't recognize ports used by JBoss server
Comment 5 Petr Hejl 2012-10-19 13:38:42 UTC
*** Bug 213443 has been marked as a duplicate of this bug. ***