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 57787

Summary: Wrong port number used in browser
Product: serverplugins Reporter: zikmund <zikmund>
Component: TomcatAssignee: Pavel Buzek <pbuzek>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description zikmund 2005-04-12 17:20:34 UTC
Build 200504111800

1) Run IDE with Clean Userdir
2) Runtime | Servers | Bundled Tomcat -> context menu Start / Stop Server
3) Close dialog
4) Change Bundled Tomcat port number (in Properties)
5) Create WebApp
6) Run WebApp (Tomcat is also started on changed port)
7) ERROR:
Browser uses old 8084 port, not the changed one.
Comment 1 Pavel Buzek 2005-04-13 16:43:29 UTC
I did exactly the steps you describe and it works for me. I have 050411 build
(c/o and built myself) on winxp. Can you check that the correct port number (the
new one) is stored in userdir\config\.nbattrs like this:

    <fileobject name="">
        <attr name="J2EE\InstalledServers\Tomcat_instance\admin_port"
stringvalue="8025"/>
        <attr name="J2EE\InstalledServers\Tomcat_instance\displayName"
stringvalue="Bundled Tomcat (5.5.7)"/>
        <attr name="J2EE\InstalledServers\Tomcat_instance\httpportnumber"
stringvalue="8093"/>

Thanks.
Comment 2 zikmund 2005-04-13 16:54:56 UTC
Reproducible in 200504121800:
All 3 ports are changed in .nbattrs as I set them in Properties:
  <attr name="J2EE\InstalledServers\Tomcat_instance\admin_port"
stringvalue="18025"/>
  <attr name="J2EE\InstalledServers\Tomcat_instance\debugger_port"
stringvalue="11556"/>
  <attr name="J2EE\InstalledServers\Tomcat_instance\httpportnumber"
stringvalue="18084"/>
Comment 3 Jaroslav Pospisil 2005-11-29 12:54:35 UTC
Cannot reproduce in 200511271900,I assume it's fixed.
Comment 4 Jaroslav Pospisil 2005-11-29 12:55:18 UTC
Verified in 200511271900