You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Pedersen <jo...@gmail.com> on 2007/04/25 16:55:02 UTC

problem switching to port 80

Hi,

I have an app running fine on port 8080, but nothing works when I
switch to port 80 -

in server.xml, changing:

<Connector port="8080" protocol="HTTP/1.1"
               maxThreads="150" connectionTimeout="20000"
               redirectPort="8443" />

to

<Connector port="80" protocol="HTTP/1.1"
               maxThreads="150" connectionTimeout="20000"
               redirectPort="8443" />

I get this error message:

SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port)  is normally
permitted.
	at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
	at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
	at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
	at org.apache.catalina.connector.Connector.start(Connector.java:1132)
	at org.apache.catalina.core.StandardService.start(StandardService.java:457)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler
start failed: java.lang.Exception: Socket bind failed: [730048] Only
one usage of each socket address (protocol/network address/port)  is
normally permitted.
	at org.apache.catalina.connector.Connector.start(Connector.java:1139)
	at org.apache.catalina.core.StandardService.start(StandardService.java:457)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start

I guess there must be something else using port 80? but I can't see it
( tried netstat).

I am running W2000, tomcat 6.

Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
playing with settings, but am getting nowhere.

Any suggestions?

Thanks,

John

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by David Smith <dn...@cornell.edu>.
My personal preference for ferreting out port problems in Windows is 
TCPView 
(http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx).  
It'll offer up a fair amount of info on the process that has the 
conflicting port.

--David

John Pedersen wrote:

> Hi,
>
> I have an app running fine on port 8080, but nothing works when I
> switch to port 80 -
>
> in server.xml, changing:
>
> <Connector port="8080" protocol="HTTP/1.1"
>               maxThreads="150" connectionTimeout="20000"
>               redirectPort="8443" />
>
> to
>
> <Connector port="80" protocol="HTTP/1.1"
>               maxThreads="150" connectionTimeout="20000"
>               redirectPort="8443" />
>
> I get this error message:
>
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port)  is normally
> permitted.
>     at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
>     at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
>     at 
> org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149) 
>
>     at org.apache.catalina.connector.Connector.start(Connector.java:1132)
>     at 
> org.apache.catalina.core.StandardService.start(StandardService.java:457)
>     at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [730048] Only
> one usage of each socket address (protocol/network address/port)  is
> normally permitted.
>     at org.apache.catalina.connector.Connector.start(Connector.java:1139)
>     at 
> org.apache.catalina.core.StandardService.start(StandardService.java:457)
>     at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
>
> I am running W2000, tomcat 6.
>
> Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
> playing with settings, but am getting nowhere.
>
> Any suggestions?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by John Pedersen <jo...@gmail.com>.
Got it - had to change 8443 to 443.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by John Pedersen <jo...@gmail.com>.
One more problem after switching to using port 80 instead of 8080.

https is no longer working. I just get "can't establish a connection
to the server".

It works fine if I switch back to 8080

Here is part of my server.xml:

<Connector port="80" protocol="HTTP/1.1"
               maxThreads="150" connectionTimeout="20000"
               redirectPort="8443" />

<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
	              port="8443" minSpareThreads="5" maxSpareThreads="75"
	              enableLookups="true" disableUploadTimeout="true"
	              acceptCount="100"  maxThreads="200"
	              scheme="https" secure="true" SSLEnabled="true"
	              keystoreFile="C:/1/.keystore" keystorePass="password"
           clientAuth="false" sslProtocol="TLS"/>

Do I need to change something else, beside the port number?

Thanks,

John

PS - I responded the the last posting in this thread directly to the
last sender by mistake.
Here is what I meant to send to the list:
...........................................
Excellent Mr Kewl!

Skype it is - didn't need netstat -noa - just switching skype and
tomcat on and off confirmed it.

Working fine now.

Thanks all - great response!

..............................................

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
Type netstat -noa

It will give you the PID...
Then Ctrl Alt Delete -> Process's and View -> Select Tab PID
Then you can match up the application on port 80 exactly....

Bet its SKYPE... ;)




----- Original Message ----- 
From: "John Pedersen" <jo...@gmail.com>
To: <us...@tomcat.apache.org>
Sent: Wednesday, April 25, 2007 4:55 PM
Subject: problem switching to port 80


> Hi,
>
> I have an app running fine on port 8080, but nothing works when I
> switch to port 80 -
>
> in server.xml, changing:
>
> <Connector port="8080" protocol="HTTP/1.1"
>               maxThreads="150" connectionTimeout="20000"
>               redirectPort="8443" />
>
> to
>
> <Connector port="80" protocol="HTTP/1.1"
>               maxThreads="150" connectionTimeout="20000"
>               redirectPort="8443" />
>
> I get this error message:
>
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port)  is normally
> permitted.
> at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
> at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
> at 
> org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
> at org.apache.catalina.connector.Connector.start(Connector.java:1132)
> at 
> org.apache.catalina.core.StandardService.start(StandardService.java:457)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [730048] Only
> one usage of each socket address (protocol/network address/port)  is
> normally permitted.
> at org.apache.catalina.connector.Connector.start(Connector.java:1139)
> at 
> org.apache.catalina.core.StandardService.start(StandardService.java:457)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
>
> I am running W2000, tomcat 6.
>
> Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
> playing with settings, but am getting nowhere.
>
> Any suggestions?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Application startup error - TOMCAT 5.0.28 / 1.5

Posted by Rashmi Rubdi <ra...@gmail.com>.
On 4/25/07, Dwight Farris <df...@email.arizona.edu> wrote:
> Hello All,
> One of my webApps is throwing the following exception;
>
> java.lang.ClassFormatError:
> Illegal UTF8 string in constant pool in class file
> org/hibernate/hql/ast/ErrorCounter
>
> I have checked the UTF8 strings; nothing has changed and the app has been
> running without issue.


