My error because 23:46:38,548 WARN [Main web context loader thread][jaxws.support.JaxWsImplementorInfo:282] The javax.jws.WebService annotation was already loaded by another classloader. Please check if there are multiple versions of the web service annotation jar in your classpath.
I think it must be ERROR not WARN, because as result WebService not working correctly Thank for help. 12 ноября 2011 г. 1:33 пользователь Максим Мартынов <[email protected]>написал: > Web service configuration > > <?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" > default-lazy-init="false"> > > <!-- Load the needed resources that are present in the cxf* jars --> > <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"/> > > <import > resource="classpath:/com/otr/sufd/configuration/configurationManager.xml"/> > > <bean id="documentWebService" > class="com.otr.sufd.ws.documentws.DocumentServiceTypeImpl"> > <property name="documentEditService" ref="documentEditService"/> > <property name="transportTransformationService" > ref="transportTransformationService"/> > </bean> > > <jaxws:endpoint id="documentWebServiceEndpoint" > implementor="#documentWebService" > address="${sufd.documentWebService.url}"> > <jaxws:features> > <bean class="org.apache.cxf.feature.LoggingFeature"/> > </jaxws:features> > > <jaxws:dataBinding> > <bean class="org.apache.cxf.databinding.source.SourceDataBinding"/> > </jaxws:dataBinding> > > <jaxws:properties> > <entry key="schema-validation-enabled" value="true"/> > </jaxws:properties> > </jaxws:endpoint> > </beans> > > > Sorry because of the large log. > > com.otr.sufd.ws.documentws.DocumentServiceTypeImpl it is a class that > implement Interface generated by CXF 2.5.0 with util wsdl2java with params > -db domsource > > /** > * This class was generated by Apache CXF 2.5.0 > * 2011-11-11T19:23:28.923+03:00 > * Generated source version: 2.5.0 > * > */ > @WebService(targetNamespace = "http://www.otr.com/sufd/ws/documentWS", > name = "DocumentServiceType") > @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) > @DataBinding(org.apache.cxf.databinding.source.SourceDataBinding.class) > public interface DocumentServiceType { > > @WebResult(name = "deleteDocumentResponse", targetNamespace = " > http://www.otr.com/sufd/ws/documentWS", partName = "parameters") > @WebMethod(operationName = "DeleteDocument") > public javax.xml.transform.dom.DOMSource deleteDocument( > @WebParam(partName = "parameters", name = "deleteDocument", > targetNamespace = "http://www.otr.com/sufd/ws/documentWS") > javax.xml.transform.dom.DOMSource parameters > ); > } > > > 23:46:36,650 INFO [Main web context loader thread][INIT:32] Запуск > подсистемы [CXFWebServiceInitializer] > 23:46:37,077 INFO [Main web context loader > thread][context.support.ClassPathXmlApplicationContext:456] Refreshing > org.springframework.context.support.ClassPathXmlApplicationContext@158b1c4: > startup date [Fri Nov 11 23:46:37 MSK 2011]; parent: Root > WebApplicationContext > 23:46:37,079 INFO [Main web context loader > thread][factory.xml.XmlBeanDefinitionReader:315] Loading XML bean > definitions from class path resource > [com/otr/sufd/ws/documentws/documentWSContext.xml] > 23:46:37,771 INFO [Main web context loader > thread][factory.xml.XmlBeanDefinitionReader:315] Loading XML bean > definitions from class path resource [META-INF/cxf/cxf.xml] > 23:46:37,785 INFO [Main web context loader > thread][factory.xml.XmlBeanDefinitionReader:315] Loading XML bean > definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] > 23:46:37,800 INFO [Main web context loader > thread][factory.xml.XmlBeanDefinitionReader:315] Loading XML bean > definitions from class path resource [META-INF/cxf/cxf-servlet.xml] > 23:46:37,827 INFO [Main web context loader > thread][factory.xml.XmlBeanDefinitionReader:315] Loading XML bean > definitions from class path resource > [com/otr/sufd/configuration/configurationManager.xml] > 23:46:38,085 DEBUG [Main web context loader > thread][common.logging.LogUtils:106] Using > org.apache.cxf.common.logging.Log4jLogger for logging. > 23:46:38,115 DEBUG [Main web context loader > thread][configuration.spring.AbstractBeanDefinitionParser:223] Adding > org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.wireBus > attribute CONSTRUCTOR to bean > org.springframework.beans.factory.support.BeanDefinitionBuilder@76a3dc > 23:46:38,140 DEBUG [Main web context loader > thread][configuration.impl.ConfigurationManagerImpl:49] Конструирование > менеджера конфигураций из [sufd-configurations.xml] > 23:46:38,283 INFO [Main web context loader > thread][factory.support.DefaultListableBeanFactory:555] Pre-instantiating > singletons in > org.springframework.beans.factory.support.DefaultListableBeanFactory@296cf1: > defining beans > [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,configurationManager,configurationProperties,documentWebService,documentWebServiceEndpoint]; > parent: > org.springframework.beans.factory.support.DefaultListableBeanFactory@f23491 > 23:46:38,543 DEBUG [Main web context loader > thread][cxf.resource.DefaultResourceManager:103] resolving resource <cxf> > type <interface org.apache.cxf.Bus> > 23:46:38,548 WARN [Main web context loader > thread][jaxws.support.JaxWsImplementorInfo:282] The javax.jws.WebService > annotation was already loaded by another classloader. Please check if there > are multiple versions of the web service annotation jar in your classpath. > 23:46:38,562 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:160] Could not find a > definition for bean with id { > http://documentws.ws.sufd.otr.com/}DocumentServiceTypeImplPort.jaxws-endpoint- > no injection will be performed. > 23:46:38,564 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:160] Could not find a > definition for bean with id org.apache.cxf.jaxws.JaxWsServerFactoryBean - > no injection will be performed. > 23:46:38,577 WARN [Main web context loader > thread][jaxws.support.JaxWsImplementorInfo:282] The javax.jws.WebService > annotation was already loaded by another classloader. Please check if there > are multiple versions of the web service annotation jar in your classpath. > 23:46:38,599 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.service.factory.FactoryBeanListenerManager. > 23:46:38,603 INFO [Main web context loader > thread][service.factory.ReflectionServiceFactoryBean:411] Creating Service { > http://documentws.ws.sufd.otr.com/}DocumentServiceTypeImplService from > class com.otr.sufd.ws.documentws.DocumentServiceTypeImpl > 23:46:38,745 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class org.apache.cxf.binding.soap.SoapBindingFactory. > 23:46:38,828 DEBUG [Main web context loader > thread][cxf.wsdl11.WSDLManagerImpl:267] Registering extension: > org.apache.cxf.bindings.xformat.XMLFormatBinding for parent: > javax.wsdl.Binding > 23:46:38,837 DEBUG [Main web context loader > thread][cxf.wsdl11.WSDLManagerImpl:267] Registering extension: > org.apache.cxf.bindings.xformat.XMLBindingMessageFormat for parent: > javax.wsdl.BindingOutput > 23:46:38,838 DEBUG [Main web context loader > thread][cxf.wsdl11.WSDLManagerImpl:267] Registering extension: > org.apache.cxf.bindings.xformat.XMLBindingMessageFormat for parent: > javax.wsdl.BindingInput > 23:46:38,838 DEBUG [Main web context loader > thread][cxf.wsdl11.WSDLManagerImpl:267] Registering extension: > org.apache.cxf.ws.addressing.wsdl.UsingAddressing for parent: > javax.wsdl.Binding > 23:46:38,850 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.transport.http.HTTPWSDLExtensionLoader. > 23:46:38,852 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader. > 23:46:38,853 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.ws.addressing.AddressingWSDLExtensionLoader. > 23:46:38,855 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class org.apache.cxf.wsdl11.WSDLManagerImpl. > 23:46:38,880 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class org.apache.cxf.binding.soap.SoapTransportFactory. > 23:46:38,964 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.transport.http.HTTPTransportFactory. > 23:46:38,970 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.transport.http_jetty.JettyDestinationFactory. > 23:46:38,977 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.buslifecycle.CXFBusLifeCycleManager. > 23:46:38,981 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory. > 23:46:38,982 DEBUG [Main web context loader > thread][cxf.resource.DefaultResourceManager:103] resolving resource <cxf> > type <interface org.apache.cxf.Bus> > 23:46:38,995 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:160] Could not find a > definition for bean with id { > http://documentws.ws.sufd.otr.com/}DocumentServiceTypeImplPort.http-destination- > no injection will be performed. > 23:46:38,996 DEBUG [Main web context loader > thread][transport.http_jetty.JettyHTTPServerEngineFactory:250] Creating > Jetty HTTP Server Engine for port 9000. > 23:46:39,005 DEBUG [Main web context loader > thread][transport.http_jetty.JettyHTTPServerEngine:627] Configured port > 9000 for "http". > 23:46:39,006 INFO [Main web context loader > thread][cxf.endpoint.ServerImpl:94] Setting the server's publish address to > be http://10.20.1.22:9000/documentWebService > 23:46:39,007 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class org.apache.cxf.endpoint.ServerRegistryImpl. > 23:46:39,009 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:371] Could not determine bean > name for instance of class > org.apache.cxf.endpoint.ServerLifeCycleManagerImpl. > 23:46:39,023 DEBUG [Main web context loader > thread][jaxws.handler.AnnotationHandlerChainBuilder:74] building handler > chain > 23:46:39,024 DEBUG [Main web context loader > thread][jaxws.handler.AnnotationHandlerChainBuilder:296] Checking for > HandlerChain annotation on > com.otr.sufd.ws.documentws.DocumentServiceTypeImpl > 23:46:39,024 DEBUG [Main web context loader > thread][jaxws.handler.AnnotationHandlerChainBuilder:323] Checking for > HandlerChain annotation on com.otr.sufd.ws.documentws.DocumentServiceType > 23:46:39,024 DEBUG [Main web context loader > thread][jaxws.handler.AnnotationHandlerChainBuilder:296] Checking for > HandlerChain annotation on java.lang.Object > 23:46:39,025 DEBUG [Main web context loader > thread][jaxws.handler.AnnotationHandlerChainBuilder:79] no HandlerChain > annotation on class com.otr.sufd.ws.documentws.DocumentServiceTypeImpl > 23:46:39,026 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:160] Could not find a > definition for bean with id { > http://documentws.ws.sufd.otr.com/}DocumentServiceTypeImplService - no > injection will be performed. > 23:46:39,026 DEBUG [Main web context loader > thread][configuration.spring.ConfigurerImpl:160] Could not find a > definition for bean with id { > http://documentws.ws.sufd.otr.com/}DocumentServiceTypeImplPort.endpoint - > no injection will be performed. > 23:46:39,027 DEBUG [Main web context loader > thread][cxf.endpoint.ServerImpl:126] Server is starting. > 23:46:39,028 DEBUG [Main web context loader > thread][transport.http_jetty.JettyHTTPDestination:45] registering incoming > observer: org.apache.cxf.transport.ChainInitiationObserver@1ac4cd0 > 23:46:39,029 DEBUG [Main web context loader > thread][transport.http_jetty.JettyHTTPDestination:159] Activating receipt > of incoming messages > 23:46:39,162 DEBUG [Main web context loader > thread][cxf.endpoint.ServerImpl:136] register the server to serverRegistry > > > 2011/11/11 Daniel Kulp <[email protected]> > >> On Friday, November 11, 2011 8:08:44 AM pe4enko wrote: >> > Hi all. >> > I try to create WSDL first webService with use spring. >> > It startup without any ERROR. But it not work. >> > Then i try to get wsdl from service i got only >> > >> > <wsdl:definitions xmlns:ns1="http://schemas.xmlsoap.org/soap/http" >> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >> > xmlns:tns="http://documentws.ws.sufd.otr.com/" >> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> > name="DocumentServiceTypeImplService" >> > targetNamespace="http://documentws.ws.sufd.otr.com/"> >> > <wsdl:portType name="DocumentServiceTypeImpl"></wsdl:portType> >> > <wsdl:binding name="DocumentServiceTypeImplServiceSoapBinding" >> > type="tns:DocumentServiceTypeImpl"> >> > <soap:binding style="document" >> > transport="http://schemas.xmlsoap.org/soap/http"/> >> > </wsdl:binding> >> > <wsdl:service name="DocumentServiceTypeImplService"> >> > <wsdl:port binding="tns:DocumentServiceTypeImplServiceSoapBinding" >> > name="DocumentServiceTypeImplPort"> >> > <soap:address location="http://10.20.1.22:9000/documentWebService"/> >> > </wsdl:port> >> > </wsdl:service> >> > </wsdl:definitions> >> > >> > but it has'n any opertaion. >> > Can any body say what i must to check? >> >> We'd likely need to see the configuration of how the service is started. >> Also, check the logs for the server . There should be a INFO level line >> in >> there saying something like Creating {...}DocumentServiceTypeImplService >> from >> WSDL or from class or similar. Make sure that it's from wsdl and >> points >> to the right wsdl. >> >> >> >> >> -- >> Daniel Kulp >> [email protected] >> http://dankulp.com/blog >> Talend - http://www.talend.com >> > >
