问题描述:
在一个项目中创建了两个WS服务的客户端,使用JAX-WS格式生成,但这两个WS服务的的包名有一样的,如都叫com.xxx.xxx.yy等,这些包里的类是通过相同的一份SCHEMA使用JAXB绑定生成的,
这样导致生成的客户端代码的项目在部署时会出现如下错误:
严重: WSSERVLET11: failed to parse runtime descriptor: Server Runtime Error: More than one schema for the target namespace http://drd.zj.com/schema/ServerLevelInvokeInfoSchema
com.sun.xml.ws.server.ServerRtException: Server Runtime Error: More than one schema for the target namespace http://drd.zj.com/schema/ServerLevelInvokeInfoSchema
at com.sun.xml.ws.server.WSDLGenResolver.getSchemaOutput(WSDLGenResolver.java:171)
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.createOutputFile(WSDLGenerator.java:1057)
.......
使用tomcat 6.0服务器,
开发工具netbeans 6.7.1这问题曾经解决过,就是删除以前的WS客户端代码,重新建立,有时可以,但有时又不行,感觉这样不是解决这问题的根本原因,不知有知道原因的没?有的请教请教,在网上,书上搜索了好久也没个准确的解决之道.
在一个项目中创建了两个WS服务的客户端,使用JAX-WS格式生成,但这两个WS服务的的包名有一样的,如都叫com.xxx.xxx.yy等,这些包里的类是通过相同的一份SCHEMA使用JAXB绑定生成的,
这样导致生成的客户端代码的项目在部署时会出现如下错误:
严重: WSSERVLET11: failed to parse runtime descriptor: Server Runtime Error: More than one schema for the target namespace http://drd.zj.com/schema/ServerLevelInvokeInfoSchema
com.sun.xml.ws.server.ServerRtException: Server Runtime Error: More than one schema for the target namespace http://drd.zj.com/schema/ServerLevelInvokeInfoSchema
at com.sun.xml.ws.server.WSDLGenResolver.getSchemaOutput(WSDLGenResolver.java:171)
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.createOutputFile(WSDLGenerator.java:1057)
.......
使用tomcat 6.0服务器,
开发工具netbeans 6.7.1这问题曾经解决过,就是删除以前的WS客户端代码,重新建立,有时可以,但有时又不行,感觉这样不是解决这问题的根本原因,不知有知道原因的没?有的请教请教,在网上,书上搜索了好久也没个准确的解决之道.
解决方案 »
- 如何把一串字符中↑X代换成<SUP>X</SUP>,↓X换成<SUB>X</SUB>
- ssh分页技术
- myeclipse自己中每次点选项就能将struts的jar包加到项目中,我想知道这个包原来是存在哪儿的?hibernate和spring的jar包呢?
- 如何在jsp中调用后台程序?
- 如何实现使用Socket的一个小编程??
- 高手进 将数据从一个服务器另外一台服务器
- Spring中的自动代理很方便,那么什么时候用自动代理,什么时候用Java或者CGLIB代理呢
- 如何用JSP+SERVLET+JAVABEAN实现数据的添加和修改
- 有关velocity 的问题希望高手能帮忙解决。
- 急!!!安装weblogic出错!!!
- 判断路径是否合法的 正则表达式
- 关于return的问题
做过很多webservice项目, 认为你这个问题无解的。