eclipse setProperty 必须被使用 JBoss 4.2.2GA 的 SOAPMessage 错误的所有子类覆盖
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6873673/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
setProperty must be overridden by all subclasses of SOAPMessage error using JBoss 4.2.2GA
提问by Anuj Balan
I was trying to implement web services using the jboss. I had written server side files and tried to generate the wsdl file by placing the files in deploy folder. On running the JBoss(4.2.2GA), wsdl is getting created and I am able to access the wsdl by giving the link in internet explorer. Then I created the source files by using the Web Services/Web Service Client Wizardin Eclipse. When I was trying to call the exposed methods from the client side code, am getting the following error:
我试图使用 jboss 实现 Web 服务。我已经编写了服务器端文件并尝试通过将文件放在部署文件夹中来生成 wsdl 文件。在运行 JBoss(4.2.2GA) 时,正在创建 wsdl,我可以通过在 Internet Explorer 中提供链接来访问 wsdl。然后我使用Eclipse 中的Web 服务/Web 服务客户端向导创建了源文件。当我尝试从客户端代码调用公开的方法时,出现以下错误:
ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
I had found this link which deals with the same topic 'http://lists.jboss.org/pipermail/jbossws-issues/2009-May/005421.html'
我发现这个链接涉及相同的主题' http://lists.jboss.org/pipermail/jbossws-issues/2009-May/005421.html'
I am not understanding what to do. Need help !!! Thanks -Aj
我不明白该怎么做。需要帮忙 !!!谢谢-Aj
回答by Anuj Balan
The issue has been resolved. Configuration I used:
问题已解决。 我使用的配置:
- Eclipse IDE 3.3.0
- JBoss-4.2.2 GA
- Eclipse IDE 3.3.0
- JBoss-4.2.2 GA
3.Libraries used in lib/endorsed :
3. lib/endorsed 中使用的库:
- jboss-saaj.jar
- jboss-jaxws.jar
- jboss-jaxrpc.jar
- jaxb-api-2.1.9.jar
- xercesImpl.jar
- xalan.jar
- serializer.jar
- jboss-saaj.jar
- jboss-jaxws.jar
- jboss-jaxrpc.jar
- jaxb-api-2.1.9.jar
- xercesImpl.jar
- xalan.jar
- 序列化器.jar
Make sure the VM configuration is given for the client file from which the call to the wsdl exposed methods is done. That is, including of '-Djava.endorsed.dirs=jboss-4.2.2.GA\lib\endorsed' at VM arguments.
确保为完成对 wsdl 公开方法的调用的客户端文件提供了 VM 配置。也就是说,在 VM 参数中包括“-Djava.endorsed.dirs=jboss-4.2.2.GA\lib\endorsed”。
I tried running the client file by having saaj.jar and jboss-saaj.jar. It was giving rise to conflicts, and on removing saaj.jar, the problem was solved and the issue resolved.
我尝试通过 saaj.jar 和 jboss-saaj.jar 运行客户端文件。它引起了冲突,在删除 saaj.jar 后,问题就解决了,问题也解决了。
Thanks -Aj
谢谢-Aj