-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
jon * wrote:
> It doesn't matter if you are starting or stopping or restarting the server.
> If something else is listening to port 8007 (by default), then you are going
> to get that exception. Period.
>
> So, kill whatever else process is on that port.
>
Jon, thanks for your help.
This doesn't seem to explain why it sometimes works. As
far as I can tell there is nothing _else_ on port 8007
(and I haven't changed the port).
Hmm... Having looked into it some more there have been 98
java processes created. 'killall java' fixes things but doing
this every few seconds isn't really an option :-(
This is what ps -e --forest says:
PID TTY TIME CMD
---8<--snip---
:
---8<--snip---
15841 ? 00:00:00 httpd
15842 ? 00:00:00 \_ httpd
16409 ? 00:00:00 | \_ java
16410 ? 00:00:00 | \_ java
16411 ? 00:00:00 | \_ java
16412 ? 00:00:00 | \_ java
16413 ? 00:00:00 | \_ java
---8<--snip---
:
---8<--snip---
16717 ? 00:00:00 | \_ java
16725 ? 00:00:00 | \_ java
15843 ? 00:00:00 \_ httpd
15844 ? 00:00:00 \_ httpd
15845 ? 00:00:00 \_ httpd
15846 ? 00:00:00 \_ httpd
15847 ? 00:00:00 \_ httpd
15867 ? 00:00:00 \_ httpd
15871 ? 00:00:00 \_ httpd
15884 ? 00:00:00 \_ httpd
15889 ? 00:00:00 \_ httpd
15904 ? 00:00:00 \_ httpd
15908 ? 00:00:00 \_ httpd
15909 ? 00:00:00 \_ httpd
15912 ? 00:00:00 \_ httpd
15913 ? 00:00:00 \_ httpd
15914 ? 00:00:00 \_ httpd
15915 ? 00:00:00 \_ httpd
15920 ? 00:00:00 \_ httpd
15921 ? 00:00:00 \_ httpd
15922 ? 00:00:00 \_ httpd
15923 ? 00:00:00 \_ httpd
and this is what netstat says:
(it lists port 8007 as the local port 91 times)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 981 0 localhost:8007 localhost:2374
ESTABLISHED
tcp 0 0 localhost:2374 localhost:8007
ESTABLISHED
tcp 1 0 mario.vistech.ie:www 10.0.0.14:2642
CLOSE_WAIT
tcp 981 0 localhost:8007 localhost:2373
ESTABLISHED
tcp 0 0 localhost:2373 localhost:8007
ESTABLISHED
tcp 1 0 mario.vistech.ie:www 10.0.0.14:2641
CLOSE_WAIT
tcp 981 0 localhost:8007 localhost:2372
ESTABLISHED
tcp 0 0 localhost:2372 localhost:8007
ESTABLISHED
---8<--snip---
:
more of the same
:
---8<--snip---
tcp 1 0 mario.vistech.ie:www 10.0.0.14:2555
CLOSE_WAIT
tcp 981 0 localhost:8007 localhost:2286
ESTABLISHED
tcp 0 0 localhost:2286 localhost:8007
ESTABLISHED
tcp 982 0 localhost:8007 localhost:2258
CLOSE_WAIT
---8<--snip---
:
more of the same
:
---8<--snip---
tcp 982 0 localhost:8007 localhost:2236
CLOSE_WAIT
tcp 982 0 localhost:8007 localhost:2235
CLOSE_WAIT
tcp 982 0 localhost:8007 localhost:2234
CLOSE_WAIT
tcp 0 0 localhost:2234 localhost:8007
FIN_WAIT2
tcp 982 0 localhost:8007 localhost:2232
CLOSE_WAIT
tcp 982 0 localhost:8007 localhost:2231
CLOSE_WAIT
tcp 982 0 localhost:8007 localhost:2230
CLOSE_WAIT
Donnchadh
--
// Donnchadh � Donnabh�in mailto:[EMAIL PROTECTED]
// Vistech Software http://www.vistechsoftware.com
// Inchvale House, Douglas West, Cork, Ireland
// Ph. +353-21-918166 Fax +353-21-896142
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]