简体   繁体   English

在 Jenkins 上构建失败:错误:package com.sun.Z0F635D0E0F3874FFF8B581C1.ws.不存在。

[英]Build on Jenkins fails: error: package com.sun.xml.internal.ws.client does not exist

I've added this line to my JAX-WS client我已将此行添加到我的 JAX-WS 客户端

bindingProvider.getRequestContext().put(BindingProviderProperties.REQUEST_TIMEOUT, this.timeoutRequest);

It builds just fine in IntelliJ, but the build can't complete on Jenkins.它在 IntelliJ 中构建得很好,但在 Jenkins 上构建无法完成。 I'm getting error: package com.sun.xml.internal.ws.client does not exist我收到error: package com.sun.xml.internal.ws.client does not exist

As I understand, I shouldn't use internal classes, so is there a different way of setting request timeout?据我了解,我不应该使用内部类,那么设置请求超时有不同的方法吗?

Project appears to use org.apache.cxf JAX WS implementation.项目似乎使用 org.apache.cxf JAX WS 实现。

Used org.apache.cxf.transports.http.configuration.HTTPClientPolicy to set timeout.使用org.apache.cxf.transports.http.configuration.HTTPClientPolicy设置超时。

Client client = ClientProxy.getClient(port);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(this.timeout);
httpClientPolicy.setReceiveTimeout(this.timeout);
http.setClient(httpClientPolicy);

There's more info in Apache CXF docs . Apache CXF 文档中有更多信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 com.sun.xml.internal.ws.client 不存在 - com.sun.xml.internal.ws.client does not exist 如何解决javac编译器错误“包com.sun.tools.internal.ws.processor.model不存在”? - How do I solve javac compiler error, “package com.sun.tools.internal.ws.processor.model does not exist”? JAX WS com.sun.xml.internal.ws.client.ClientTransportException:HTTP 传输错误:java.net.ConnectException:连接被拒绝 - JAX WS com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused 包com.sun.xml.internal.messaging.saaj.soap.dynamic不存在 - package com.sun.xml.internal.messaging.saaj.soap.dynamic does not exist 如何解决netbean javafx应用程序中不存在com.sun.org.apache.xml.internal.security包 - How to solve com.sun.org.apache.xml.internal.security package does not exist in netbean javafx application 包com.sun.xml.internal.bind.v2.model.annotation不存在 - package com.sun.xml.internal.bind.v2.model.annotation does not exist 包com.sun.org.apache.xml.internal.security.utils.Base64不存在 - Package com.sun.org.apache.xml.internal.security.utils.Base64 does not exist 生成WSDL客户端时Maven Build期间出错:“error:package com.ibm.ws.webservices.engine.encoding不存在” - Error during Maven Build when generating WSDL client: “ error: package com.ibm.ws.webservices.engine.encoding does not exist” 错误:包com.sun.tools.doclets.internal.toolkit.util不存在 - error: package com.sun.tools.doclets.internal.toolkit.util does not exist Maven:包com.sun.istack.internal不存在 - Maven: package com.sun.istack.internal does not exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM