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
分享到:
相关推荐
描述中提到的问题是尝试在后台声明一个Web服务,但在前台调用时抛出了`java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage`的异常。这通常意味着在处理...
This mechanism is used for message forwarding and can also be overridden by subclasses to implement custom behavior. - **Dynamic Loading:** The runtime system supports dynamic loading of classes, ...
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",...
(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 ...
Minification of the font-weight property 结构优化: Merging blocks with identical selectors Merging blocks with identical properties Removal of overridden properties Removal of ...
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 ...
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 ...
"equals(Object obj)" and "hashCode()" should be overridden in pairs - **解释**:根据Java的约定,如果重写了`equals`方法,那么也应该重写`hashCode`方法,以保持一致性。 - **解决方案**:确保这两个方法...
Spring框架以其强大的依赖注入(DI)和面向切面编程(AOP)能力,为Java开发者提供了灵活且易于维护的解决方案。而Spring Boot则是基于Spring框架构建的应用程序启动器,它简化了配置,使开发者能够快速创建独立运行...
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 ...
Based on the provided information from "iOS 5 Programming Cookbook" by Vandad Nahavandipoor, we can derive a comprehensive set of knowledge points related to iOS development using Objective-C....
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...
术语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, # ...
Answer: Static members belong to the class itself and are shared among all instances of the class. They can be accessed without creating an object and are stored in a separate memory area called the ...
4.4 Set Gravity.........................................................66 4.5 Pretend Friction—Friction Simulation to Prevent Slipping Around........66 4.5.1 Script Breakdown...........................
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...
<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...
========================================================ISSUES ADDRESSED BY THIS UPDATEThis readme lists the maintenance for all editions of Delphi 7;not all of the features mentioned in this file ...
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 ...
It is automatically populated based on the target name but can be overridden if needed. The product name is used in various paths and files generated during the build process. ##### PROJECT_NAME The...