Return-Path: Delivered-To: apmail-incubator-cxf-commits-archive@locus.apache.org Received: (qmail 83065 invoked from network); 27 Apr 2007 02:58:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Apr 2007 02:58:58 -0000 Received: (qmail 62065 invoked by uid 500); 27 Apr 2007 02:59:05 -0000 Delivered-To: apmail-incubator-cxf-commits-archive@incubator.apache.org Received: (qmail 62004 invoked by uid 500); 27 Apr 2007 02:59:05 -0000 Mailing-List: contact cxf-commits-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-commits@incubator.apache.org Received: (qmail 61995 invoked by uid 99); 27 Apr 2007 02:59:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 19:59:05 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 19:58:57 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id D6DB41A9838; Thu, 26 Apr 2007 19:58:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r532940 - /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java Date: Fri, 27 Apr 2007 02:58:37 -0000 To: cxf-commits@incubator.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070427025837.D6DB41A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ningjiang Date: Thu Apr 26 19:58:37 2007 New Revision: 532940 URL: http://svn.apache.org/viewvc?view=rev&rev=532940 Log: CXF-604 fixed the CXFServletTest java.net.SocketException Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java?view=diff&rev=532940&r1=532939&r2=532940 ============================================================================== --- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java (original) +++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java Thu Apr 26 19:58:37 2007 @@ -18,7 +18,6 @@ */ package org.apache.cxf.systest.servlet; -import java.net.URL; import org.w3c.dom.Document; @@ -32,9 +31,6 @@ import org.apache.cxf.Bus; import org.apache.cxf.BusException; import org.apache.cxf.helpers.DOMUtils; -import org.apache.cxf.jaxws.JaxWsServerFactoryBean; -import org.apache.cxf.service.invoker.BeanInvoker; -import org.apache.hello_world_soap_http.GreeterImpl; import org.junit.Test; @@ -44,26 +40,9 @@ protected Bus createBus() throws BusException { return null; } - - // Create the JaxWsService with the JaxWsServerFactoryBean - protected void setupJaxwsService() { - JaxWsServerFactoryBean svr = new JaxWsServerFactoryBean(); - URL resource = getClass().getResource("/wsdl/hello_world.wsdl"); - assertNotNull(resource); - svr.getServiceFactory().setWsdlURL(resource.toString()); - svr.setServiceClass(GreeterImpl.class); - svr.setAddress("http://localhost/services/Greeter"); - GreeterImpl greeter = new GreeterImpl(); - BeanInvoker invoker = new BeanInvoker(greeter); - svr.getServiceFactory().setInvoker(invoker); - - svr.create(); - - } @Test - public void testPostInvokeServices() throws Exception { - setupJaxwsService(); + public void testPostInvokeServices() throws Exception { //Thread.sleep(6000000); //newClient();