cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem2 <ning.ji...@iona.com>
Subject Re: How to export non-annotated service in spring
Date Tue, 20 Nov 2007 21:22:19 GMT

You should use CXFServlet to handler the http request and not the spring
DispatcherServlet.
Since CXFServlet will replace all the http related transport to the servlet
transport, you endpoint will not try to start a jetty engine for http
transport listening.

You can find the CXFServlet's web.xml here.
[1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/web-spring.xml
[2]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/spring.xml

Willem.


ojs wrote:
> 
> 
> Willem2 wrote:
>> Can you show me your web.xml ?
>> There must be something wrong with your web.xml.
> 
> Sure, but I don't know what should be wrong with it. It starts my
> application and all requests are handled by springs DispatcherServlet (as
> wanted). BTW: My application is deployed in tomcat 6.0.14.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> metadata-complete="true" version="2.5">
> 
>     <context-param>
>         <param-name>contextConfigLocation</param-name>
>         <param-value>
>             /WEB-INF/classes/config/spring/applicationContext.xml
>         </param-value>
>     </context-param>
> 
>     <listener>
>        
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>     </listener>
> 
>     <servlet>
>         <servlet-name>backend</servlet-name>
>        
> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>backend</servlet-name>
>         <url-pattern>/*</url-pattern>
>     </servlet-mapping>
> 
> </web-app>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-export-non-annotated-service-in-spring-tf4838545.html#a13866136
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message