tomcat6-instance-create does not behave properly on setting a value less than 1024 for the control port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tomcat6
On specifying any value less than 1024 for the -c option of tomcat6-
For example, on running
$tomcat6-
It configures the instance properly, the server also starts successfully. But, I cannot access http://
The reason being that ports less than 1024 can be used by only those processes which are run as root.
But in my opinion, in such a case (where -c has value less than 1024), the server should refuse to start or at least give a warning that it should be run as root. Otherwise, user may be clueless, as why the pages are not loading.
I have following configuration:
Ubuntu 10.10
tomcat6-user 6.0.28-2ubuntu1.1
tomcat6 6.0.28-2ubuntu1.1
Architecture: x86
Changed in tomcat6 (Ubuntu): | |
status: | Invalid → New |
Sorry, running tomcat6- instance- create as root, solved the issue. But I believe, it should have displayed an error that I need to run the server as root in order to bind to a port less than 1024, rather than stupidly say "server started".