Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 10960 invoked from network); 23 Nov 2006 08:06:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2006 08:06:25 -0000 Received: (qmail 36458 invoked by uid 500); 23 Nov 2006 08:06:35 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 36447 invoked by uid 500); 23 Nov 2006 08:06:35 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 36438 invoked by uid 99); 23 Nov 2006 08:06:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 00:06:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 00:06:24 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A42FE7142D1 for ; Thu, 23 Nov 2006 00:06:04 -0800 (PST) Message-ID: <1136429.1164269164670.JavaMail.jira@brutus> Date: Thu, 23 Nov 2006 00:06:04 -0800 (PST) From: "maomaode (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Closed: (CXF-253) Server can not start when the port number is missing In-Reply-To: <22451932.1164008522116.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/CXF-253?page=all ] maomaode closed CXF-253. ------------------------ > Server can not start when the port number is missing > ----------------------------------------------------- > > Key: CXF-253 > URL: http://issues.apache.org/jira/browse/CXF-253 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.0-M1 > Reporter: maomaode > Fix For: 2.0-RC > > > If the port number is missing then the server will give us the following stack trace. > I think by defaut the RT should be able to start server at 80, instead of the fail > WARNING: Failed to start: SocketListener0@0.0.0.0:-1 > org.mortbay.util.MultiException[java.lang.IllegalArgumentException: Port value out of range: -1] > at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) > at org.mortbay.util.Container.start(Container.java:72) > at org.apache.cxf.transport.http.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:137) > at org.apache.cxf.transport.http.JettyHTTPDestination.setMessageObserver(JettyHTTPDestination.java:121) > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:62) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:236) > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:156) > at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:67) > at javax.xml.ws.Endpoint.publish(Endpoint.java:156) > at com.cxf.Hello12Server.(Hello12Server.java:37) > at com.cxf.Hello12Server.main(Hello12Server.java:41) > java.lang.IllegalArgumentException: Port value out of range: -1 > at java.net.ServerSocket.(ServerSocket.java:180) > 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.apache.cxf.transport.http.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:137) > at org.apache.cxf.transport.http.JettyHTTPDestination.setMessageObserver(JettyHTTPDestination.java:121) > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:62) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:236) > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:156) > at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:67) > at javax.xml.ws.Endpoint.publish(Endpoint.java:156) > at com.cxf.Hello12Server.(Hello12Server.java:37) > at com.cxf.Hello12Server.main(Hello12Server.java:41) > java.lang.IllegalArgumentException: Port value out of range: -1 > at java.net.ServerSocket.(ServerSocket.java:180) > 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.apache.cxf.transport.http.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:137) > at org.apache.cxf.transport.http.JettyHTTPDestination.setMessageObserver(JettyHTTPDestination.java:121) > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:62) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:236) > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:156) > at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:67) > at javax.xml.ws.Endpoint.publish(Endpoint.java:156) > at com.cxf.Hello12Server.(Hello12Server.java:37) > at com.cxf.Hello12Server.main(Hello12Server.java:41) > Nov 20, 2006 3:09:37 PM org.apache.cxf.transport.http.JettyHTTPDestination setMessageObserver > WARNING: URL creation failed: > java.lang.NullPointerException > at org.mortbay.http.HttpServer.getContext(HttpServer.java:463) > at org.mortbay.http.HttpServer.getContext(HttpServer.java:486) > at org.apache.cxf.transport.http.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:153) > at org.apache.cxf.transport.http.JettyHTTPDestination.setMessageObserver(JettyHTTPDestination.java:121) > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:62) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:236) > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:156) > at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:67) > at javax.xml.ws.Endpoint.publish(Endpoint.java:156) > at com.cxf.Hello12Server.(Hello12Server.java:37) > at com.cxf.Hello12Server.main(Hello12Server.java:41) > Server ready... > Server exitting -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira