CXF异常 No DestinationFactory was found for the namespace http://schemas.xmlsoap.org
2012-05-12 21:41
741 查看
最近学习webservice一运行就遇到了这个异常,郁闷。网上发现关于这个异常也是众说纷纭
经过一番折腾后终于可以了,原因一般有俩个:
1.是配置文件中缺少
2.干脆就是jar包的问题
下载最新的CXF 将\lib下的所有jar导入,再运行,奇迹出现了
Caused by: org.apache.cxf.service.factory.ServiceConstructionException at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:134) at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:160) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244) ... 16 more Caused by: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/http. at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:115) at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:86) at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69) at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:115)
经过一番折腾后终于可以了,原因一般有俩个:
1.是配置文件中缺少
<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" />
2.干脆就是jar包的问题
下载最新的CXF 将\lib下的所有jar导入,再运行,奇迹出现了
相关文章推荐
- "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP
- "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
- org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the
- log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory). WARN Please initialize the log4j
- org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the
- Could not find conduit initiator for address:xxxxxxxxx and transport: http://schemas.xmlsoap.org/soap/http
- cxf调用WebService时出现No operation was found with the name {http://impl.server.test.com/}helloWorld
- WebService发布与调用问题:expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {http://schemas.xmlsoap.org/wsdl/}def
- org.apache.cxf.BusException: No binding factory for namespace 问题的解决
- WebService发布与调用问题:expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {http://schemas.xmlsoap.org/wsdl/}definitions
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
- 异常org.apache.ibatis.executor.ExecutorException: There was no TypeHandler found for parameter..
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
- CXF异常:No operation was found with the name
- 求助:Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
- No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. Form
- Oracle OEM 配置报错: No value was set for the parameter DBCONTROL_HTTP_PORT 解决方法
- {http://schemas.xmlsoap.org/soap/envelope/}Server.userException 错误解决
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/sc