Thx!

Jeff Yu wrote:
> 
> Hi,
> 
> You need to add the "<import 
> resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />" in your 
> openspcoop_beans.xml  to register the soap binding.
> 
> Thanks
> Jeff
> 
> Cencio wrote:
>> The for ur replys..
>>
>> I'm still strying to get it works:
>>
>> This is the service src:
>>
>>
>> --------------------------------------------------------
>> package org.openspcoop.pdd.services;
>>
>> import javax.xml.soap.SOAPMessage;
>> import javax.xml.ws.Provider;
>> import javax.xml.ws.ServiceMode;
>> import javax.xml.ws.WebServiceProvider;
>> import javax.xml.ws.Service.Mode;
>>
>> @ServiceMode(value=Mode.MESSAGE)
>> @WebServiceProvider
>>
>> public class RicezioneContenutiApplicativiWS implements
>> Provider<SOAPMessage>{
>> public SOAPMessage invoke(SOAPMessage request){
>>                   return request;
>>           }
>> }
>> ----------------------------------------------
>>
>>
>>
>> this is the web.xml
>> ------------------------------------------------
>> <?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";>
>> <web-app>
>>         <context-param>
>>                 <param-name>contextConfigLocation</param-name>
>>                 <param-value>WEB-INF/openspcoop_beans.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>/*</url-pattern>
>>         </servlet-mapping>
>> </web-app>
>> --------------------------------------------------------
>>
>> This is openspcoop_beans.xml
>> -------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://www.springframework.org/schema/beans";
>>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>         xmlns:jaxws="http://cxf.apache.org/jaxws";
>>         xsi:schemaLocation="
>>         http://www.springframework.org/schema/beans
>>         http://www.springframework.org/schema/beans/spring-beans.xsd
>>         http://cxf.apache.org/jaxws
>>         http://cxf.apache.org/schemas/jaxws.xsd";>
>>
>>   <import resource="classpath:META-INF/cxf/cxf.xml"/>
>>   <import
>> resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
>>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
>>
>>   <jaxws:endpoint id="PD"
>>                   
>> implementor="org.openspcoop.pdd.services.RicezioneContenutiApplicativiWS"
>>                    address="/PD" />
>>
>> </beans>
>>
>> ----------------------------------------------------
>>
>> This is the error i get:
>>
>> -----------------------------------------------------
>>
>> 10:34:31,578 INFO  [TomcatDeployer] deploy, ctxPath=/CFX,
>> warUrl=.../deploy/CFX.war/
>> 10:34:32,043 INFO  [[/CFX]] Initializing Spring root
>> WebApplicationContext
>> 10:34:32,044 INFO  [ContextLoader] Root WebApplicationContext:
>> initialization started
>> 10:34:32,139 INFO  [XmlWebApplicationContext] Refreshing
>> [EMAIL PROTECTED]:
>> display name [Root WebApplicationContext]; startup date [Mon Oct 15
>> 10:34:32
>> CEST 2007]; root of context hierarchy
>> 10:34:32,307 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions
>> from ServletContext resource [/WEB-INF/openspcoop_beans.xml]
>> 10:34:33,381 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions
>> from class path resource [META-INF/cxf/cxf.xml]
>> 10:34:33,463 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions
>> from class path resource [META-INF/cxf/cxf-extension-http-binding.xml]
>> 10:34:33,514 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions
>> from class path resource [META-INF/cxf/cxf-servlet.xml]
>> 10:34:33,575 INFO  [XmlWebApplicationContext] Bean factory for
>> application
>> context
>> [EMAIL PROTECTED]:
>> [EMAIL PROTECTED]
>> 10:34:33,762 INFO  [XmlWebApplicationContext] Bean
>> 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for
>> getting processed by all BeanPostProcessors (for example: not eligible
>> for
>> auto-proxying)
>> 10:34:33,767 INFO  [XmlWebApplicationContext] Bean
>> 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for
>> getting processed by all BeanPostProcessors (for example: not eligible
>> for
>> auto-proxying)
>> 10:34:33,815 INFO  [DefaultListableBeanFactory] Pre-instantiating
>> singletons
>> in
>> [EMAIL PROTECTED]:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,PD];
>> root of factory hierarchy
>> 10:34:34,475 ERROR [STDERR] 15-ott-2007 10.34.34
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromClass
>> INFO: Creating Service
>> {http://services.pdd.openspcoop.org/}RicezioneContenutiApplicativiWSService
>> from class org.openspcoop.pdd.services.RicezioneContenutiApplicativiWS
>> 10:34:34,571 INFO  [DefaultListableBeanFactory] Destroying singletons in
>> [EMAIL PROTECTED]:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,PD];
>> root of factory hierarchy
>> 10:34:34,595 ERROR [ContextLoader] Context initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'PD': Invocation of init method failed; nested exception is
>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>> resolve a binding for http://schemas.xmlsoap.org/soap/
>> Caused by: 
>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>> resolve a binding for http://schemas.xmlsoap.org/soap/
>>         at
>> org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:302)
>>         at
>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:137)
>> .....
>> .....
>> Caused by: org.apache.cxf.BusException: No binding factory for namespace
>> http://schemas.xmlsoap.org/soap/ registered.
>>         at
>> org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:78)
>>         at
>> org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:297)
>>         ... 115 more
>>
>>
>>   
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Message-level-service-tf4607880.html#a13209875
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to