Return-Path: Delivered-To: apmail-incubator-general-archive@www.apache.org Received: (qmail 10724 invoked from network); 13 Feb 2007 19:45:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 19:45:53 -0000 Received: (qmail 41380 invoked by uid 500); 13 Feb 2007 19:45:59 -0000 Delivered-To: apmail-incubator-general-archive@incubator.apache.org Received: (qmail 41254 invoked by uid 500); 13 Feb 2007 19:45:59 -0000 Mailing-List: contact general-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@incubator.apache.org Delivered-To: mailing list general@incubator.apache.org Received: (qmail 41242 invoked by uid 99); 13 Feb 2007 19:45:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 11:45:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.210.96.236] (HELO byaroza.objectstyle.org) (207.210.96.236) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Feb 2007 11:45:46 -0800 Received: (qmail 7626 invoked from network); 13 Feb 2007 19:45:22 -0000 Received: from unknown (HELO ????????????0?G??IPv6:::1?) (127.0.0.1) by localhost with SMTP; 13 Feb 2007 19:45:22 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <1171395286.7479.29.camel@myepes-ubuntu> References: <1171395286.7479.29.camel@myepes-ubuntu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Andrus Adamchik Subject: Re: Problems creating a ftp server: java.net.BindException: Permission denied Date: Tue, 13 Feb 2007 14:45:22 -0500 To: general@incubator.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Miguel, This is a general incubator list that deals with internal procedures of various "incubating" Apache projects. Each one of those projects (including FtpServer), have their own mailing lists dedicated to the project specific technical issues. For FtpServer that would likely be ftpserver-dev@incubator.apache.org: http://incubator.apache.org/ftpserver/mail-lists.html Frankly, this is not your fault for mixing the lists. I am looking at the page above and indeed it seems to imply that general@incubator is a project list, which is not the case. Andrus On Feb 13, 2007, at 2:34 PM, Miguel Yepes Moyano wrote: > Hello. I'm newbie in the list, and I have subscribed on it because i > have got a problem: I have created a daemon program using Apache > Common > Daemons and launched with jsvc utility, and this one implements a > Apache > ftp server. When I launch it using the port 21 i've the following > problem: > > [...] > WARN FtpGenerator start - exception thrown > java.net.BindException: Permission denied > 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 java.net.ServerSocket.(ServerSocket.java:141) > at > org.apache.ftpserver.socketfactory.FtpSocketFactory.createServerSocket > (FtpSocketFactory.java:92) > at org.apache.ftpserver.FtpServer.start(FtpServer.java:59) > at > com.aplicatec.alarmserver.ftpgenerator.FtpGenerator.start > (FtpGenerator.java:137) > at > com.aplicatec.alarmserver.server.AlarmServer.start(AlarmServer.java: > 138) > 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:585) > at > org.apache.commons.daemon.support.DaemonLoader.start > (DaemonLoader.java:177) > java.lang.reflect.InvocationTargetException > 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:585) > at > org.apache.commons.daemon.support.DaemonLoader.start > (DaemonLoader.java:177) > Caused by: com.aplicatec.alarmserver.exception.AlarmServerException: > Exception thrown while starting > at > com.aplicatec.alarmserver.ftpgenerator.FtpGenerator.start > (FtpGenerator.java:142) > at > com.aplicatec.alarmserver.server.AlarmServer.start(AlarmServer.java: > 138) > ... 5 more > Caused by: java.net.BindException: Permission denied > 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 java.net.ServerSocket.(ServerSocket.java:141) > at > org.apache.ftpserver.socketfactory.FtpSocketFactory.createServerSocket > (FtpSocketFactory.java:92) > at org.apache.ftpserver.FtpServer.start(FtpServer.java:59) > at > com.aplicatec.alarmserver.ftpgenerator.FtpGenerator.start > (FtpGenerator.java:137) > ... 6 more > 13/02/2007 19:27:57 26344 jsvc.exec error: Cannot start daemon > 13/02/2007 19:27:57 26343 jsvc.exec error: Service exit with a return > value of 5 > > > > This problem does not always appear, it occurs only when daemon is > launching using port 21 on Linux (both Ubuntu and Gentoo > distribution). > Using ports above 1024, there's no problem. Finally, it runs correctly > on Ms Windows. > > I strongly need to launch the daemon with the port configuration > option > set to the value 21 (of course, when I launch the daemon I'm a root > user). Can anybody help me? > Thanks. > --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org For additional commands, e-mail: general-help@incubator.apache.org