cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r506305 - in /incubator/cxf/trunk: ./ rt/ rt/frontend/js/ rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ rt/transports/http/src/main/java/org/apache/cxf/transport/http/ rt/transports/http/src/main/java/org/apache/cxf/transport/servle...
Date Mon, 12 Feb 2007 05:57:13 GMT
Author: ningjiang
Date: Sun Feb 11 21:57:12 2007
New Revision: 506305

URL: http://svn.apache.org/viewvc?view=rev&rev=506305
Log:
[CXF-342] Added the servlet transport support to cxf-rt-frontend-js, also added a systest
for it
  

Added:
    incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
  (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
  (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js
  (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
  (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml 
 (with props)
Modified:
    incubator/cxf/trunk/pom.xml
    incubator/cxf/trunk/rt/frontend/js/pom.xml
    incubator/cxf/trunk/rt/pom.xml
    incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
    incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
    incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml
    incubator/cxf/trunk/rt/transports/http2/pom.xml
    incubator/cxf/trunk/systests/pom.xml
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java

Modified: incubator/cxf/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/pom.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/pom.xml (original)
+++ incubator/cxf/trunk/pom.xml Sun Feb 11 21:57:12 2007
@@ -601,6 +601,11 @@
                 <version>${spring.version}</version>
             </dependency>
             <dependency>
+            	<groupId>org.springframework</groupId>
+            	<artifactId>spring-web</artifactId>
+            	<version>${spring.version}</version>
+             </dependency>
+            <dependency>
                 <groupId>commons-logging</groupId>
                 <artifactId>commons-logging</artifactId>
                 <version>1.1</version>

Modified: incubator/cxf/trunk/rt/frontend/js/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/js/pom.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/frontend/js/pom.xml (original)
+++ incubator/cxf/trunk/rt/frontend/js/pom.xml Sun Feb 11 21:57:12 2007
@@ -54,7 +54,11 @@
             <groupId>stax</groupId>
             <artifactId>stax-api</artifactId>
         </dependency>
-
+	<dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <dependency>
             <groupId>javax.xml.ws</groupId>
             <artifactId>jaxws-api</artifactId>

Added: incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java?view=auto&rev=506305
==============================================================================
--- incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
(added)
+++ incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
Sun Feb 11 21:57:12 2007
@@ -0,0 +1,82 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.js.rhino;
+
+import java.io.File;
+import java.net.URLDecoder;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+
+public class JsServiceFactoryBean {
+    private ProviderFactory providerFactory;
+    private String address;
+    private boolean isBaseAddr;
+    private String js;
+    private Bus bus;
+
+    public JsServiceFactoryBean() {
+        providerFactory = new ProviderFactory(); 
+    }
+    
+    public Bus getBus() {
+        if (bus == null) {
+            bus = BusFactory.getDefaultBus();
+        }
+        return bus;
+    }
+
+    public void setBus(Bus bus) {
+        this.bus = bus;
+    }
+    
+    public void setAddress(String addr) {
+        address = addr;
+    }
+    
+    public String getAddress() {
+        return address;
+    }
+    
+    public void setIsBaseAddr(boolean isBase) {
+        isBaseAddr = isBase;
+    }
+    
+    public boolean getIsBaseAddr() {
+        return isBaseAddr;
+    }
+    
+    public void setJs(String file) {
+        js = file;
+    }
+    
+    public String getJs() {
+        return js;
+    }
+    
+    public void create() throws Exception {
+        BusFactory.setDefaultBus(bus);
+        String jsFileString = getClass().getResource(js).getFile();
+        jsFileString = URLDecoder.decode(jsFileString, "UTF-8");
+        File file = new File(jsFileString);
+        providerFactory.createAndPublish(file, address, isBaseAddr);
+    }
+
+}

Propchange: incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/JsServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/pom.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/pom.xml (original)
+++ incubator/cxf/trunk/rt/pom.xml Sun Feb 11 21:57:12 2007
@@ -45,6 +45,7 @@
         <module>frontend/jaxws</module>
         <module>frontend/js</module>
         <module>transports/http</module>
+        <module>transports/http2</module>
         <module>transports/jms</module>
         <module>ws/policy</module>
         <module>ws/addr</module>

Modified: incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
(original)
+++ incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Sun Feb 11 21:57:12 2007
@@ -99,12 +99,8 @@
             for (String ns : activationNamespaces) {
                 dfm.registerDestinationFactory(ns, this);
             }
-        }
-        
-        /*QueryHandlerRegistry qhr = bus.getExtension(QueryHandlerRegistry.class);
-        if (null != qhr) {
-            qhr.registerHandler(new WSDLQueryHandler());
-        }*/
+        }       
+       
     }
 
     public Conduit getConduit(EndpointInfo endpointInfo) throws IOException {

Modified: incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
(original)
+++ incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletTransportFactory.java
Sun Feb 11 21:57:12 2007
@@ -26,7 +26,6 @@
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
-import javax.annotation.PostConstruct;
 import javax.annotation.Resource;
 
 import org.apache.cxf.Bus;
@@ -34,8 +33,6 @@
 import org.apache.cxf.transport.AbstractTransportFactory;
 import org.apache.cxf.transport.Destination;
 import org.apache.cxf.transport.DestinationFactory;
-import org.apache.cxf.transport.http.WSDLQueryHandler;
-import org.apache.cxf.transports.http.QueryHandlerRegistry;
 
 public class ServletTransportFactory extends AbstractTransportFactory
     implements DestinationFactory {
@@ -60,18 +57,6 @@
         this.bus = bus;
     }
     
-    @PostConstruct
-    void registerWithQueryHandler() {
-        if (null == bus) {
-            return;
-        }
-                
-        QueryHandlerRegistry qhr = bus.getExtension(QueryHandlerRegistry.class);
-        if (null != qhr) {
-            qhr.registerHandler(new WSDLQueryHandler());
-        }
-    }
-
     public Destination getDestination(EndpointInfo endpointInfo)
         throws IOException {
         ServletDestination d = destinations.get(endpointInfo.getAddress());

Modified: incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml
(original)
+++ incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml
Sun Feb 11 21:57:12 2007
@@ -22,10 +22,7 @@
        xmlns:foo="http://cxf.apache.org/configuration/foo"
        xsi:schemaLocation="
 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
-    <bean id="org.apache.cxf.transports.http.QueryHandlerRegistry" class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl">
-        <property name="bus" ref="cxf"/>
-    </bean>
-    
+            
     <bean class="org.apache.cxf.transport.servlet.ServletTransportFactory">
         <property name="bus" ref="cxf"/>
         <property name="transportIds">
@@ -38,5 +35,14 @@
             </set>
         </property>
     </bean>
+    
+    <!-- bean id="org.apache.cxf.transports.http.QueryHandlerRegistry" class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl">
+        <property name="bus" ref="cxf"/>
+        <property name="queryHandlerNames">
+        	<list>
+                <value>org.apache.cxf.transport.http.WSDLQueryHandler</value>
               
+            </list>    
+        </property>
+    </bean-->
      
 </beans>

Modified: incubator/cxf/trunk/rt/transports/http2/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http2/pom.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/rt/transports/http2/pom.xml (original)
+++ incubator/cxf/trunk/rt/transports/http2/pom.xml Sun Feb 11 21:57:12 2007
@@ -65,12 +65,12 @@
         <dependency>
             <groupId>org.mortbay.jetty</groupId>
             <artifactId>jetty</artifactId>
-            <version>6.1.0</version>
+            <version>6.1.1</version>
         </dependency>
         <dependency>
             <groupId>org.mortbay.jetty</groupId>
             <artifactId>jetty-sslengine</artifactId>
-            <version>6.1.0</version>
+            <version>6.1.1</version>
         </dependency>
         <dependency>
             <groupId>commons-logging</groupId>

Modified: incubator/cxf/trunk/systests/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/pom.xml?view=diff&rev=506305&r1=506304&r2=506305
==============================================================================
--- incubator/cxf/trunk/systests/pom.xml (original)
+++ incubator/cxf/trunk/systests/pom.xml Sun Feb 11 21:57:12 2007
@@ -182,7 +182,6 @@
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
             <scope>test</scope>
-            <version>${spring.version}</version>
         </dependency>
 
         <dependency>

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=506305&r1=506304&r2=506305
==============================================================================
--- 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
Sun Feb 11 21:57:12 2007
@@ -37,7 +37,7 @@
 
 public class CXFServletTest extends AbstractServletTest {
     
-    // Create the 
+    // Create the JaxWsService with the JaxWsServerFactoryBean
     protected void setupJaxwsService() {
         JaxWsServerFactoryBean svr = new JaxWsServerFactoryBean();
         URL resource = getClass().getResource("/wsdl/hello_world.wsdl");

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java?view=auto&rev=506305
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
(added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
Sun Feb 11 21:57:12 2007
@@ -0,0 +1,58 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.systest.servlet;
+
+import org.w3c.dom.Document;
+
+import com.meterware.httpunit.PostMethodWebRequest;
+import com.meterware.httpunit.WebRequest;
+import com.meterware.httpunit.WebResponse;
+
+import org.apache.cxf.helpers.DOMUtils;
+
+public class JsFrontEndServletTest extends AbstractServletTest {
+    
+    protected String getConfiguration() {
+        return "/org/apache/cxf/systest/servlet/web-js.xml";
+    }
+
+    public void testPostInvokeServices() throws Exception {
+                
+        WebRequest req = new PostMethodWebRequest("http://localhost/services/Greeter",
+                getClass().getResourceAsStream("GreeterMessage.xml"),
+                "text/xml; charset=UTF-8");
+        
+        WebResponse response = newClient().getResponse(req);
+
+        assertEquals("text/xml", response.getContentType());
+        //assertEquals("UTF-8", response.getCharacterSet());
+
+        Document doc = DOMUtils.readXml(response.getInputStream());
+        assertNotNull(doc);
+        
+        addNamespace("h", "http://apache.org/hello_world_soap_http/types");
+        
+        assertValid("/s:Envelope/s:Body", doc);
+        assertValid("//h:sayHiResponse", doc);
+        assertValid("//h:responseType", doc);
+        
+    }
+    
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/JsFrontEndServletTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js?view=auto&rev=506305
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js
(added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js
Sun Feb 11 21:57:12 2007
@@ -0,0 +1,50 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+var WebServiceProvider = {
+    'wsdlLocation': 'file:../testutils/target/classes/wsdl/hello_world.wsdl',
+    'serviceName': 'SOAPService',
+    'portName': 'SoapPort',
+    'targetNamespace': 'http://apache.org/hello_world_soap_http',
+    'ServiceMode': 'MESSAGE',
+};
+
+var SOAP_ENV = "http://schemas.xmlsoap.org/soap/envelope/";
+var ns4 = "http://apache.org/hello_world_soap_http/types";
+
+WebServiceProvider.invoke = function(req) {
+    var resp = req.getImplementation().createDocument(SOAP_ENV, "SOAP-ENV:Envelope", null);
+    var list = req.getElementsByTagNameNS(ns4, "greetMe");
+    var txt, responseNode;
+    if (list.length > 0) {
+        txt = resp.createTextNode("TestGreetMeResponse");
+        responseNode = 'ns4:greetMeResponse';
+    } else {
+        txt = resp.createTextNode("TestSayHiResponse");
+        responseNode = 'ns4:sayHiResponse';
+    }
+    var respType = resp.createElementNS(ns4, "ns4:responseType");
+    respType.insertBefore(txt, null);
+    var gm = resp.createElementNS(ns4, responseNode);
+    gm.insertBefore(respType, null);
+    var sb = resp.createElementNS(SOAP_ENV, "SOAP-ENV:Body");
+    sb.insertBefore(gm, null);
+    resp.getDocumentElement().insertBefore(sb, null);
+    return resp;
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/hello_world.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml?view=auto&rev=506305
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
(added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
Sun Feb 11 21:57:12 2007
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      
+      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>  
+  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+  
+  <bean id="greeterServerFactory"
+    class="org.apache.cxf.js.rhino.JsServiceFactoryBean" init-method="create">
+    <property name="js" value="/org/apache/cxf/systest/servlet/hello_world.js" />
+    <property name="isBaseAddr" value="false" />     
+    <property name="address" value="http://localhost/services/Greeter"/>
+    <property name="bus" ref="cxf"/>    
+  </bean>
+
+</beans>

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml?view=auto&rev=506305
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml Sun
Feb 11 21:57:12 2007
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+	Licensed to the Apache Software Foundation (ASF) under one
+	or more contributor license agreements. See the NOTICE file
+	distributed with this work for additional information
+	regarding copyright ownership. The ASF licenses this file
+	to you under the Apache License, Version 2.0 (the
+	"License"); you may not use this file except in compliance
+	with the License. You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing,
+	software distributed under the License is distributed on an
+	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	KIND, either express or implied. See the License for the
+	specific language governing permissions and limitations
+	under the License.
+-->
+
+<web-app>
+	<context-param>
+		<param-name>contextConfigLocation</param-name>
+		<param-value>
+			classpath:org/apache/cxf/systest/servlet/spring-js.xml
+		</param-value>
+	</context-param>
+
+	<listener>
+		<listener-class>
+			org.springframework.web.context.ContextLoaderListener
+		</listener-class>
+	</listener>
+	
+	<servlet>
+		<servlet-name>CXFServlet</servlet-name>
+		<display-name>CXF Servlet</display-name>
+		<servlet-class>
+			org.apache.cxf.transport.servlet.CXFServlet
+		</servlet-class>
+		<load-on-startup>1</load-on-startup>
+	</servlet>
+
+	<servlet-mapping>
+		<servlet-name>CXFServlet</servlet-name>
+		<url-pattern>/services/*</url-pattern>
+	</servlet-mapping>
+
+
+</web-app>
\ No newline at end of file

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message