PDA

View Full Version : Cannot run Resin on port 80


michael.lowden
09-12-2009, 08:37 PM
Hello,

Resin is freshly installed, and I can get everything working on 8080, but when I switch to 80 it blows up with the following error:

Sep 12, 2009 1:31:36 PM com.caucho.boot.WatchdogProcess run
INFO: WatchdogProcess[Watchdog[],1] starting Resin
[13:31:36.609] {watchdog-} WatchdogProcess[Watchdog[],1] starting Resin
Resin-3.1.9 (built Mon, 13 Apr 2009 11:09:12 PDT)
Copyright(c) 1998-2008 Caucho Technology. All rights reserved.

Using Resin(R) Open Source under the GNU Public License (GPL).

See http://www.caucho.com for information on Resin Professional,
including caching, clustering, JNI acceleration, and OpenSSL integration.

Starting Resin on Sat, 12 Sep 2009 13:31:37 -0700 (PDT)

[13:31:39.046] {main} 'select-manager' requires Resin Professional. See http://www.caucho.com for information and licensing.
[13:31:39.047] {main}
[13:31:39.047] {main} Windows Vista 6.1 x86
[13:31:39.047] {main} Java(TM) SE Runtime Environment 1.6.0_13-b03, Cp1252, en
[13:31:39.048] {main} Java HotSpot(TM) Client VM 11.3-b02, 32, mixed mode, sharing, Sun Microsystems Inc.
[13:31:39.048] {main} user.name: TCGAdmin
[13:31:39.048] {main} resin.home = C:\resin-3.1.9
[13:31:39.048] {main} resin.root = C:\resin-3.1.9
[13:31:39.275] {main} resin.conf = /C:/resin-3.1.9/conf/resin.conf
[13:31:39.275] {main}
[13:31:39.477] {main} WebApp[http://localhost:80] active
[13:31:39.583] {main} WebApp[http://localhost:80/resin-admin] active
[13:31:39.951] {main} WebApp[http://localhost:80/resin-doc] active
[13:31:39.952] {main} Host[] active
[13:31:39.963] {main} hmux listening to 127.0.0.1:6800
[13:31:39.969] {main} java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[13:31:39.969] {main} at java.net.PlainSocketImpl.socketBind(Native Method)
[13:31:39.969] {main} at java.net.PlainSocketImpl.bind(PlainSocketImpl.java :359)
[13:31:39.969] {main} at java.net.ServerSocket.bind(ServerSocket.java:319)
[13:31:39.969] {main} at java.net.ServerSocket.<init>(ServerSocket.java:185)
[13:31:39.969] {main} at com.caucho.vfs.QJniServerSocket.create(QJniServerS ocket.java:85)
[13:31:39.969] {main} at com.caucho.vfs.QJniServerSocket.create(QJniServerS ocket.java:61)
[13:31:39.969] {main} at com.caucho.server.port.Port.bind(Port.java:970)
[13:31:39.969] {main} at com.caucho.server.cluster.Server.bindPorts(Server. java:1379)
[13:31:39.969] {main} at com.caucho.server.cluster.Server.start(Server.java :1325)
[13:31:39.969] {main} at com.caucho.server.cluster.Cluster.startServer(Clus ter.java:710)
[13:31:39.969] {main} at com.caucho.server.cluster.ClusterServer.startServe r(ClusterServer.java:542)
[13:31:39.969] {main} at com.caucho.server.resin.Resin.start(Resin.java:703 )
[13:31:39.969] {main} at com.caucho.server.resin.Resin.initMain(Resin.java: 1162)
[13:31:39.969] {main} at com.caucho.server.resin.Resin.main(Resin.java:1365 )
[13:31:39.980] {main} Server[id=,cluster=app-tier] error
java.lang.RuntimeException: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at com.caucho.server.cluster.Server.start(Server.java :1345)
at com.caucho.server.cluster.Cluster.startServer(Clus ter.java:710)
at com.caucho.server.cluster.ClusterServer.startServe r(ClusterServer.java:542)
at com.caucho.server.resin.Resin.start(Resin.java:703 )
at com.caucho.server.resin.Resin.initMain(Resin.java: 1162)
at com.caucho.server.resin.Resin.main(Resin.java:1365 )
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java :359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at com.caucho.vfs.QJniServerSocket.create(QJniServerS ocket.java:85)
at com.caucho.vfs.QJniServerSocket.create(QJniServerS ocket.java:61)
at com.caucho.server.port.Port.bind(Port.java:970)
at com.caucho.server.cluster.Server.bindPorts(Server. java:1379)
at com.caucho.server.cluster.Server.start(Server.java :1325)
... 5 more
Sep 12, 2009 1:31:41 PM com.caucho.boot.WatchdogProcess runInstance
INFO: WatchdogProcess[Watchdog[],1] stopping Resin
[13:31:41.032] {watchdog-} WatchdogProcess[Watchdog[],1] stopping Resin
It works for other ports, just not 80 (I tested 8080 / 8180 only).

I'm running:
JDK: 1.6.0_13
Resin: 3.1.9 (free)
Windows 7 -- clean/new install

It's almost as if I have IIS installed, but I'll be damned if it's here and I just can't find it. Any ideas are VERY welcome here. Thanks.

floatingworld
09-22-2009, 06:59 AM
I don't have any ideas on your symptoms specifically but why are you using 3.1.9 instead of 4?

ferg
09-22-2009, 04:33 PM
So some people prefer to run the stable version.

For the port 80 issue, you need to check to see what servers are listening to that port. Unlike unix which has permissions issues with port 80, windows should let you listen to any port as long as there isn't a server already listening to it.

If you use netstat -a, you should see all the ports that are being listened to.

michael.lowden
09-23-2009, 10:29 PM
ooo. good call. didn't think of that angle (stupid stupid stupid).

thanks.

michael.lowden
09-23-2009, 10:30 PM
I don't have any ideas on your symptoms specifically but why are you using 3.1.9 instead of 4?
PS - running 3.1.9 to match that of my webhost :)

michael.lowden
09-24-2009, 01:45 AM
So some people prefer to run the stable version.

For the port 80 issue, you need to check to see what servers are listening to that port. Unlike unix which has permissions issues with port 80, windows should let you listen to any port as long as there isn't a server already listening to it.

If you use netstat -a, you should see all the ports that are being listened to.
well. found a couple things online here (http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/) for disabling the "listener" on port 80 in Windows 7. but, alas, none of them worked.

netstat -a
shows that it is indeed listening on 80/443, but i can't figure out what the program / service is that's listening on those ports.

michael.lowden
09-24-2009, 01:54 AM
well. found a couple things online here (http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/) for disabling the "listener" on port 80 in Windows 7. but, alas, none of them worked.

netstat -a
shows that it is indeed listening on 80/443, but i can't figure out what the program / service is that's listening on those ports.
OOOOOO. FOUND IT HERE (http://ma.tt/2006/10/windows-tip/).

Skype was running on Port:80 for some reason. Killed skype, and now Resin loads up just fine on :80

:)

michael.lowden
10-16-2009, 05:03 AM
this didn't work either :(

nam
10-16-2009, 09:02 PM
It appears that some part of Windows 7 may be listening on port 80.

http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/

saiyed
01-21-2010, 11:43 AM
People who come in looking for a resolution to this.

To check, run command: netstat -a -b
you may need to elevate the command prompt as Administrator for the -b switch.

I found Skype as the culprit on my Win 7.