prefix wsdp is not bound to a namespace手把手解决

    首先这个问题是因为用了rs-webservice,maven里面引用了cxf3.1.*的包,在服务器运行一会后就会报这个错,但是不影响服务器运行。

    具体的原因解释本文参考:http://blog.csdn.net/bigtree_3721/article/details/51160168

    解决方案很简单,是删除jar包

    cxf-services-ws-discovery-api-3.1.5.jar

    cxf-services-ws-discovery-service-3.1.5.jar

    cxf-services-wsn-api-3.1.5.jar

    cxf-services-wsn-core-3.1.5.jar

这几个jar包是不在pom文件里通过配置引入的,如果你直接去里面找。。。肯定是找不到的。这里要说到maven的引入机制,是当你引入一个包也会同时引入该包所依赖的包,所以这四个包是cxf3.1.*这个包的依赖。

这样一来问题就简单了,删除cxf包对他们的依赖就可以了。这里先贴出代码,直接复制就可以解决,有兴趣的可以往后看怎么操作的。

<!-- https://mvnrepository.com/artifact/org.apache.cxf/apache-cxf -->
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>apache-cxf</artifactId>
			<version>3.1.6</version>
			<type>pom</type>
			<exclusions>
				<exclusion>
					<groupId>org.apache.cxf.services.ws-discovery</groupId>
					<artifactId>cxf-services-ws-discovery-service</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.cxf.services.ws-discovery</groupId>
					<artifactId>cxf-services-ws-discovery-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.cxf.services.wsn</groupId>
					<artifactId>cxf-services-wsn-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.cxf.services.wsn</groupId>
					<artifactId>cxf-services-wsn-core</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

操作步骤其实很简单,打开pom.xml,eclipse里面可以通过Dependency Hierarchy查看所有包的依赖关系。如果不知道是哪个包依赖了这4个包,就可以通过这种方法查询到。(intellij也许会更简单吧,下次有机会用到再说了)

此时确定了要在cxf的引入路径里面添加exclusion,然后需要确定groupId和artifactId,还是在这个页面,点击需要排除的jar包,右键,点击open POM。就可以在新的pom页面查询到了。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值