It could also be the UTF-8 Byte Order Mark characters , they are
normally not visible in plain text editors but can be spotted in Hex
editors.


>
> Any ideas are greatly appreciated
>
> Dwight
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Application startup error - TOMCAT 5.0.28 / 1.5

Posted by Dwight Farris <df...@email.arizona.edu>.
Hello All,
One of my webApps is throwing the following exception;

java.lang.ClassFormatError: 
Illegal UTF8 string in constant pool in class file
org/hibernate/hql/ast/ErrorCounter

I have checked the UTF8 strings; nothing has changed and the app has been
running without issue.

Any ideas are greatly appreciated

Dwight 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by Huseyin Sinecan <hs...@yahoo.com>.
The reason might be related with administration rights. Not every user has the right to run an application which listens to requests on port 80.
since 8080 > 1024, so you don't live any problem.

I couldn't get the whole picture in my head actually. I just wanted to remind this.

Regards

hs

Larry Meadors <lm...@apache.org> wrote: Looks like something else is listening on port 80. Is IIS running?

Larry


On 4/25/07, John Pedersen  wrote:
> Hi,
>
> I have an app running fine on port 8080, but nothing works when I
> switch to port 80 -
>
> in server.xml, changing:
>
> 
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> to
>
> 
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> I get this error message:
>
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port)  is normally
> permitted.
>         at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
>         at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
>         at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
>         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [730048] Only
> one usage of each socket address (protocol/network address/port)  is
> normally permitted.
>         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
>
> I am running W2000, tomcat 6.
>
> Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
> playing with settings, but am getting nowhere.
>
> Any suggestions?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: problem switching to port 80

Posted by Larry Meadors <lm...@apache.org>.
Looks like something else is listening on port 80. Is IIS running?

Larry


On 4/25/07, John Pedersen <jo...@gmail.com> wrote:
> Hi,
>
> I have an app running fine on port 8080, but nothing works when I
> switch to port 80 -
>
> in server.xml, changing:
>
> <Connector port="8080" protocol="HTTP/1.1"
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> to
>
> <Connector port="80" protocol="HTTP/1.1"
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> I get this error message:
>
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port)  is normally
> permitted.
>         at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
>         at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
>         at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
>         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [730048] Only
> one usage of each socket address (protocol/network address/port)  is
> normally permitted.
>         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
>
> I am running W2000, tomcat 6.
>
> Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
> playing with settings, but am getting nowhere.
>
> Any suggestions?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by Len Popp <le...@gmail.com>.
Also check if something is using the other ports that Tomcat uses -
the shutdown port, SSL port, other connectors (e.g. AJP), clustering
ports. They're all found in server.xml (but some are probably
commented out).
-- 
Len

On 4/25/07, John Pedersen <jo...@gmail.com> wrote:
> Hi,
>
> I have an app running fine on port 8080, but nothing works when I
> switch to port 80 -
>
> in server.xml, changing:
>
> <Connector port="8080" protocol="HTTP/1.1"
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> to
>
> <Connector port="80" protocol="HTTP/1.1"
>                maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" />
>
> I get this error message:
>
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port)  is normally
> permitted.
>         at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
>         at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
>         at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
>         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [730048] Only
> one usage of each socket address (protocol/network address/port)  is
> normally permitted.
>         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
>
> I am running W2000, tomcat 6.
>
> Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
> playing with settings, but am getting nowhere.
>
> Any suggestions?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by John Pedersen <jo...@gmail.com>.
Not sure what happened - but it is working now. Now I just have to try
to find out if it was something I switched off, or someone else
changing the networks settings.

Thanks for the fast response guys.

If I get a definite answer to what went wrong, I will post it for
future reference.

John

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: problem switching to port 80

Posted by John Pedersen <jo...@gmail.com>.
netstat -an with Tomcat stopped:


 Proto  Local Address          Foreign Address        State
 TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
 TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
 TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
 TCP    0.0.0.0:3260           0.0.0.0:0              LISTENING
 TCP    0.0.0.0:3261           0.0.0.0:0              LISTENING
 TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
 TCP    127.0.0.1:1033         127.0.0.1:1034         ESTABLISHED
 TCP    127.0.0.1:1034         127.0.0.1:1033         ESTABLISHED
 TCP    127.0.0.1:1095         127.0.0.1:1096         ESTABLISHED
 TCP    127.0.0.1:1096         127.0.0.1:1095         ESTABLISHED
 TCP    192.168.1.2:139        0.0.0.0:0              LISTENING
 TCP    192.168.1.2:2995       209.85.137.19:80       ESTABLISHED
 TCP    192.168.1.2:2997       209.85.137.19:80       ESTABLISHED
 TCP    192.168.1.2:4080       209.85.137.19:80       ESTABLISHED
 TCP    192.168.1.2:4093       192.168.1.1:80         CLOSE_WAIT
 TCP    192.168.1.2:4094       192.168.1.1:80         CLOSE_WAIT
 UDP    0.0.0.0:445            *:*
 UDP    192.168.1.2:137        *:*
 UDP    192.168.1.2:138        *:*
 UDP    192.168.1.2:500        *:*
 UDP    192.168.1.2:4500       *:*

I don't see any problem here - but then I am not that sure what I am looking at!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: problem switching to port 80

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: John Pedersen [mailto:john.pedersen@gmail.com] 
> Subject: problem switching to port 80
> 
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).

Use "netstat -an"; plain netstat without options may not show
everything.

The problem may not be port 80, since Tomcat by default uses three ports
(8005 and 8009 in addition to the HTTP connector).

The restriction about ports less than 1024 is normally an issue only on
Linux/UNIX systems, not Windows.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org