UnsupportedOperationException:setProperty must be overridden by all subclasses of SOAPMessage解决方法>有效
2017-09-02 09:54
766 查看
java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
原因是Jboss的soap实现的是老的javax.xml.soap.SoapMessage接口,这个接口的setProperty方法在老版本是不需要override的,但是到了Java6,由于Java6的jdk本身自带soap包,而自带的这个包的SoapMessage接口对setProperty方法又强制其实现类要override自身,否则则抛出上述异常。
从网上找到了一条解决方案:
把${JBOSS_HOME}/lib/中除了getopt.jar, jboss-system.jar, jboss-jmx.jar其他所有的jar拷贝进${JBOSS_HOME}/lib/endorsed,同时拷贝${JBOSS_HOME}/client/目录中的jboss-saaj.jar ,jboss-jaxrpc.jar到${JBOSS_HOME}/lib/endorsed目录下,这样服务器将使用jboss自带的老版本,经验证有效。
相关文章推荐
- UnsupportedOperationException:setProperty must be overridden by all subclasses of SOAPMessage解决方...
- setProperty must be overridden by all subclasses of SOAPMessage 解决办法
- Jboss SpringMVC调用WebService报错:setProperty must be overridden by all subclasses of SOAPMessage
- jboss在jdk下webservice报setProperty must be overridden by all subclasses of SOAPMessage
- webservice+ejb3+jboss4.2.3问题:setProperty must be overridden by all subclasses of SOAPMessage
- 调用Set.add(All)出现java.lang.UnsupportedOperationException异常原因以及解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- BeanDefinitionStoreException,MalformedByteSequenceException: Invalid byte 3 of 3-byte的解决方法
- XML2JSON 的【net.sf.json.JSONException: nu.xom.ParsingException must be followed by either attribute specifications, ">" or "/>"】问题解决办法
- com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence报错解决方法
- terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>`解决方法
- Hibernate Dialect must be explicitly set解决方法
- exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) 解决方法
- Error parsing XML. org.xml.sax.SAXParseException: Element type "sqlMapConfig" must be declared出错解决方法
- sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set的解决办法
- Hibernate Dialect must be explicitly set 错误信息解决方法
- XCode中互相包含引起的"property with 'retain(or strong)' attribute must be of object type"错误与解决
- ASP.NET MVC运行出现Uncaught TypeError: Cannot set property __MVC_FormValidation of null的解决方法
- The path to the driver executable must be set by the webdriver.gecko.driver system property