From owner-freebsd-java@FreeBSD.ORG Tue May 23 12:02:40 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9953B16A457 for ; Tue, 23 May 2006 12:02:40 +0000 (UTC) (envelope-from work@ashleymoran.me.uk) Received: from mercureh.reacthosting.com (reacthosting.com [195.177.245.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E866A43D48 for ; Tue, 23 May 2006 12:02:39 +0000 (GMT) (envelope-from work@ashleymoran.me.uk) Received: from hosta.jigsawfinance.com ([213.106.224.113] helo=alfie.jigsawhq.com) by mercureh.reacthosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FiVav-000JGp-7Q for freebsd-java@freebsd.org; Tue, 23 May 2006 13:02:37 +0100 From: Ashley Moran Organization: Codeweavers Ltd To: freebsd-java@freebsd.org Date: Tue, 23 May 2006 13:02:03 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605231302.03491.work@ashleymoran.me.uk> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mercureh.reacthosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - ashleymoran.me.uk X-Source: X-Source-Args: X-Source-Dir: Subject: Connecting to Jetty X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2006 12:02:40 -0000 I know this isn't specifically related to the FreeBSD JDK but the SourceForge server won't let me join jetty-support. I've installed the latest Jetty on FreeBSD 6.1/amd64 using the latest 1.5 JDK. With the default configuration, I can connect to http://localhost:8080/template/, but not http://127.0.0.1:8080/template/ or http://10.0.1.1:8080/template/ (the IP of the server). As you can imagine, I can't connect at all remotely. Here's the (presumably) relevant bit: 8080 P1 20 200 50 30000 2000 0 8443 8443 If I add the following line to (naively) force it to bind to 10.0.1.1: 10.0.1.1 then I get the error below (note I have made an rc script to run jetty through "su jetty -c ...", not that that should affect binding to a port > 1024!) I'm new to Jetty, and I am really eager to make it work but I can't for the life of me think why such a simple thing is failing. Am i missing something really obvious? Thanks Ashley > # /usr/local/etc/rc.d/jetty.sh start > Defaulting JETTY_HOME to /usr/local/share/java/jetty > Starting Jetty: > STARTED Jetty Tue May 23 12:58:00 BST 2006 > Jetty running pid=22624 > May 23, 2006 12:58:00 PM org.mortbay.util.FileResource > INFO: Checking Resource aliases > May 23, 2006 12:58:01 PM org.mortbay.http.HttpServer setStatsOn > INFO: Statistics on = false for org.mortbay.jetty.Server@766e3d60 > May 23, 2006 12:58:01 PM org.mortbay.http.HttpServer doStart > INFO: Version Jetty/5.1.11RC0 > May 23, 2006 12:58:03 PM org.mortbay.util.Container start > INFO: Started org.mortbay.jetty.servlet.WebApplicationHandler@3b75078b > May 23, 2006 12:58:03 PM org.mortbay.util.Container start > INFO: Started WebApplicationContext[/template,Template WebApp] > May 23, 2006 12:58:03 PM org.mortbay.jetty.servlet.WebApplicationContext > resolveWebApp INFO: Extract > jar:file:/usr/local/share/java/jetty/webapps/javadoc.war!/ to > /var/tmp/Jetty_10_0_1_1_8080__javadoc/webapp May 23, 2006 12:58:04 PM > org.mortbay.util.Container start > INFO: Started org.mortbay.jetty.servlet.WebApplicationHandler@3479e304 > May 23, 2006 12:58:04 PM org.mortbay.util.Container start > INFO: Started WebApplicationContext[/javadoc,/javadoc] > May 23, 2006 12:58:04 PM org.mortbay.util.ThreadedServer start > WARNING: Failed to start: P1@10.0.1.1:8080 > May 23, 2006 12:58:04 PM org.mortbay.jetty.Server main > WARNING: EXCEPTION > org.mortbay.util.MultiException[java.net.BindException: Can't assign > requested address] at > org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at > org.mortbay.util.Container.start(Container.java:72) > at org.mortbay.jetty.Server.main(Server.java:460) > java.net.BindException: Can't assign requested address > 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.(ServerSocket.java:185) > at > org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:391) at > org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477) at > org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503) at > org.mortbay.http.SocketListener.start(SocketListener.java:204) at > org.mortbay.http.HttpServer.doStart(HttpServer.java:716) at > org.mortbay.util.Container.start(Container.java:72) > at org.mortbay.jetty.Server.main(Server.java:460) -- "If you do it the stupid way, you will have to do it again" - Gregory Chudnovsky