[ https://issues.apache.org/jira/browse/CXF-8141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17020396#comment-17020396 ]
Freeman Yue Fang edited comment on CXF-8141 at 1/21/20 5:20 PM: ---------------------------------------------------------------- Hi [~519523266hz], Please use English to raise a jira ticket, so that more people can get involved here, thanks! Back to this issue, I think it's a classloader conflict issue. There should be multiple copies of WebParam and WebResult getting loaded by different classloaders. Please take a look at http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-ApplicationServers and https://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-WebLogic The weblogic part, especially ensure you have configuration like {code} <?xml version="1.0" encoding="UTF-8"?> <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90"> <application-param> <param-name>webapp.encoding.default</param-name> <param-value>UTF-8</param-value> </application-param> <prefer-application-packages> <package-name>javax.jws.*</package-name> </prefer-application-packages> </weblogic-application> {code} And this link may also help http://middlewaremagic.com/weblogic/?p=8308 In any case, this isn't a CXF issue IMO, so I'd like to close this issue. Instead creating a jira ticket, you should post such kind of question on cxf user mailling list first. Thanks! Freeman was (Author: ffang): Hi [~519523266hz], Please use English to raise a jira ticket, so that more people can get involved here, thanks! Back to this issue, I think it's a classloader conflict issue. There should be multiple copies of WebParam and WebResult getting loaded by different classloaders. Please take a look at http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-ApplicationServers and https://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-WebLogic The weblogic part, especially ensure you have configuration like {code} <?xml version="1.0" encoding="UTF-8"?> <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90"> <application-param> <param-name>webapp.encoding.default</param-name> <param-value>UTF-8</param-value> </application-param> <prefer-application-packages> <package-name>javax.jws.*</package-name> </prefer-application-packages> </weblogic-application> {code} In any case, this isn't a CXF issue IMO, so I'd like to close this issue. Instead creating a jira ticket, you should post such kind of question on cxf user mailling list first. Thanks! Freeman > Weblogic12+版本后,@WebResult@WebParam注解失效了 > --------------------------------------- > > Key: CXF-8141 > URL: https://issues.apache.org/jira/browse/CXF-8141 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.1.10 > Reporter: huangzhen > Priority: Major > Fix For: Invalid > > Attachments: image-2019-10-30-17-54-33-283.png, > image-2019-10-30-17-58-24-463.png, image-2019-10-30-17-59-39-653.png > > > 我有个项目,使用了webservices来部署服务,部署在tomcat或者weblogic10版本里都是ok的。但是升级到weblogic12以上版本后,webservices接口里设置的参数@WebResult@WebParam注解失效了。 -- This message was sent by Atlassian Jira (v8.3.4#803005)