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 46301

Summary: "Cannot read admin port\: null" error
Product: serverplugins Reporter: Martin Schovanek <mschovanek>
Component: TomcatAssignee: Sherold Dev <sherold>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Martin Schovanek 2004-07-19 18:56:42 UTC
[#200407151800, jdk1.5.0-beta3]

The Add New Server action assumes that <Server tag
in server.xml have port attribute. But in case you
are using default port number the Tomcat
Administration tool doesn't save it and IDE
refuses add such server.

To reproduce:
-------------
1) log in to Tomcat Administration tool
http://localhost:8080/admin/
2) press the Commit Changes button
3) in IDE choose Runtime > Server Registry >
Tomcat 5 > Add New Server
4) browse the Tomcat Install directory
ERROR: "Cannot read admin port\: null ..." error
message appears.
Comment 1 Pavel Buzek 2004-07-20 18:13:35 UTC
Stepan, can you take a look at this, please?
Comment 2 Sherold Dev 2004-07-27 09:15:03 UTC
Commit log:

Checking in Bundle.properties;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/ide/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.22; previous revision: 1.21
done
Checking in TomcatInstall.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/ide/TomcatInstall.java,v
 <--  TomcatInstall.java
new revision: 1.20; previous revision: 1.19
done
Comment 3 Petr Blaha 2004-08-04 14:55:21 UTC
Build: 20040802