`
Illy
  • 浏览: 122938 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

setProperty must be overridden by all subclasses of SOAPMessage 解决方法

 
阅读更多
setProperty must be overridden by all subclasses of SOAPMessage 解决办法
javax.xml.ws.WebServiceException:
java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152) at $Proxy355.getUserList(Unknown Source)
.......


开发环境
(1)JBoss:4.2.3
(2)jdk:1.6.25

异常描述:
webservice客户端用 jdk1.6的wsimport 生成的,然后将工程部署在Jboss里运行,结果上面的报错。 在网上搜索了下,说是“Jboss的soap实现的是老的javax.xml.soap.SoapMessage接口,这个接口的setProperty方法在老版本是不需要override的,但是到了Java6,由于Java6的jdk本身自带soap包,而自带的这个包的SoapMessage接口对setProperty方法又强制其实现类要override自身,否则则抛出上述异常”。

解决方法
(1)网上提供的解决方法(未解决问题):
将Jboss\lib下的几个包拷贝到Jboss\lib\endorsed下
   jboss-jaxrpc.jar
   jboss-jaxws.jar
   jboss-jaxws-ext.jar
   jboss-saaj.jar
   jaxb-api.jar
但没能解决问题,已然包上面的错。

(2)自己的解决方法(成功)
既然Jboss的webservice  包跟 jdk1.6的包不兼容,而且我本意是用要jdk1.6的webservice,所以索性将jboss里跟webservice的jar包去掉。 结果验证成功。(唉,搞了我好几天...)
去掉的包:
   jboss-jaxrpc.jar
   jboss-jaxws.jar
   jboss-jaxws-ext.jar
   jboss-saaj.jar
   jaxb-api.jar
分享到:
评论

相关推荐

    USB短信猫驱动

    The device can be installed with ResetPipeRequestRetryCount set to any value by changing FTDIBUS.INF as shown in the following fragment. [FtdiBus_AddService.AddReg] HKR,Parameters,"RetryResetCount",...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    (the last one can be overridden for the implementation of new alignment rules). - ADD: The property TFlexPanel.GridControl moved to the public section and is now available for writing (during the ...

    CSS优化工具CSSO.zip

    Minification of the font-weight property 结构优化: Merging blocks with identical selectors Merging blocks with identical properties Removal of overridden properties Removal of ...

    微软内部资料-SQL性能优化3

    To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...

    javafx-8u152-apidocs-api

    Note that the start method is abstract and must be overridden. The init and stop methods have concrete implementations that do nothing. Calling Platform.exit() is the preferred way to explicitly ...

    Java 英文习题及答案

    10. Which is a Java access modifier used to designate that a particular data field will not be inherited by a subclass? (a) final (b) protected (c) private (d) default 1. Consider the following ...

    eric5-5.3.1

    of the remote machine and set the entries of the a.m. configuration tab accordingly. Passive Debugging Passive debugging mode allows the startup of the debugger from outside of the IDE. The ...

    spring-dubbo-spring-boot.rar_java编程_spring_spring boot_threwwab_

    用于测试spring dubbo功能,提供对spring boot的支持

    php.ini-development

    special sections cannot be overridden by user-defined INI files or ; at runtime. Currently, [PATH=] and [HOST=] sections only work under ; CGI/FastCGI. ; http://php.net/ini.sections ; Directives are...

    elixir-navigation-tree:带有帮助程序的导航树表示形式,用于从中生成HTML-取决于用户角色-源码

    术语node :如下所示的配置结构: %NavigationTree.Node{ name: string, # the node's name, like "About Us" url: nil or string, # will be set on startup, but may be overridden controller: nil or string, # ...

    Making Use of Python (2002).pdf

    Create a Sequence to Store All the Names of the Students 42 Write the Code to Display the Names of the Students 42 Contents v Declare a Dictionary of Student Purchases with the Names of the ...

    C# Game Programming Cookbook for Unity 3D - 2014

    4.4 Set Gravity.........................................................66 4.5 Pretend Friction—Friction Simulation to Prevent Slipping Around........66 4.5.1 Script Breakdown...........................

    servlet2.4doc

    The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. doGet...

    NETCFSERUP

    <summary>A virtual property that may or may not be overridden for a derived API object.</summary> <value>A boolean flag. Returns true if not overridden.</value> - <summary>Provides the ability...

    Delphi7.1 Update

    ========================================================ISSUES ADDRESSED BY THIS UPDATEThis readme lists the maintenance for all editions of Delphi 7;not all of the features mentioned in this file ...

    U盘病毒专杀工具 Ver 2[1].0.2

    Three of these variables -- Data_Path, Users_Path, and Users_Txt -- must ; be in srcsafe.ini. Any other variable here can be overridden in ss.ini. ; Similarly, any ss.ini variable can be placed in ...

    VC帮助文档

    In the alphabetical listing section, each class description includes a member summary by category, followed by alphabetical listings of member functions, overloaded operators, and data members. ...

    xfrog.dlo for 3DS MAX 4.2, 5.0, 6.0

    made to the mesh itself will be overridden when the object is reevaluated. Options Panel ------------------------------------------------- The Animation Length Group lets you choose between the ...

    vp_color_table.rar_esprit_lynx prime_objects_vertex array

    The color tracking is enabled so that our material diffuse colors are overridden by our vertex colors. To do this we ll enable the "All Geometries Lit" and "Use Material Diffuse Color" options in the...

    ansible-role-oh-my-zsh:安装和配置oh-my-zsh的角色

    Ansible角色:我的Zsh 负责下载,安装和配置 。 注意:使用备用角色可能会更好,该角色可以安装第三方Zsh插件以及安装Oh My...# May be overridden by `oh_my_zsh: install:` under each user. oh_my_zsh_install : y

Global site tag (gtag.js) - Google Analytics